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] 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, b

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 a