ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Help with \setuplayout[grid=yes]
Date: Wed, 31 Aug 2005 15:42:09 +0200	[thread overview]
Message-ID: <4315B3B1.2030600@seznam.cz> (raw)
In-Reply-To: <ba4316d305083106193951e83f@mail.gmail.com>

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 
> \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.

OK, in this case use in \startAuthor

   \placeongrid[...]\bgroup

and in \stopAuthor

   \egroup

cheers
vit


> 
> 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
>  
> 
>     \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{ }%
>      >   }
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

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
=======================================================

  parent reply	other threads:[~2005-08-31 13:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 22:44 Randall Skelton
2005-08-31  7:55 ` Vit Zyka
2005-08-31 13:19   ` Randall Skelton
2005-08-31 13:31     ` Taco Hoekwater
2005-08-31 13:42     ` Vit Zyka [this message]
2005-08-31 15:06       ` Randall Skelton
2005-08-31 15:28         ` Randall Skelton
2005-08-31 15:54           ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4315B3B1.2030600@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).