[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Wolfgang Schuster
Otared Kavian schrieb am 24.08.2023 um 12:50: On 24 Aug 2023, at 06:03, Wolfgang Schuster > wrote: […] I would drop the column check in this case.     for i = 0,9 do     context.startxrow()     context.startxcell()    

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Hans Hagen
On 8/24/2023 4:11 PM, denis.ma...@unibe.ch wrote: Hi, I'm trying to check whether an attribute contains (or, actually starts with) a given string. I've tried a whole bunch of different combinations, but I've had no luck so far. Minimal example below. Anyone has a hint? Best, Denis

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
One way would be to do the search in Lua; when you have multiple searches to perform, that may be the easiest way to go. For example: \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups

[NTG-context] xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
Hi, I'm trying to check whether an attribute contains (or, actually starts with) a given string. I've tried a whole bunch of different combinations, but I've had no luck so far. Minimal example below. Anyone has a hint? Best, Denis %

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Otared Kavian
> On 24 Aug 2023, at 06:03, Wolfgang Schuster > wrote: >> […] > > I would drop the column check in this case. > > for i = 0,9 do > context.startxrow() > context.startxcell() > context(i) > context.stopxcell() >

[NTG-context] Re: An strange error with section and page

2023-08-24 Thread Xavier B.
Oh Awesome. I'm looking forward to the solution. Thanks a lot, Xavier On Wed, 23 Aug 2023 22:04:36 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 23.08.2023 um 15:02: > > Wolfgang, > > > > I detect something extrange: when I use \startexercici \stopexercici (see > >

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
Hi Otared and Wolgang, Thanks for the answers. In fact, being familiar with Python and not at all with Lua, I didn't have the reflex to think of using a mathematical function which gives the remainder in the Euclidean division by 10, it's strange !! Fabrice Le jeu. 24 août 2023 à 04:06, Wolfgang