[NTG-context] different outputfilename

Pablo Rodriguez oinos at gmx.es
Sun Nov 15 15:21:52 CET 2020


Dear list,

I have the following sample:

  \enablemode[presentation]

  \doifmodeelse{typesetting}
    {\disablemode[presentation]}
    {\enablemode[typesetting]}

  \startmode[typesetting]
    \environment[typeset-pages.tex]
  \stopmode

  \startmode[presentation]
    \environment[presentation.tex]
  \stopmode

This help me to generate from the same XML files either text or
presentations (they are different elements in the XML itself).

I have to invoke ConTeXt as ($source.tex has the content described above):

  context --purgeall --environment=$source.tex $source.xml

But this approach has two shortcommings.

It always generates a single file and using the same file name
(\jobname.pdf).

Is there no way to get the file with the outputfilename set to
\jobname-presentation?

Many thanks for your help,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list