From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22214 Path: news.gmane.org!not-for-mail From: Randall Skelton Newsgroups: gmane.comp.tex.context Subject: Help with \setuplayout[grid=yes] Date: Tue, 30 Aug 2005 18:44:41 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1481682057==" X-Trace: sea.gmane.org 1125442024 18486 80.91.229.2 (30 Aug 2005 22:47:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 22:47:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 00:47:03 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 1EAEqc-0006e0-Ai for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 00:44:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9059E127E6; Wed, 31 Aug 2005 00:44:51 +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 23671-01; Wed, 31 Aug 2005 00:44:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E057812813; Wed, 31 Aug 2005 00:44:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BD2112813 for ; Wed, 31 Aug 2005 00:44:44 +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 23642-03 for ; Wed, 31 Aug 2005 00:44:43 +0200 (CEST) Original-Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by ronja.ntg.nl (Postfix) with ESMTP id E45B4127E6 for ; Wed, 31 Aug 2005 00:44:42 +0200 (CEST) Original-Received: by wproxy.gmail.com with SMTP id i16so649287wra for ; Tue, 30 Aug 2005 15:44:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=hZD3abxD1YXLqe4qbKSHAVpUR0VLqkLidSyqYNzcEB+Xduv5tRIy3J+6R4RfX8B2dyoRrN94K4xc7YKKMiJZZl/kYyehRRhvnXAmJIqZH09a+jS1fBSWA5SSe6Op/PmtSIc4l3yC+MCP5h1vs4ytcqpfMDRx3JoEby7/PuEmsvg= Original-Received: by 10.54.130.10 with SMTP id c10mr221403wrd; Tue, 30 Aug 2005 15:44:41 -0700 (PDT) Original-Received: by 10.54.95.10 with HTTP; Tue, 30 Aug 2005 15:44:41 -0700 (PDT) Original-To: ntg-context@ntg.nl 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:22214 Archived-At: --===============1481682057== Content-Type: multipart/alternative; boundary="----=_Part_8249_7125511.1125441881858" ------=_Part_8249_7125511.1125441881858 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, Attached is an example showing my misunderstanding about grid alignment. Th= e=20 attached works as expected when \setuplayout[grid=3Dno] is used or the 'Aut= hor=20 table' is commented out. The inclusion of the little table in the text is= =20 really just to convince myself that I can have a table with the grid=20 enabled. Any and all suggestions are greatly appreciated. Cheers, Randall ---- \showframe %\showmakeup %\showgrid %%% Dimensions \newdimen\PaperWidth \PaperWidth=3D8.5in \newdimen\PaperHeight \PaperHeight=3D11.0in \newdimen\TextWidth \TextWidth=3D5.5in \newdimen\TextHeight \TextHeight=3D10.0in \setuppapersize[letter][letter] % paper size \definepapersize[width=3D\PaperWidth,height=3D\PaperHeight] \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=20 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 %%% 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{ }% } \starttext %%% Start: Front=20 \startfrontmatter \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 %%% Stop: Front \stopfrontmatter %%% Start: Body=20 \startbodymatter \section{One} \dorecurse{3}{\input knuth} \starttable[|c|c|] \HL \VL One \VL Two \VL\FR \VL Three \VL Four \VL\LR \HL \stoptable \section{Two} \dorecurse{4}{\input knuth} %%% Stop: Body part \stopbodymatter \stoptext ------=_Part_8249_7125511.1125441881858 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all,

Attached is an example showing my misunderstanding about grid alignment.  The attached works as expected when \setuplayout[grid=3Dno] is used or the 'Author table' is commented out.   The inclusion of the little table in the text is really just to convince myself that I can have a table with the grid enabled.

Any and all suggestions are greatly appreciated.

Cheers,
Randall

----
\showframe
%\showmakeup
%\showgrid

%%% Dimensions
\newdimen\PaperWidth  \PaperWidth=3D8.5in
\newdimen\PaperHeight \PaperHeight=3D11.0in
\newdimen\TextWidth   \TextWidth=3D5.5in
\newdimen\TextHeight  \TextHeight=3D10.0in

\setuppapersize[letter][letter]       &n= bsp;          % paper size
\definepapersize[width=3D\PaperWidth,height=3D\PaperHeight]

\setuplayout
    [location=3Ddoublesided, % double-sided printing
     grid=3Dyes,          &nbs= p;  %%%% 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,     &nbs= p;  % the space for headers
     footer=3D0.50in,     &nbs= p;  % the space for footers
     leftmargin=3D1in,     &nb= sp; % 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

%%% 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{ }%
  }

\starttext

%%% Start: Front
\startfrontmatter

\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

%%% Stop: Front
\stopfrontmatter

%%% Start: Body
\startbodymatter

\section{One}

\dorecurse{3}{\input knuth}

\starttable[|c|c|]
\HL
\VL One \VL Two \VL\FR
\VL Three \VL Four \VL\LR
\HL
\stoptable

\section{Two}

\dorecurse{4}{\input knuth}

%%% Stop: Body part
\stopbodymatter

\stoptext
------=_Part_8249_7125511.1125441881858-- --===============1481682057== 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 --===============1481682057==--