Changes

Jump to navigation Jump to search
643 bytes added ,  09:49, 21 February 2005
added font example
You don't need the <tt>--result</tt>, but otherwise you'd get the same filename for both modes.
 
Modes are extremely powerful when applied to text. However, they can be applied to configuration problems as well. A user wanted to generate different versions of the same file with different fonts:
<texcode>
\startmode[palatino]
\usetypescript[adobekb][8r]
\usetypescript[palatino][8r]
\setupbodyfont[palatino,12pt]
\stopmode
 
\startmode[times]
\usetypescript[adobekb][8r]
\usetypescript[postscript][8r]
\setupbodyfont[postscript,12pt]
\stopmode
 
\starttext
\input knuth
\showfontstrip
\stoptext
</texcode>
 
And run with one of the following:
texexec --pdf --mode=palatino filename
texexec --pdf --mode=times filename

Navigation menu