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
On 11/15/2020 3:21 PM, Pablo Rodriguez wrote:
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, --result=foo
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Pablo Rodriguez