Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread r . ermers
Gerben, I do not know if it is possible with Context. But this definitely works with an xsl operation. You will need an xsl file like this: myxslfile.xsl: http://www.w3.org/1999/XSL/Transform;> myxmlfile.xml John Gerben Use it

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Gerben Wierda
> On 15 Apr 2020, at 13:54, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 15.04.2020 um 12:19: >>> On 14 Apr 2020, at 11:52, Taco Hoekwater wrote: On 14 Apr 2020, at 11:25, Gerben Wierda wrote: This helps for adding information to my processing. What I

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Wolfgang Schuster
Gerben Wierda schrieb am 15.04.2020 um 12:19: On 14 Apr 2020, at 11:52, Taco Hoekwater wrote: On 14 Apr 2020, at 11:25, Gerben Wierda wrote: This helps for adding information to my processing. What I was also looking for is that I don’t have a test.tex anymore, just the XML file I am

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Gerben Wierda
> On 14 Apr 2020, at 11:52, Taco Hoekwater wrote: > > > >> On 14 Apr 2020, at 11:25, Gerben Wierda wrote: >> >> This helps for adding information to my processing. >> >> What I was also looking for is that I don’t have a test.tex anymore, just >> the XML file I am parsing and a command

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Hans Hagen
On 4/14/2020 11:25 AM, Gerben Wierda wrote: This helps for adding information to my processing. What I was also looking for is that I don’t have a test.tex anymore, just the XML file I am parsing and a command line action. So, I use mtxrun, give it the name of an XML. lua code (using a

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Taco Hoekwater
> On 14 Apr 2020, at 11:25, Gerben Wierda wrote: > > This helps for adding information to my processing. > > What I was also looking for is that I don’t have a test.tex anymore, just the > XML file I am parsing and a command line action. > > So, I use mtxrun, give it the name of an XML.

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Gerben Wierda
This helps for adding information to my processing. What I was also looking for is that I don’t have a test.tex anymore, just the XML file I am parsing and a command line action. So, I use mtxrun, give it the name of an XML. lua code (using a ’script’ somewhere?) reads the XML, extracts a

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Taco Hoekwater
Hi Gerben, What you want is quite easy to do since you are using lua already. Try this: % context --whatever=green test with test.tex: \starttext \startluacode table.print(environment.arguments) \stopluacode \stoptext everything from the command line ends up in

[NTG-context] Using command line values in a TeX document; writing a script?

2020-04-13 Thread Gerben Wierda
Currently, I process a file like this: mtxrun --autogenerate --script context test12.tex and in the file test12.tex one sees something like this: \input archimate-mp \ctxlua{moduledata.archimate(“myarchimatefile.xml")} The latter parses the xml file and produces a PDF using generated MP code.