ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Produce multiple versions in one run
@ 2019-08-23 15:04 Denis Maier
  2019-08-23 15:26 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Denis Maier @ 2019-08-23 15:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 346 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 513 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

* Re: Produce multiple versions in one run
  2019-08-23 15:04 Produce multiple versions in one run Denis Maier
@ 2019-08-23 15:26 ` Hans Hagen
  2019-08-23 15:32   ` Denis Maier
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2019-08-23 15:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Denis Maier

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Produce multiple versions in one run
  2019-08-23 15:26 ` Hans Hagen
@ 2019-08-23 15:32   ` Denis Maier
  2019-08-23 15:37     ` Hans Hagen
  2019-08-23 15:45     ` Peter Münster
  0 siblings, 2 replies; 5+ messages in thread
From: Denis Maier @ 2019-08-23 15:32 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1082 bytes --]

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 <j.hagen@xs4all.nl>:

> 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
> -----------------------------------------------------------------
>

[-- Attachment #1.2: Type: text/html, Size: 1707 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

* Re: Produce multiple versions in one run
  2019-08-23 15:32   ` Denis Maier
@ 2019-08-23 15:37     ` Hans Hagen
  2019-08-23 15:45     ` Peter Münster
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2019-08-23 15:37 UTC (permalink / raw)
  To: Denis Maier; +Cc: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Produce multiple versions in one run
  2019-08-23 15:32   ` Denis Maier
  2019-08-23 15:37     ` Hans Hagen
@ 2019-08-23 15:45     ` Peter Münster
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Münster @ 2019-08-23 15:45 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2019-08-23 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23 15:04 Produce multiple versions in one run Denis Maier
2019-08-23 15:26 ` Hans Hagen
2019-08-23 15:32   ` Denis Maier
2019-08-23 15:37     ` Hans Hagen
2019-08-23 15:45     ` Peter Münster

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).