From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22230 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 15:42:09 +0200 Message-ID: <4315B3B1.2030600@seznam.cz> References: <4315626F.8060205@seznam.cz> 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 1125495850 24056 80.91.229.2 (31 Aug 2005 13:44:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 13:44:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 15:44:06 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 1EASqk-0005fV-R6 for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 15:41:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7672F1281D; Wed, 31 Aug 2005 15:41:58 +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 01705-06; Wed, 31 Aug 2005 15:41:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 620C6127F2; Wed, 31 Aug 2005 15:41:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB54C127F2 for ; Wed, 31 Aug 2005 15:41:53 +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 01707-06 for ; Wed, 31 Aug 2005 15:41:52 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id B80B41279A for ; Wed, 31 Aug 2005 15:41:52 +0200 (CEST) Original-Received: (qmail 23505 invoked from network); 31 Aug 2005 13:41:51 -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 13:41:51 -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:22230 Archived-At: Randall Skelton wrote: > Many thanks for the suggestion Vit. In this case, however, I've split = > the \starttable and \stoptable commands in the \startAuthors and=20 > \stopAuthors definitions which may well be the root of my problem. Thi= s=20 > means that I cannot easily wrap the whole table with \placeongrid{ }. = I=20 > cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox t= o=20 > work either. OK, in this case use in \startAuthor \placeongrid[...]\bgroup and in \stopAuthor \egroup cheers vit >=20 > Does anyone have any suggestions on how I can clean this up so that=20 > \starttable and \stoptable are not in separate definitions but I can=20 > still use variables to define the table elements as is done in the=20 > \Authors definition? >=20 > Cheers, > Randall > =20 >=20 > \placeongrid{% or e.g. \placeongrid[{broad,high}]{% > your table > } > > %%% Authors and Approvals > > \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} > > > > \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} > > > > \def\stopAuthors{\stoptable\hss\egroup} > > > > 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 >=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