Produce multiple versions in one run
Hi, let's say I want to produce two different versions of my document, one with papersize a4, the other with papersize a5. ``` \setuppapersize[a4][a4] \startmode[a5] \setuppapersize[a5][a5] \stopmode ``` What is the best way to produce both versions with one command? A makefile? Or is there a way to do this with context alone? Best, Denis
On 8/23/2019 5:04 PM, Denis Maier wrote:
Hi, let's say I want to produce two different versions of my document, one with papersize a4, the other with papersize a5.
``` \setuppapersize[a4][a4] \startmode[a5] \setuppapersize[a5][a5] \stopmode ```
What is the best way to produce both versions with one command? A makefile? Or is there a way to do this with context alone? context --mode=a5 ...
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Well, but that will give me one file with papersize a5.
Can I instruct context to produce two files: one with --mode=a5, one with
the normal settings?
Or is a makefile better suited for this?
Best,
Denis
Am Fr., 23. Aug. 2019 um 17:26 Uhr schrieb Hans Hagen
On 8/23/2019 5:04 PM, Denis Maier wrote:
Hi, let's say I want to produce two different versions of my document, one with papersize a4, the other with papersize a5.
``` \setuppapersize[a4][a4] \startmode[a5] \setuppapersize[a5][a5] \stopmode ```
What is the best way to produce both versions with one command? A makefile? Or is there a way to do this with context alone? context --mode=a5 ...
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 8/23/2019 5:32 PM, Denis Maier wrote:
Well, but that will give me one file with papersize a5. Can I instruct context to produce two files: one with --mode=a5, one with the normal settings? Or is a makefile better suited for this? context --mode=a5 --result=foo-a5 foo.tex
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, Aug 23 2019, Denis Maier wrote:
Or is a makefile better suited for this?
Probably yes. Example is here: https://wiki.contextgarden.net/Catalogue_raisonné -- Peter
participants (3)
-
Denis Maier
-
Hans Hagen
-
Peter Münster