Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-17 Thread Ramkumar KB via ntg-context
Hans / Wolfgang, Thank you for your quick feedback and the tips. Yes, this works for now. In general, I will try to avoid going into such "deep-end" APIs (at least for now, until such time I read all the manuals in depth!). IMHO, the standard ConTeXt system is itself quite powerful for 98% of

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Hans Hagen via ntg-context
On 10/16/2021 10:33 AM, Wolfgang Schuster via ntg-context wrote: Ramkumar KB via ntg-context schrieb am 16.10.2021 um 06:00: Hello All, I was trying to read the value of '\totalnumberofpages' into lua to do something with it. As an example, see below. Now, as I understand it, my example

Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Wolfgang Schuster via ntg-context
Ramkumar KB via ntg-context schrieb am 16.10.2021 um 06:00: Hello All, I was trying to read the value of '\totalnumberofpages' into lua to do something with it. As an example, see below. Now, as I understand it, my example would not work as TeX gets the first go at this and therefore the

[NTG-context] Reading ConTeXt metadata values into Lua

2021-10-15 Thread Ramkumar KB via ntg-context
Hello All, I was trying to read the value of '\totalnumberofpages' into lua to do something with it. As an example, see below. Now, as I understand it, my example would not work as TeX gets the first go at this and therefore the variable 'pages' is the string '\totalnumberofpages' and not the