Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread kaddour kardio
A relatively simple way is to use a templating system such as jinja2 and iterate over a mkiv template. Calling context with subprocess and you got the result. Le jeu. 16 avr. 2020 à 15:52, Hans Hagen a écrit : > On 4/16/2020 4:38 PM, Mojca Miklavec wrote: > > On Thu, 16 Apr 2020 at 11:29, Taco

Re: [NTG-context] template system

2020-04-16 Thread Henning Hraban Ramm
> Am 16.04.2020 um 19:57 schrieb Wolfgang Schuster > : > > Henning Hraban Ramm schrieb am 16.04.2020 um 19:46: >>> Am 16.04.2020 um 16:52 schrieb Hans Hagen : >>> >>> (I won't bother you with the template system in context that no one knows >>> of.) >> If you throw such bones, I get hungry –

[NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code, it is also working in \startMPcode ~

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Hans Hagen
On 4/16/2020 4:38 PM, Mojca Miklavec wrote: On Thu, 16 Apr 2020 at 11:29, Taco Hoekwater wrote: On 16 Apr 2020, at 11:12, Mojca Miklavec wrote: I have been asked to create a few thousand PDF documents from a CSV "database" today In CPU cycles, the fastest way is to do a single context —once

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Mojca Miklavec
On Thu, 16 Apr 2020 at 16:52, Hans Hagen wrote: > On 4/16/2020 4:38 PM, Mojca Miklavec wrote: > > On Thu, 16 Apr 2020 at 11:29, Taco Hoekwater wrote: > >>> On 16 Apr 2020, at 11:12, Mojca Miklavec wrote: > >>> > >>> One option is that I quickly draft a python script that creates a few > >>>

Re: [NTG-context] template system

2020-04-16 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 16.04.2020 um 19:46: Am 16.04.2020 um 16:52 schrieb Hans Hagen : (I won't bother you with the template system in context that no one knows of.) If you throw such bones, I get hungry – where’s the flesh? (Where is this in the sources? Is there any

Re: [NTG-context] template system (was: Best way to create a large number of documents from database)

2020-04-16 Thread Henning Hraban Ramm
> Am 16.04.2020 um 16:52 schrieb Hans Hagen : > > (I won't bother you with the template system in context that no one knows of.) If you throw such bones, I get hungry – where’s the flesh? (Where is this in the sources? Is there any documentation?) I often need ConTeXt templates and mostly use

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 8:32 PM, Mojca Miklavec wrote: > [...] > Where would be the best way to document this / under what wiki topic, > as I'm sure I'll need it again and forget until then unless I write it > down immediately? "Mail merge"? ;) Hi Mojca, “Document merge” could be also fine. Pablo --

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

2020-04-16 Thread kaddour kardio
Pablo yes I meant 'mtxrun'. Hans by googling about my issue I found a commentary by Aditya of the issue on the git repos. Le jeu. 16 avr. 2020 à 08:51, Pablo Rodriguez a écrit : > On 4/16/20 1:14 AM, kaddour kardio wrote: > > running `mtx run ---generate` with 3 dashes fixed the issue. > >

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

2020-04-16 Thread denis . maier . lists
> Hans Hagen hat am 16. April 2020 12:24 geschrieben: > > > On 4/16/2020 9:02 AM, Henning Hraban Ramm wrote: > > > > > >> Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org: > >> > >> Hi, > >> > >>> 1) Does anybody know of any scientific publisher or single journals > >>> which

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

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 10:05 AM, denis.maier.li...@mailbox.org wrote: >> Pablo Rodriguez hat am 16. April 2020 09:53 geschrieben: >> [...] >> Do you plan to release the slides of these talks? > > Sure, https://boris.unibe.ch/135830/ and https://boris.unibe.ch/135828/ Many thanks for the links, Denis. Pablo

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Mojca Miklavec
On Thu, 16 Apr 2020 at 11:29, Taco Hoekwater wrote: > > On 16 Apr 2020, at 11:12, Mojca Miklavec wrote: > > > > I have been asked to create a few thousand PDF documents from a CSV > > "database" today > > In CPU cycles, the fastest way is to do a single context —once > run generating all the pages

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

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 10:00 AM, Arthur Reutenauer wrote: > On Thu, Apr 16, 2020 at 09:53:46AM +0200, Pablo Rodriguez wrote: >> [...] >> Do you plan to release the slides of these talks? > > > https://conference.pkp.sfu.ca/index.php/pkp2019/pkp2019/paper/viewFile/719/455 > and >

[NTG-context] filtering pages from /PrintPageRange

2020-04-16 Thread Pablo Rodriguez
Dear list, this is a new experience deep inside LuaMetaTeX (for me). I need to compose a new document from selected pages (which are marked automatically and stored in /PrintPageRange) in a PDF document containing 1000 pages. It has to be one of the worst coding snippets ever written, but it

Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Dear Hans, Thank you for the reply. Since \startMPcode … \stopMPcode form is used in the manual, I think that it is OK to use it for all cases. Thank you again. Best regards, Dalyoung > 2020. 4. 17. 오전 5:01, Hans Hagen 작성: > > On 4/16/2020 8:36 PM, Jeong Dal wrote: >> Hi, >> The

Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Hans Hagen
On 4/16/2020 8:36 PM, Jeong Dal wrote: Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code,

Re: [NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
On 16/04/20, 12:35, Hans Hagen wrote: > On 4/16/2020 10:51 AM, Henri Menke wrote: > > Dear list, > > > > I'm trying to build the plain format but it fails with > > > > $ mtxrun --script plain --make > > [...] > > ! I can't find file `luatex-plain.tex'. > > > > but mtxrun can find

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Hans Hagen
On 4/16/2020 8:32 PM, Mojca Miklavec wrote: Where would be the best way to document this / under what wiki topic, as I'm sure I'll need it again and forget until then unless I write it down immediately? "Mail merge"? ;) maybe a 'workflows' entry? Hans

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

2020-04-16 Thread Arthur Reutenauer
On Thu, Apr 16, 2020 at 09:53:46AM +0200, Pablo Rodriguez wrote: > On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote: >> 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

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

2020-04-16 Thread denis . maier . lists
> Henning Hraban Ramm hat am 16. April 2020 09:02 geschrieben: > > 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 > >

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

2020-04-16 Thread denis . maier . lists
> Pablo Rodriguez hat am 16. April 2020 09:53 geschrieben: > > > On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote: > > [...] > >> 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

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

2020-04-16 Thread Pablo Rodriguez
On 4/15/20 10:52 PM, denis.maier.li...@mailbox.org wrote: > [...] >> 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

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

2020-04-16 Thread Henning Hraban Ramm
> Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org: > > 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* >

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

2020-04-16 Thread Hans Hagen
On 4/16/2020 1:14 AM, kaddour kardio wrote: running `mtx run ---generate` with 3 dashes fixed the issue. strange ; nothing has changed in that code so why three dashes Hans - Hans Hagen

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

2020-04-16 Thread Pablo Rodriguez
On 4/16/20 1:14 AM, kaddour kardio wrote: > running `mtx run ---generate` with 3 dashes fixed the issue. > [...] >     mtx-run --generate > give me this error > unknown script 'cache.lua' or 'mtx-cache.lua' Sorry, but I think the command reads: mtxrun --generate I

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

2020-04-16 Thread luigi scarso
On Thu, Apr 16, 2020 at 9:08 AM Henning Hraban Ramm wrote: > > > > Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org: > > I’m using a Python script to convert DOCX to ConTeXt. c# under linux is also a valid option. -- luigi

[NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
Dear list, I'm trying to build the plain format but it fails with $ mtxrun --script plain --make [...] ! I can't find file `luatex-plain.tex'. but mtxrun can find the file. $ mtxrun --find-file "luatex-plain.tex"

[NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Mojca Miklavec
Hi, I have been asked to create a few thousand PDF documents from a CSV "database" today (which I can easily transform into any other form, like XML or a lua table or TeX definitions or whatever). Generating a few thousand pages would be straightforward, but I'm sure there are some clever ways

Re: [NTG-context] Cannot build plain format

2020-04-16 Thread Hans Hagen
On 4/16/2020 10:51 AM, Henri Menke wrote: Dear list, I'm trying to build the plain format but it fails with $ mtxrun --script plain --make [...] ! I can't find file `luatex-plain.tex'. but mtxrun can find the file. $ mtxrun --find-file "luatex-plain.tex"

Re: [NTG-context] Best way to create a large number of documents from database

2020-04-16 Thread Taco Hoekwater
> On 16 Apr 2020, at 11:12, Mojca Miklavec > wrote: > > Hi, > > I have been asked to create a few thousand PDF documents from a CSV > "database" today (which I can easily transform into any other form, > like XML or a lua table or TeX definitions or whatever). > > Generating a few thousand

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

2020-04-16 Thread Hans Hagen
On 4/16/2020 9:02 AM, Henning Hraban Ramm wrote: Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org: 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

[NTG-context] Text around an image

2020-04-16 Thread Fabrice Couvreur
Hi, I know that this question has been raised several times (especially by me !), but the solutions provided sometimes work and sometimes not, especially in this example. Thanks for your help. Fabrice \useMPlibrary [dum] \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace}