-
Notifications
You must be signed in to change notification settings - Fork 269
Selective Processing
Richard Zach edited this page Jan 24, 2014
·
3 revisions
Text can be marked up for selective processing. OLP uses a list of toggles for this. They can be set to on or off using \toggletrue{taglist} and \togglefalse{taglist}.
To include a (long) piece of text only if at least one tag in a tag list is active, surround it by
\begin{blocktag}{taglist} ... \end{blocktag}
To include a (short) piece of text depending on whether a tag is active or not, use
\printtag{taglist}{text to print}{alternative text}
The blockif environment and \printif command work as above, but instead of a simple tag list the argument may be a boolean expression in etoolbox's format. Since tags are toggles, they can be accessed using the "togl {toggle}"
\printif{not togl {math} and not togl {phil}}{some text}{}