Re: [NTG-context] [LMTX] error updating luametatex

2020-04-15 Thread kaddour kardio
running `mtx run ---generate` with 3 dashes fixed the issue.


Le jeu. 16 avr. 2020 à 00:03, kaddour kardio  a
écrit :

> Hi! my issue is probably only distro related but i was unable to use
> luametatex after an update from AUR repos in Archlinux.
>  running
> mtx-run --generate
> give me this error
>  unknown script 'cache.lua' or 'mtx-cache.lua'
>
> --
> Dr YAHYAOUI Mohamed Kaddour, cardiologue  .
>


-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue  .
___
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
___


[NTG-context] [LMTX] error updating luametatex

2020-04-15 Thread kaddour kardio
Hi! my issue is probably only distro related but i was unable to use
luametatex after an update from AUR repos in Archlinux.
 running
mtx-run --generate
give me this error
 unknown script 'cache.lua' or 'mtx-cache.lua'

-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue  .
___
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
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread denis . maier . lists
Hi,

> 1) Does anybody know of any scientific publisher or single journals
> which accept papers/book chapters typeset in ConTeXt yet

I will use ConTeXt to typeset the Jewish Studies journal *Judaica* 
(https://bop.unibe.ch/index.php/judaica/index). (The first issue should appear 
soon.) However, we do not accept ConTeXt sources as we use jats xml as our 
production format. (Actually, I don't expect any of our authors is using 
ConTeXt.)

> 2) If there are any is any of them convinced enought about ConTeXt to 
> recommend use of ConTeXt or even provide template?

Yes, I gave two talks last year at the Public Knowledge Project Conference in 
Barcelona. One was about our general workflow (going from docx via pandoc 
markdown to jats xml; the other was about typesetting xml with ConTeXt.)

> 3) What would be needed and what could help to make them aware?
> (difficult to properly formulate, if unclear dont bother)

Don't know. Perhaps more examples?

Best,
Denis
___
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
___


Re: [NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread Henning Hraban Ramm

> Am 15.04.2020 um 17:47 schrieb Christoph Hintermüller 
> :
> 
> 1) Does anybody know of any scientific publisher or single journals
> which accept papers/book chapters typeset in ConTeXt yet
> 2) If there are any is any of them convinced enought about ConTeXt to
> recommend use of ConTeXt or even provide template?

IRCPS’s journals are typeset with ConTeXt.
https://ircps.org

Also, our (Verlag Dreiviertelhaus) publications are mostly typeset with 
ConTeXt, including the magazine on German literature, Kritische Ausgabe.
https://www.dreiviertelhaus.de

Best, Hraban

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


[NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-15 Thread Christoph Hintermüller
Hi 
Jet a completely different question just out of curiosity?

1) Does anybody know of any scientific publisher or single journals
which accept papers/book chapters typeset in ConTeXt yet
2) If there are any is any of them convinced enought about ConTeXt to
recommend use of ConTeXt or even provide template?
3) What would be needed and what could help to make them aware?
(difficult to properly formulate, if unclear dont bother)

Best
Xristoph

-- 
Christoph Hintermueller
Eisenhandstraße 33/23
4020 Linz Austria
Tel.: +43 650 8827347
mail: christ...@out-world.com
www: http://www.out-world.com

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


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 like this with saxon (xsl version 2).

saxon -xsl:myxslfile.xsl -s:myxmlfile.xml -o:dummy.xml

This program will generate an empty dummyfile.xml but also xml files, (e.g. 
BAR.xml) in which it will collect al contact that have @ad=‘BAR', and there 
will be as many files as you have different values of @ad in your xml file. I 
am very far from being a specalist on xsl, please refer for further information 
to xsl forums. Have fun experimenting!

I do this myself and then have a script generate the pdfs.

Hope this helps.

Robert



