Am 03.01.2012 um 13:58 schrieb Otared Kavian:
On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:
[…] You need a command after “align=middle” because you assign “middle ” (with a space) to the align key.
Hi Wolfgang,
I didn't get exactly what you mean, but saying either of the following:
\setuphead[chapter][header=high,align=middle] or \setuphead[chapter][align=middle,header=high] or \setuphead[chapter][align=middle, header=high] or \setuphead[chapter][header=high, align=middle ]
results in an error. While
\setuphead[chapter][align=middle, header=high ]
works fine…
It’s a typo in the core, see Adityas mail but in the last case you need a comma after the high otherwise you pass the value “high ” (with a space at the end) to context. Here is a simple example where you can that spaces matter: \definehighlight[one][color=red ] \definehighlight[two][color=blue] \starttext \one{Red} \two{Blue} \stoptext In the first definition i pass “red ” with a space at the end which is different from “red” (without a space). Wolfgang