Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
On Tue, 22 Dec 2020 at 18:15, Hans Hagen wrote: > > On 12/22/2020 6:57 PM, Neven Sajko wrote: > > Oops, I forgot to attach the scriptlet before. > > > > > >> [...] I guess it could also be more performant, because Lua would > >> conceivably spend less tim

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Thank you very much for your answers! Neven ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Oops, I forgot to attach the scriptlet before. > [...] I guess it could also be more performant, because Lua would > conceivably spend less time managing huge tables. Now that I think about this some more, it doesn't actually make sense. However I'm still interested in whether it is really

[NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Hello again, While learning about how to drive TeX through Lua, I decided to recursively list all Lua global variables (actually this is traversing the _G table) in the LMTX environment, half to learn more Lua, half for getting to know ConTeXt better. I was quite surprised by the huge size of

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
On Thu, 17 Dec 2020 at 15:27, Aditya Mahajan wrote: > OT but can Gadfly directly produce PDFs? [...] Yes it can. Going to try that route if this doesn't work out. > [..] Depending on how complicated plots you want to generate, you can also > use metapost graph module or pdfplots package for

[NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
Hello all, I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some MathJax snippets and the like.) I am using Aditya's LMTX package from AUR on Archlinux. I have some SVGs (generated by the Julia Gadfly package) that represent 2D plots of some functions, and I would like to include