* different outputfilename
@ 2020-11-15 14:21 Pablo Rodriguez
2020-11-15 17:29 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Pablo Rodriguez @ 2020-11-15 14:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: different outputfilename
2020-11-15 14:21 different outputfilename Pablo Rodriguez
@ 2020-11-15 17:29 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-11-15 17:29 UTC (permalink / raw)
To: mailing list for ConTeXt users, Pablo Rodriguez
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-15 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 14:21 different outputfilename Pablo Rodriguez
2020-11-15 17:29 ` Hans Hagen
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).