For some time, I have thought, perhaps mistakenly, that the precise placement or spacing around ConTeXt syntax was unimportant, e.g., under this assumption, all of these should produce the same results:
\setupbodyfont[stsong,12pt]
\setupbodyfont[stsong, 12 pt]
\setupbodyfont [stsong, 12 pt]
\setupbodyfont[
stsong, 12 pt
]
\setupbodyfont
[
stsong, 12 pt
]
I have, however, found some small problems appeared in my document, because I was improperly placing the syntax, e.g., this will not work:
\setuplayout[
grid=yes,
margin=10cm
]
This suggests that placement is perhaps important.
I have also discovered some additional spaces appearing in my document, e.g., between ) and ,, and it is likely the result of improper syntax formatting.
- Are there limits to the customization one can apply in placing ConTeXt syntax? Is there a proper way to format the syntax?
- Are the rules for placing
%'s at the end of lines exactly the same as that used in LaTeX, as described in Where are the necessary places to be appended with % to remove unwanted spaces?? How does this apply to ConTeXt's use of square brackets?
\setuplayout[ grid=yes, margin=10cm, ]. Also, you can try using setups which make Context ignore non-explicit spaces. – Philipp Gesang May 14 '12 at 11:40margin=10cmimportant? What are setups? – Village May 14 '12 at 11:43\startsetups [mysetups:foo] foo \stopsetupsand retrieve via\setups{mysetups:foo}. Inside the {start|stop}setups environment, trailing spaces are ignored unless specified with\spaceor similar. – Philipp Gesang May 14 '12 at 11:54