Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Procházka Lukáš Ing .
Hello, On Fri, 21 Sep 2018 10:30:34 +0200, Henri Menke wrote: You could still do it, but it would require two passes. In the first pass to identify that you want to change the output file and write the new name to an auxiliary file. In the second file, you use your automation script to read

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread luigi scarso
On Fri, Sep 21, 2018 at 12:44 PM Hans Hagen wrote: > On 9/21/2018 12:05 PM, luigi scarso wrote: > > > > > > On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater > > wrote: > > > > Hi, > > > > > On 21 Sep 2018, at 10:59, luigi scarso >

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Hans Hagen
On 9/21/2018 12:05 PM, luigi scarso wrote: On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater > wrote: Hi, > On 21 Sep 2018, at 10:59, luigi scarso mailto:luigi.sca...@gmail.com>> wrote: > > > % start demo >

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Hans Hagen
On 9/21/2018 10:44 AM, Taco Hoekwater wrote: On 21 Sep 2018, at 10:30, Henri Menke wrote: On 21/09/18 20:09, J Huisman wrote: Hi all, I'm getting back to using ConTeXt after a couple of years, so I might be missing something obvious... I would like to add an I.D. code to the name of my

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread luigi scarso
On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater wrote: > Hi, > > > On 21 Sep 2018, at 10:59, luigi scarso wrote: > > > > > > % start demo > > \enabledirectives[system.callbacks.permitoverloads] > > % previous line allows redefinition of ‘wrapup_run’ > > iirc , > > this should be avoided …. > >

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Taco Hoekwater
Hi, > On 21 Sep 2018, at 10:59, luigi scarso wrote: > > > % start demo > \enabledirectives[system.callbacks.permitoverloads] > % previous line allows redefinition of ‘wrapup_run’ > iirc , > this should be avoided …. Sure, but I find wrapup_run extremely useful, and I know of no other way to

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Taco Hoekwater
Somewhat related: I would like to mention that you can get at nearly anything mentioned on the "context" command line from within your document, by using \getdocumentargument and \doifdocumentargument . https://wiki.contextgarden.net/Command/getdocumentargument On the lua side, these

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread luigi scarso
On Fri, Sep 21, 2018 at 10:44 AM Taco Hoekwater wrote: > > > > On 21 Sep 2018, at 10:30, Henri Menke wrote: > > > > On 21/09/18 20:09, J Huisman wrote: > >> Hi all, > >> > >> I'm getting back to using ConTeXt after a couple of years, so I might > >> be missing something obvious... > >> > >> I

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread J Huisman
Thank you, Taco, that is exactly what I need! Jelle On Fri, Sep 21, 2018 at 10:44 AM Taco Hoekwater wrote: > > > > > On 21 Sep 2018, at 10:30, Henri Menke wrote: > > > > On 21/09/18 20:09, J Huisman wrote: > >> Hi all, > >> > >> I'm getting back to using ConTeXt after a couple of years, so I

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Taco Hoekwater
> On 21 Sep 2018, at 10:30, Henri Menke wrote: > > On 21/09/18 20:09, J Huisman wrote: >> Hi all, >> >> I'm getting back to using ConTeXt after a couple of years, so I might >> be missing something obvious... >> >> I would like to add an I.D. code to the name of my outputfile, but >> since

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Henri Menke
On 21/09/18 20:09, J Huisman wrote: > Hi all, > > I'm getting back to using ConTeXt after a couple of years, so I might > be missing something obvious... > > I would like to add an I.D. code to the name of my outputfile, but > since this will be used in an automated environment I would like to >

[NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread J Huisman
Hi all, I'm getting back to using ConTeXt after a couple of years, so I might be missing something obvious... I would like to add an I.D. code to the name of my outputfile, but since this will be used in an automated environment I would like to load the ID-code from the source file. MWE: