[NTG-context] Code to product several versions PDF with different fonts

Willi Egger w.egger at boede.nl
Sun Feb 20 20:26:35 CET 2005


If you have the modes defined in a layout.tex you can say in the main file:

\enablemode[times]
%\enablemode[palatino]
%\enablemode[..]
\environment layout.

So by adding the appropriate \enablemode you even do not need to run the 
commandline ...

Willi

Adam Lindsay wrote:
> VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100:
> 
> 
>>I'm preparing a document and I would like to product several versions
>>PDF with different fonts.
> 
> 
>>I would like to use command line. Could you give me a simple example please.
> 
> 
> % I've adapted this for gwTeX default encodings.
> % Convert back to t5 as appropriate!
> 
> \doifmode{palatino}
>   {\usetypescript[adobekb][8r]
>    \usetypescript[palatino][8r]
>    \setupbodyfont[palatino,12pt]}
> 
> \doifmode{times}
>   {\usetypescript[adobekb][8r]
>    \usetypescript[postscript][8r]
>    \setupbodyfont[postscript,12pt]}
> \starttext
> \input knuth
> \showfontstrip
> \stoptext
> 
> 
> ...and run with:
> texexec --pdf --mode=palatino filename
> texexec --pdf --mode=times    filename
> 


More information about the ntg-context mailing list