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