888 bytes added
, 09:13, 21 July 2004
< [[The ConTeXt Way]]
< [[Project structure]]
Often you'd like to publish different versions of a document, say a presentation and a handout or a student's and a teacher's version.
ConTeXt supports such filtering with its '''modes''':
<pre>
ConTeXt is a great TeX macro package.
\startmode[handout] % The following text will only appear in the handout
It’s based on PlainTeX like the better known LaTeX.
\stopmode
</pre>
<pre>
\startnotmode[print]
Here's a link to my homepage: \url[...]
\stopnotmode
</pre>
<tt>...mode</tt> and <tt>...notmode</tt> let you filter your content sufficient in most cases.
You can also give several modes like <tt>\startmode[handout,print]</tt>.
You can typeset the different modes like:
<pre>
texexec myfile --mode=handout --result=handout.pdf
</pre>
You don't need the <tt>--result</tt>, but otherwise you'd get the same filename for both modes.