Difference between revisions of "Modes"

From Wiki
Jump to navigation Jump to search
m
m
Line 22: Line 22:
 
<tt>...mode</tt> and <tt>...notmode</tt> let you filter your content sufficient in most cases.
 
<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 also give several modes like <tt>\startmode[handout,print]</tt>.
MOdes are also a convenient way to comment out sections (typical: "obsolete" mode).
+
 
 +
Modes are also a convenient way to comment out sections (typical: "obsolete" mode).
  
 
You can typeset the different modes like:
 
You can typeset the different modes like:

Revision as of 19:40, 25 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:

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
\startnotmode[print]
Here's a link to my homepage: \url[...]
\stopnotmode

...mode and ...notmode let you filter your content sufficient in most cases. You can also give several modes like \startmode[handout,print].

Modes are also a convenient way to comment out sections (typical: "obsolete" mode).

You can typeset the different modes like:

texexec myfile --mode=handout --result=handout.pdf

You don't need the --result, but otherwise you'd get the same filename for both modes.