Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Hans Hagen
On 5/29/2021 8:29 PM, Nicola wrote: So, is it correct that the XML files are automatically generated from the source code, and kept in sync with it? If so, how is that done? Or the xml files are maintained by Wolfgang who knows context inside out and has ways to keep track of additions

Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Nicola
On 2021-05-29, Hans Hagen wrote: > On 5/29/2021 5:03 PM, Nicola wrote: >>> these lists are generated by mtx-interface so we can add more if needed >> >> Could you please elaborate on the (automatic?) data flow from ConTeXt's >> source files to data files for each application? Is it: >> >> source

Re: [NTG-context] Synctex broken in LMTX ?

2021-05-29 Thread Nicola
On 2021-05-16, Hans Hagen wrote: > now, here is something to think about: > > >mtxrun --script synctex --list > mtx-synctex | invalid synctex log file %a I've got a positive feedback, and an agenda, from Richard Koch for supporting ConTeXt's syncing mechanism (including the PDF->TeX

Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Hans Hagen
On 5/29/2021 5:03 PM, Nicola wrote: On 2021-04-25, Hans Hagen wrote: If there is a way to automatically get a list of all ConTeXt commands and options (and, ideally, MetaFun defs, types, and other keywords), I'd be happy to improve omni-completion for ConTeXt in Vim. All is in xml files

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Hans Hagen
On 5/29/2021 3:02 PM, Jairo A. del Rio wrote: Hi, Adam. There are some ways to do it. I'm sure there are many more, but I don't remember them right now. Hi, Hans. There's a bug (?) in syst-lua.lua related to \expression in MkIV (xmath and xcomplex aren't defined). Please fix that something

Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Nicola
On 2021-04-25, Hans Hagen wrote: >> If there is a way to automatically get a list of all ConTeXt commands >> and options (and, ideally, MetaFun defs, types, and other keywords), I'd >> be happy to improve omni-completion for ConTeXt in Vim. > All is in xml files (i-*.xml) in the distribution

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Adam Reviczky
Thank you Jairo! I have tried playing around with letterpercent/catcodes as well, not sure what I did wrong, but your examples work just fine, so thanks again. Adam On Sat, May 29, 2021 at 2:04 PM Jairo A. del Rio wrote: > Hi, Adam. There are some ways to do it. I'm sure there are many more,

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Jairo A. del Rio
Hi, Adam. There are some ways to do it. I'm sure there are many more, but I don't remember them right now. Hi, Hans. There's a bug (?) in syst-lua.lua related to \expression in MkIV (xmath and xcomplex aren't defined). Please fix that %Temporary hack for MkIV %Only use it in case \expression

[NTG-context] ctxlua percentage format escape

2021-05-29 Thread Adam Reviczky
Hi, I was trying to use a quick calculation like the new mathfun in lmtx for an older mkiv document. MWE from the wiki: https://wiki.contextgarden.net/Programming_in_LuaTeX#Examples \starttext $\pi = \ctxlua{context("\%.6f", math.pi)}$ \stoptext But that gives an error (actually for both lmtx

Re: [NTG-context] Fwd: --luatex option failing

2021-05-29 Thread Pablo Rodriguez
On 5/29/21 2:38 AM, jbf wrote: > Pablo, thanks for the assistance you gave me... it made me look at the > cache inside the lmtx folders and I could see that the entire luatex > folder was missing. I did try your --erase and --generate moves, but > that did nothing to resolve things, so I installed