Re: [NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Aditya Mahajan
On Fri, 11 Jan 2019, Henri Menke wrote: On 11/01/19 4:42 PM, Aditya Mahajan wrote: Hi, Is it possible to process an XML file inside a zip file without unzipping? In particular, I have a program that generates zip files which look like this: The file `filename.zip` contains: - filename.xml -

Re: [NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Henri Menke
On 11/01/19 4:42 PM, Aditya Mahajan wrote: > Hi, > > Is it possible to process an XML file inside a zip file without unzipping? > > In particular, I have a program that generates zip files which look like > this: > > The file `filename.zip` contains: > - filename.xml - file_hash1.png > -

[NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Aditya Mahajan
Hi, Is it possible to process an XML file inside a zip file without unzipping? In particular, I have a program that generates zip files which look like this: The file `filename.zip` contains: - filename.xml - file_hash1.png - file_hash2.png etc. Where `filename.xml` (the name matches the

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2019, Aditya Mahajan wrote: On Thu, 10 Jan 2019, Hans Hagen wrote: On 1/10/2019 10:26 PM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:      

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
> On 11 Jan 2019, at 00:13, Wolfgang Schuster > wrote: > > Hans Åberg schrieb am 10.01.19 um 22:52: >>> On 10 Jan 2019, at 22:14, Wolfgang Schuster >>> wrote: >>> >>> Hans Åberg schrieb am 10.01.19 um 22:04: There seems to be no option for \setuptyping[indentnext=...] following the

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2019, Hans Hagen wrote: On 1/10/2019 10:26 PM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:        height="15px"

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Wolfgang Schuster
Hans Åberg schrieb am 10.01.19 um 22:52: On 10 Jan 2019, at 22:14, Wolfgang Schuster wrote: Hans Åberg schrieb am 10.01.19 um 22:04: There seems to be no option for \setuptyping[indentnext=...] following the TeX convention to indent new paragraphs, as followed by a blank row, but not

Re: [NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
On Fri, 11 Jan 2019, Henri Menke wrote: On 11/01/19 10:26 AM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:            I want to typeset the

Re: [NTG-context] XML and math

2019-01-10 Thread Hans Hagen
On 1/10/2019 10:26 PM, Aditya Mahajan wrote: Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows:        height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/>    

Re: [NTG-context] XML and math

2019-01-10 Thread Henri Menke
On 11/01/19 10:26 AM, Aditya Mahajan wrote: > Hi, > > I have an XML file (which is generated via a program that I have no > control over), which contains elements as follows: > > >     >    height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/> >  

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
> On 10 Jan 2019, at 22:14, Wolfgang Schuster > wrote: > > Hans Åberg schrieb am 10.01.19 um 22:04: >> There seems to be no option for \setuptyping[indentnext=...] following the >> TeX convention to indent new paragraphs, as followed by a blank row, but not >> otherwise. > > Are you

[NTG-context] XML and math

2019-01-10 Thread Aditya Mahajan
Hi, I have an XML file (which is generated via a program that I have no control over), which contains elements as follows: height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/> I want to typeset the `text` attribute

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Wolfgang Schuster
Hans Åberg schrieb am 10.01.19 um 22:04: There seems to be no option for \setuptyping[indentnext=...] following the TeX convention to indent new paragraphs, as followed by a blank row, but not otherwise. Are you looking for the auto option of the indentnext key? \setupindenting[yes,medium]

[NTG-context] Setup typing indent next

2019-01-10 Thread Hans Åberg
There seems to be no option for \setuptyping[indentnext=...] following the TeX convention to indent new paragraphs, as followed by a blank row, but not otherwise. ___ If your question is of interest to others as

Re: [NTG-context] fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)

2019-01-10 Thread Hans Hagen
On 1/10/2019 5:13 PM, Pablo Rodriguez wrote: This was the same problem that prevented the compilation of the following code: \setupdirections[bidi=on, method=two] \starttext \input zapf \stoptext this is unlikely as you don't use generic ... probably another fix

Re: [NTG-context] fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)

2019-01-10 Thread Pablo Rodriguez
On 1/7/19 12:40 AM, Ulrike Fischer wrote: > I just tried to import the fontloader from 2019-01-03 into latex, > and get on a simple document the error > > (./test-utf8.aux)error: > ...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868: > attempt to call upvalue 'getdirection' (a nil

[NTG-context] issue with backend.date

2019-01-10 Thread Pablo Rodriguez
Dear list, I have the following sample: \enabledirectives[backend.date=no] \enabledirectives[backend.info=no] \enabledirectives[backend.xmp=no] \starttext a \stoptext At least, backend.date doesn’t work with latest beta (2019.01.07 16:10) as it used to work before. I

Re: [NTG-context] local ToC after each chapter title

2019-01-10 Thread Henning Hraban Ramm
Am 2019-01-10 um 15:21 schrieb Otared Kavian : > Hi Hraban, > > Probably instead of > >> \setuplist[chapter][ >> before=, >> after={\placecombinedlist[content][criterium=local]},] > > you wanted to say > > \setuphead[chapter][ > before=, >

Re: [NTG-context] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 12:11 PM Henning Hraban Ramm wrote: > > a Lua pairs table, the order can be arbitrary. > sure , the *default* __pairs gives pseudo-arbitrary order, but you can always use metatable: -- -- test.lua -- local _c,_t=0,{} local t = {} setmetatable(t, { __newindex =

Re: [NTG-context] local ToC after each chapter title

2019-01-10 Thread Otared Kavian
Hi Hraban, Probably instead of > \setuplist[chapter][ > before=, > after={\placecombinedlist[content][criterium=local]},] you wanted to say \setuphead[chapter][ before=, after={\placecombinedlist[content][criterium=local]}] which gives the expected result without any

[NTG-context] local ToC after each chapter title

2019-01-10 Thread Henning Hraban Ramm
Hello again, in my current book project I need a local ToC after each chapter title. What’s wrong with my use of "after"? The following example leads to a "TeX capacity exceeded" error: \setupcombinedlist[content][% list={chapter,section},] \setuplist[chapter][ before=,

Re: [NTG-context] final thoughts on experiments with lua

2019-01-10 Thread Hans Hagen
On 1/10/2019 12:11 PM, Henning Hraban Ramm wrote: Am 2019-01-10 um 10:50 schrieb luigi scarso : sections = { “1”, “2”, “2a” } words = { [“1”] = { “a”, “b” }, [“2a”] = { “c”, “d” } } so I can iterate through ipairs(sections) in sequence and pick up the word lists for each section.

Re: [NTG-context] final thoughts on experiments with lua

2019-01-10 Thread Henning Hraban Ramm
Am 2019-01-10 um 10:50 schrieb luigi scarso : >> sections = { “1”, “2”, “2a” } >> >> words = { [“1”] = { “a”, “b” }, >> [“2a”] = { “c”, “d” } } >> >> so I can iterate through ipairs(sections) in sequence and pick up the word >> lists for each section. In the greater scheme of things,

Re: [NTG-context] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 10:27 AM Schmitz Thomas A. < thomas.schm...@uni-bonn.de> wrote: > > > > On 10. Jan 2019, at 01:08, Hans Hagen wrote: > > > > it all depends on use ... if you can be more specific ... > > Hans, Luigi, > > thanks for your hints on list sorting - they are appreciated, but

Re: [NTG-context] final thoughts on experiments with lua

2019-01-10 Thread Schmitz Thomas A.
> On 10. Jan 2019, at 01:08, Hans Hagen wrote: > > it all depends on use ... if you can be more specific ... Hans, Luigi, thanks for your hints on list sorting - they are appreciated, but I’ve been there many many times: it’s impossible to be more specific because numbering can be