On Sun, 28 Dec 2008, John Devereux wrote:
Aditya Mahajan
writes: In general I find other peoples "templates" very educational.
PS: In your environment file you have
\setuplayout[ header = 0pt, footer = 0pt, headerdistance = 0pt, footerdistance = 0pt, top = 1.125in, topdistance = 0pt, bottom = 1.125in, bottomdistance = 0pt, leftedge = 0.85in, rightedge = 0.85in, height = fit]
ConTeXt will silently ignore all of this. You must not have space between keywords and options. Write this as
I've been using context, on and off, for 5 years and I did not know that!
Does anyone know if there is a way to get context to stop when it sees an unknown option, instead of silently ignoring it?
The way this is dealt with in the core is by specifying options using \c!header, etc. This has two advantages: First we get a multi-lingual interface for free. Second any typos in the keys are caught. This does not catch "mistakes" like giving an new option to a command, for example specifying headstyle=something to \setuphead (headstyle is valid for \setupitemgroup, but not for \setuphead). There is, however, no way of catching "errors" like height= fit, Here context thinks that height is set to " fit" (with the space), and this does not match any of the cases in the code, so is ignored. Aditya