ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: Re: Code to product several versions PDF with	different fonts
Date: Sun, 20 Feb 2005 20:26:35 +0100	[thread overview]
Message-ID: <4218E46B.5060607@boede.nl> (raw)
In-Reply-To: <20050220183420.14957@mail.comp.lancs.ac.uk>

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
> 

      parent reply	other threads:[~2005-02-20 19:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-20 17:58 VnPenguin
2005-02-20 18:09 ` Adam Lindsay
2005-02-20 18:17   ` VnPenguin
2005-02-20 18:34     ` Adam Lindsay
2005-02-20 18:36       ` VnPenguin
2005-02-20 19:26       ` Willi Egger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4218E46B.5060607@boede.nl \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).