Issue : compilation error when using mathcases with pagella fonts (and others)
Hello, Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that won't compile with ConTexT. The problem seems to occur when using mathcases with some ConTeXt provided fonts, including pagella. This is a minimal not working example : \setupbodyfont[pagella] \starttext \startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index'\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62>\n [C]: in upvalue 'builders_kernel_mlisttohlist'\n [string \"local tonut = nodes.tonut...\"]:43: in function <[string \"local tonut = nodes.tonut...\"]:18>\n (...tail calls...)\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> My system is : FreeBSD 64bits Thank you for any help. Sincerely, Vincent Picard
Hi,
Not that it helps you much, but your example works fine here, and it
gives the expected result.
/Mikael
On Sun, Sep 24, 2023 at 1:42 PM Vincent Picard
Hello,
Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that won't compile with ConTexT. The problem seems to occur when using mathcases with some ConTeXt provided fonts, including pagella. This is a minimal not working example :
\setupbodyfont[pagella]
\starttext \startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext
The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index'\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62>\n [C]: in upvalue 'builders_kernel_mlisttohlist'\n [string \"local tonut = nodes.tonut...\"]:43: in function <[string \"local tonut = nodes.tonut...\"]:18>\n (...tail calls...)\n ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984>
My system is : FreeBSD 64bits
Thank you for any help. Sincerely, Vincent Picard ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
On 9/24/23 15:49, Mikael Sundqvist wrote:
Hi,
Not that it helps you much, but your example works fine here, and it gives the expected result.
Hi Mikael, I get exactly the same compilation error as Vicent. I tried a brand new installation (with http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip) and I got the same error again. Just in case it might help, Pablo PS: here is the error again: tex error > tex error on line 10 in file ./a.tex: lua error: run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62> [C]: in upvalue 'builders_kernel_mlisttohlist' [string "local tonut = nodes.tonut..."]:43: in function <[string "local tonut = nodes.tonut..."]:18> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9 \stopmathcases 10 >> \stopformula 11 \stoptext
On 9/24/2023 5:17 PM, Pablo Rodriguez wrote:
On 9/24/23 15:49, Mikael Sundqvist wrote:
Hi,
Not that it helps you much, but your example works fine here, and it gives the expected result.
Hi Mikael,
I get exactly the same compilation error as Vicent.
I tried a brand new installation (with http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip) and I got the same error again.
Just in case it might help,
Pablo
PS: here is the error again:
tex error > tex error on line 10 in file ./a.tex:
lua error:
run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:62> [C]: in upvalue 'builders_kernel_mlisttohlist' [string "local tonut = nodes.tonut..."]:43: in function <[string "local tonut = nodes.tonut..."]:18> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984>
1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9 \stopmathcases 10 >> \stopformula 11 \stoptext i'll check it tomorrow (witk mikael who has a newer bin and first we need to test some other math things) ... i probably need some temp hack because the build farm is still down (an extra callback argument was added a while ago)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Dear list, My problem was solved with ConTeXt latest release : 1.05 ltmx 2023.09.26 18:19 Thank you for the quick fix. Sincerely, Vincent Picard
participants (5)
-
Hans Hagen
-
Mikael Sundqvist
-
Pablo Rodriguez
-
Vincent Picard
-
vp.picard@gmail.com