[NTG-context] finding content of xml elements

2018-12-12 Thread Hans van der Meer
Having a string pointing to an element in the XML-tree, for example IDENT::3 as the third element of the tree IDENT. How can access this element in a Lua function as function examine(element)…end called with value element = IDENT::3? Or formulated otherwise: how can I reach from that string

Re: [NTG-context] graphics

2018-12-12 Thread Alan Braslau
On Thu, 13 Dec 2018 09:02:05 +1300 Henri Menke wrote: > On 13/12/18 8:56 AM, Alan Braslau wrote: > > On Wed, 12 Dec 2018 20:42:56 +0100 > > "Mikael P. Sundqvist" wrote: > >> > >> Thanks, Alan! That looks very promising. I could not make it work, > >> though, and I guess that is because I use

Re: [NTG-context] graphics

2018-12-12 Thread Alan Braslau
On Wed, 12 Dec 2018 14:51:47 +0100 Mathias Schickel wrote: > You can see the desired behaviour in the attached pdf output of the > LaTeX file. No, one cannot, unless one has Adobe... Alan ___ If your question is of

Re: [NTG-context] graphics

2018-12-12 Thread Henri Menke
On 13/12/18 9:12 AM, Alan Braslau wrote: > On Thu, 13 Dec 2018 09:02:05 +1300 > Henri Menke wrote: > >> On 13/12/18 8:56 AM, Alan Braslau wrote: >>> On Wed, 12 Dec 2018 20:42:56 +0100 >>> "Mikael P. Sundqvist" wrote: Thanks, Alan! That looks very promising. I could not make it

Re: [NTG-context] graphics

2018-12-12 Thread Alan Braslau
On Thu, 13 Dec 2018 10:03:40 +1300 Henri Menke wrote: > Sorry, my mistake, the Bessel functions are not a GCC extension but > POSIX standard functions. > http://pubs.opengroup.org/onlinepubs/9699919799/functions/j0.html > Since TeX Live is always built on a POSIX platform (MSYS2 on Windows), >

Re: [NTG-context] graphics

2018-12-12 Thread Alan Braslau
On Wed, 12 Dec 2018 20:42:56 +0100 "Mikael P. Sundqvist" wrote: > > Thanks, Alan! That looks very promising. I could not make it work, > though, and I guess that is because I use linux and do not know what > to change for what. I installed libcerf but I assume something else is > missing. In any

Re: [NTG-context] graphics

2018-12-12 Thread Mikael P. Sundqvist
On Wed, Dec 12, 2018 at 9:02 PM Henri Menke wrote: > > On 13/12/18 8:56 AM, Alan Braslau wrote: > > On Wed, 12 Dec 2018 20:42:56 +0100 > > "Mikael P. Sundqvist" wrote: > >> > >> Thanks, Alan! That looks very promising. I could not make it work, > >> though, and I guess that is because I use

Re: [NTG-context] graphics

2018-12-12 Thread Mikael P. Sundqvist
On Sat, Dec 8, 2018 at 4:15 PM Alan Braslau wrote: > > On Sat, 8 Dec 2018 09:31:46 +0100 > "Mikael P. Sundqvist" wrote: > > > 3) It would be nice to be able to plot some special functions. I'm > > thinking of the usual suspects, Airy, Bessel, Hypergeometric, > > Laguerre, Legendre, ... Could it

Re: [NTG-context] graphics

2018-12-12 Thread Henri Menke
On 13/12/18 8:56 AM, Alan Braslau wrote: > On Wed, 12 Dec 2018 20:42:56 +0100 > "Mikael P. Sundqvist" wrote: >> >> Thanks, Alan! That looks very promising. I could not make it work, >> though, and I guess that is because I use linux and do not know what >> to change for what. I installed libcerf

[NTG-context] \xmlfunction

2018-12-12 Thread Hans van der Meer
How can one transmit argument values to \xmlfunction in order to be used by the Lua function called? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] graphics

2018-12-12 Thread Henri Menke
On 13/12/18 10:39 AM, Alan Braslau wrote: > On Thu, 13 Dec 2018 10:03:40 +1300 > Henri Menke wrote: > >> Sorry, my mistake, the Bessel functions are not a GCC extension but >> POSIX standard functions. >> http://pubs.opengroup.org/onlinepubs/9699919799/functions/j0.html >> Since TeX Live is

[NTG-context] searching in nodes

2018-12-12 Thread Hans van der Meer
In a Lua function called from within an \startxmlsetups..\stopxmlsetups code block I would like to search through the current node and all below. Using string.match("to-be-searched”,”pattern”). The Lua function being called through