> Op 15 apr. 2020, om 14:13 heeft Gerben Wierda  het 
> volgende geschreven:
> 
> 
> 
>> 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 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 name (e.g. ‘foo’) from it, creates 
> a .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file 
> (e.g. ‘foo.pdf').
 When processing XML, I normally use
 
   context —environment=whatever.tex file.xml
 
 with whatever.tex being a mix of tex and lua to setup and process the XML 
 directly,
 perhaps including other XML files as needed.
>>> But this means that the whatever.tex file needs to exist beforehand and the 
>>> result is whatever.pdf
>>> 
>>> I want the actual PDF to be produced have a name that comes from the XML I 
>>> am processing and thus the whatever.tex file be created by lua. There is no 
>>> whatever.tex file before I run the command.
>>> 
>>> Pre-command:
>>> XML:
>>> contains file name “foo”
>>> there is no .tex file
>>> 
>>> Command:
>>> produces foo.tex (gets the name from the XML) and “foo.pdf"
>> 
>> The TeX file in Tacos example contains the xmlsetup entries which are used
>> to map the XML tags to ConTeXt commands and environment, the resulting
>> PDF file has the same name as the XML file.
> 
> That is different from
> 
>the resulting PDF file has the name of an entry/field in the XML file.
> 
> So, what I am looking for is:
> 
>   command foo.xml
> 
> which results in 
> 
>   bar.pdf
> 
> where ‘bar’ is text in foo.xml
> 
> G
> 
>> 
>> Wolfgang
>> 
> 
> ___
> 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
> ___

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


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 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 name (e.g. ‘foo’) from it, creates a 
 .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. 
 ‘foo.pdf').
>>> When processing XML, I normally use
>>> 
>>>   context —environment=whatever.tex file.xml
>>> 
>>> with whatever.tex being a mix of tex and lua to setup and process the XML 
>>> directly,
>>> perhaps including other XML files as needed.
>> But this means that the whatever.tex file needs to exist beforehand and the 
>> result is whatever.pdf
>> 
>> I want the actual PDF to be produced have a name that comes from the XML I 
>> am processing and thus the whatever.tex file be created by lua. There is no 
>> whatever.tex file before I run the command.
>> 
>> Pre-command:
>>  XML:
>>  contains file name “foo”
>>  there is no .tex file
>> 
>> Command:
>>  produces foo.tex (gets the name from the XML) and “foo.pdf"
> 
> The TeX file in Tacos example contains the xmlsetup entries which are used
> to map the XML tags to ConTeXt commands and environment, the resulting
> PDF file has the same name as the XML file.

That is different from

 the resulting PDF file has the name of an entry/field in the XML file.

So, what I am looking for is:

command foo.xml

which results in 

bar.pdf

where ‘bar’ is text in foo.xml

G

> 
> Wolfgang
> 

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


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 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 name (e.g. ‘foo’) from it, creates a .tex 
file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. 
‘foo.pdf').

When processing XML, I normally use

   context —environment=whatever.tex file.xml

with whatever.tex being a mix of tex and lua to setup and process the XML 
directly,
perhaps including other XML files as needed.

But this means that the whatever.tex file needs to exist beforehand and the 
result is whatever.pdf

I want the actual PDF to be produced have a name that comes from the XML I am 
processing and thus the whatever.tex file be created by lua. There is no 
whatever.tex file before I run the command.

Pre-command:
XML:
contains file name “foo”
there is no .tex file

Command:
produces foo.tex (gets the name from the XML) and “foo.pdf"


The TeX file in Tacos example contains the xmlsetup entries which are used
to map the XML tags to ConTeXt commands and environment, the resulting
PDF file has the same name as the XML file.

Wolfgang

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


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 line action.
>> 
>> So, I use mtxrun, give it the name of an XML. lua code (using a ’script’ 
>> somewhere?) reads the XML, extracts a name (e.g. ‘foo’) from it, creates a 
>> .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. 
>> ‘foo.pdf').
> 
> When processing XML, I normally use 
> 
>   context —environment=whatever.tex file.xml
> 
> with whatever.tex being a mix of tex and lua to setup and process the XML 
> directly,
> perhaps including other XML files as needed.

But this means that the whatever.tex file needs to exist beforehand and the 
result is whatever.pdf

I want the actual PDF to be produced have a name that comes from the XML I am 
processing and thus the whatever.tex file be created by lua. There is no 
whatever.tex file before I run the command.

Pre-command:
XML:
contains file name “foo”
there is no .tex file

Command:
produces foo.tex (gets the name from the XML) and “foo.pdf"

G

> 
> But when you need to extract stuff and rename files, a Makefile or shell 
> script
> comes more naturally (at least for me).
> 
> Taco
> ___
> 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
> ___

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