On Tue, 29 Aug 2017, Paul Mazaitis wrote:
The short version:
I'd like to set up a context document with multiple user-defined heads,
such that they can be conditionally compiled and/or altered. It seems
that modes are what I want, but I'm having trouble figuring out how to
automatically set up a particular section to be wrapped in a particular
mode (if that makes any sense at all).
Is this possible?
Here is how I usually do this:
\definemode[showexamples][keep]
\doifmodeelse{showexamples}
{\definehead[example][subject][style=\bfc]}
{\definebuffer[example]}
\starttext
\input ward
\startexample[title={I'd like to be able to use modes to enable or
disable this section}]
I'd like to have a mode to conditionally show all of the {\tt example}
sections (without affecting other content, etc.).
\stopexample
\stoptext
Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________