ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Grid typesetting
Date: Sun, 31 Oct 2010 05:28:45 +0100	[thread overview]
Message-ID: <FE9DE794-C77B-4AA5-9A88-3DADA33D963C@gmail.com> (raw)
In-Reply-To: <4CCC753F.1060805@gmail.com>


Am 30.10.2010 um 21:42 schrieb Andrzej Orłowski-Skoczyk:

> On 10/23/2010 06:18 AM, Wolfgang Schuster wrote:
>> \setuplayout[grid=yes]
>> %\showgrid
>> \starttext
>> \title{Example texts}
>> \subject{Knuth}
>> \input knuth
>> \subject{Tufte}
>> \input tufte
>> \stoptext
> 
> Thank you very much. It worked.
> 
> This puzzled me a lot, as seemingly the same setup refused to work in my
> document. Then I started to delete other preamble content step by step,
> and the grid still didn't work after I removed all of it. Then I found
> out that the "grid" option was not being read at all, because there was
> a space character before the comma. My setuplayout looked like that:
> \setuplayout[%%
> 	width=105mm ,%%
> 	height=162mm ,%%
> 	backspace=20mm ,%%
> 	topspace=18mm ,%%
> 	header=0pt ,%%
> 	footerdistance=5mm ,%%
> 	footer=5mm ,%%
> 	marking=off ,%%
> 	location=doublesided,%%
> 	veroffset=5mm ,%%
> 	grid=yes ,%% <<space character ruins the option
> 	margin=15mm ,%%
> 	%top=5mm ,%%
> ]%%
> 
> When can I use a space like that, and I can't? I found out that also
> some other options can't be followed by a space. Why is that?

Space are only allowed before keys, in all other places a space is either a space in the key or the value itself, in your case it works with the dimensions because they are passed to normal tex dimension but never rely on this.

Wolfgang


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2010-10-31  4:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 19:59 Andrzej Orłowski-Skoczyk
2010-10-23  4:18 ` Wolfgang Schuster
2010-10-30 19:42   ` Andrzej Orłowski-Skoczyk
2010-10-31  4:28     ` Wolfgang Schuster [this message]

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=FE9DE794-C77B-4AA5-9A88-3DADA33D963C@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).