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 ___________________________________________________________________________________