Changes

Jump to navigation Jump to search
200 bytes added ,  06:38, 5 September 2005
m
Minor cleanup.
< [[The ConTeXt Way]] < | [[Inside ConTeXt]] | [[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''':
<pretexcode>
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
</pretexcode>
<pretexcode>
\startnotmode[print]
Here's a link to my homepage: \url[...]
\stopnotmode
</pretexcode> <texcode>\doifmode[answers]{The answer to the homework is 42.}</texcode> <texcode>\doifmodeelse[draft]{Draft Version}{Final Version}</texcode>
<tt>...mode</tt> and <tt>...notmode</tt> let you filter your content sufficient in most cases.
And run with one of the following:
<pre>
texexec --pdf --mode=palatino filename
texexec --pdf --mode=times filename
</pre>

Navigation menu