Produce multiple versions in one run
![](https://secure.gravatar.com/avatar/ef23acc99b130b72382c0ae0dcedee19.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/ef23acc99b130b72382c0ae0dcedee19.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/ce6f5c1fcc03b492f32be1f0c8e05325.jpg?s=120&d=mm&r=g)
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