From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22227 Path: news.gmane.org!not-for-mail From: Randall Skelton Newsgroups: gmane.comp.tex.context Subject: Re: Help with \setuplayout[grid=yes] Date: Wed, 31 Aug 2005 09:19:58 -0400 Message-ID: References: <4315626F.8060205@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1584157898==" X-Trace: sea.gmane.org 1125494539 19423 80.91.229.2 (31 Aug 2005 13:22:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 13:22:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 15:22:09 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 1EASVb-0008Nh-SI for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 15:20:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F65912823; Wed, 31 Aug 2005 15:20:07 +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 01262-05; Wed, 31 Aug 2005 15:20:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0C0A127EB; Wed, 31 Aug 2005 15:20:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 422C9127EB for ; Wed, 31 Aug 2005 15:20:02 +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 01140-05 for ; Wed, 31 Aug 2005 15:20:01 +0200 (CEST) Original-Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.203]) by ronja.ntg.nl (Postfix) with ESMTP id 035A4127B0 for ; Wed, 31 Aug 2005 15:20:00 +0200 (CEST) Original-Received: by qproxy.gmail.com with SMTP id e11so464qbe for ; Wed, 31 Aug 2005 06:19:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=oDeql3+d7QJhgsXhzk848jl+sDPiu9fUmTl7cVJFyBoSapAYnUDHNC4OQweG66eHg1qqKB6m1927EC0ZOzx6VQkdm+cOUyhRtygVDxYuTzmOF9/p7uyEwdV2WZSRlIjQORSub3jDXJsH9AWORj0dNYv78vMFkpXFm0aLQdPmNj4= Original-Received: by 10.64.250.20 with SMTP id x20mr37qbh; Wed, 31 Aug 2005 06:19:58 -0700 (PDT) Original-Received: by 10.65.43.10 with HTTP; Wed, 31 Aug 2005 06:19:58 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <4315626F.8060205@seznam.cz> 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:22227 Archived-At: --===============1584157898== Content-Type: multipart/alternative; boundary="----=_Part_29_7374852.1125494398934" ------=_Part_29_7374852.1125494398934 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Many thanks for the suggestion Vit. In this case, however, I've split the= =20 \starttable and \stoptable commands in the \startAuthors and \stopAuthors= =20 definitions which may well be the root of my problem. This means that I=20 cannot easily wrap the whole table with \placeongrid{ }. I cannot see a way= =20 of getting the \domoveongrid and/or \snaptogrid\vbox to work either. 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 still= =20 use variables to define the table elements as is done in the \Authors=20 definition? Cheers, Randall > \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{ }% > > } > ------=_Part_29_7374852.1125494398934 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Many thanks for the suggestion Vit.  In this case, however, I've split the \starttable and \stoptable commands in the \startAuthors and \stopAuthors definitions which may well be the root of my problem.  This means that I cannot easily wrap the whole table with \placeongrid{ }.  I cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox to work either.

Does anyone have any suggestions on how I can clean this up so that \starttable and \stoptable are not in separate definitions but I can still use variables to define the table elements as is done in the \Authors definition?

Cheers,
Randall
 
\place= ongrid{%    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*bi= g]%
>   \hbox to \hsize\bgroup\hss\SetTableToWidth{ 6.5in}%
>   \starttable[|c|c|c|c|c|]
>   \H= L
>   \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\H= L}
>
> \def\stopAuthors{\stoptable\hss\egroup}
>
> = def\Author[#1]{%
>   \getgparameters[Author][#1]%
>   \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared b= y:}}%
>   \doifundefined{AuthorFunction}{\gdef\AuthorFuncti= on{-}}%
>   \doifundefined{AuthorName}{\gdef\AuthorName{-}}= %
>   \doifundefined{AuthorSignature}{\gdef\AuthorSignature= {}}%
>   \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}%
&g= t;   \VL\AuthorRole \VL\AuthorFunction%
>   \VL\A= uthorName \VL\AuthorSignature%
>   \VL\AuthorDate%
>&= nbsp;  \VL\SR\HL%
>   \gdef\AuthorFunction{ }\gdef\Aut= horName{ }%
>   \gdef\AuthorSignature{ }\gdef\AuthorDate{ }%
>&n= bsp;  }

------=_Part_29_7374852.1125494398934-- --===============1584157898== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1584157898==--