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 ,%% <
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