[NTG-context] \doifmode and friends

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Oct 4 20:32:03 CEST 2011


Am 04.10.2011 um 20:19 schrieb Meer, H. van der:

> I find that "abc \doifmode{mode}{text} more text" can introduce extra whitespace. I conclude therefore that there is no \ignorespaces at work here. As a consequence the \doifmode does not completely disappear if mode is not satisfied.
> Is this intentional or should this behaviour be changed?


You can use the annotation module, it supports this function.

\usemodule[annotation]

\defineannotation[test][alternative=text]

\starttext

Can you see this \test{hidden} text?

\setupannotation[test][alternative=none]

Can you see this \test{hidden} text?

\stoptext

Wolfgang


More information about the ntg-context mailing list