From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22216 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: Help with \setuplayout[grid=yes] Date: Wed, 31 Aug 2005 09:55:27 +0200 Message-ID: <4315626F.8060205@seznam.cz> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1125475151 24106 80.91.229.2 (31 Aug 2005 07:59:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 07:59:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 09:59:01 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EANTN-00026t-SF for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 09:57:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 958831281B; Wed, 31 Aug 2005 09:57:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30609-02; Wed, 31 Aug 2005 09:57:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6862112815; Wed, 31 Aug 2005 09:55:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6BFAA12815 for ; Wed, 31 Aug 2005 09:55:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30609-01 for ; Wed, 31 Aug 2005 09:55:26 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 304DA12814 for ; Wed, 31 Aug 2005 09:55:25 +0200 (CEST) Original-Received: (qmail 6967 invoked from network); 31 Aug 2005 07:55:20 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 31 Aug 2005 07:55:20 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Antivirus: avast! (VPS 0535-0, 29.08.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22216 Archived-At: Randall Skelton wrote: > Hi all, >=20 > Attached is an example showing my misunderstanding about grid=20 > alignment. The attached works as expected when \setuplayout[grid=3Dno]= is=20 > used or the 'Author table' is commented out. The inclusion of the=20 > little table in the text is really just to convince myself that I can=20 > have a table with the grid enabled. \placeongrid{% or e.g. \placeongrid[{broad,high}]{% your table } vit >=20 > Any and all suggestions are greatly appreciated. >=20 > Cheers, > Randall >=20 > ---- > \showframe > %\showmakeup > %\showgrid >=20 > %%% Dimensions > \newdimen\PaperWidth \PaperWidth=3D8.5in > \newdimen\PaperHeight \PaperHeight=3D11.0in > \newdimen\TextWidth \TextWidth=3D5.5in > \newdimen\TextHeight \TextHeight=3D10.0in >=20 > \setuppapersize[letter][letter] % paper size > \definepapersize[width=3D\PaperWidth,height=3D\PaperHeight] >=20 > \setuplayout > [location=3Ddoublesided, % double-sided printing > grid=3Dyes, %%%% WHY DOES THIS CAUSE AN ERROR? > topspace=3D0.50in, % the space at the very top of the page > backspace=3D1.5in, % the space in the gutter > header=3D0.75in, % the space for headers > footer=3D0.50in, % the space for footers > leftmargin=3D1in, % the space for margin notes > rightmargin=3D1in, % the space for right margin notes > width=3D\TextWidth, % the width of the body text > height=3D\TextHeight] % the height of the body text >=20 > %%% Authors and Approvals > \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} >=20 > \def\startAuthors{% > \blank[2*big]\AuthorsTitle\\\blank[2*big]% > \hbox to \hsize\bgroup\hss\SetTableToWidth{6.5in}% > \starttable[|c|c|c|c|c|] > \HL > \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} >=20 > \def\stopAuthors{\stoptable\hss\egroup} >=20 > def\Author[#1]{% > \getgparameters[Author][#1]% > \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% > \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% > \doifundefined{AuthorName}{\gdef\AuthorName{-}}% > \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% > \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% > \VL\AuthorRole \VL\AuthorFunction% > \VL\AuthorName \VL\AuthorSignature% > \VL\AuthorDate% > \VL\SR\HL% > \gdef\AuthorFunction{ }\gdef\AuthorName{ }% > \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% > } >=20 > \starttext >=20 > %%% Start: Front > \startfrontmatter >=20 > \startAuthors > \Author > [Role=3D{Prepared by:}, > Function=3D{Scientist}, > Name=3D{John Smith}, > Date=3D{2005-08-24}] > \Author > [Role=3D{Checked by}:, > Date=3D{2005-08-24}] > \Author > [Role=3D{Approved by:}, > Date=3D{2005-08-24}] > \stopAuthors >=20 > %%% Stop: Front > \stopfrontmatter >=20 > %%% Start: Body > \startbodymatter >=20 > \section{One} >=20 > \dorecurse{3}{\input knuth} >=20 > \starttable[|c|c|] > \HL > \VL One \VL Two \VL\FR > \VL Three \VL Four \VL\LR > \HL > \stoptable >=20 > \section{Two} >=20 > \dorecurse{4}{\input knuth} >=20 > %%% Stop: Body part > \stopbodymatter >=20 > \stoptext >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ing. V=EDt Z=FDka, Ph.D. TYPOkv=EDtek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D