On 14-10-2011 10:38, Meer, H. van der wrote:
I made an example of the effect of this on \doifmode and \startmode. The
example shows that the appearance of extra space in \doifmode follows a regular
pattern. The startmode case differs in that respect because
\startmode[condition-true] has the extra space but \startmode[condition-false]
has not. In my view that is an unwanted anomaly. A little redefinition remedies
that as can be seen in the example.
it's all a side effect of how parses: spaces after a \cs are gobbled so
any macro that looks ahead has to struggle with this and compromise
you can consider using
\startsetups xxx
\stopsetups
\doifmode{whatever}{\setups{xxx}
inside setups all spaces and line endings are ignores (so an explicit
one has to be \space)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________