Dear list, I have the following sample: \setuppapersize[A7] \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \startsection[title={sec}, list=(before \&\ now), reference=a] \page \in[a] (after 2022.10.14 10:16) \stopsection \stoptext If I try to compile with LuaTeX (after deleting the cache), I get the following error: lua error > lua error on line 1 in file a.tex: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: attempt to index a nil value (field 'subsets') stack traceback: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: in field 'moveitalics' .../context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg:103: in main chunk [C]: in function 'dofile' ...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: in function <...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68> (...tail calls...) It is also caused by the minimal: \starttext \null \stoptext And with the first source, \in hyperlink doesn’t work at all. Sylvain reported an issue with the \completecontent list (not honoring "focus=standard"), but with current latest the \in hyperlink doesn’t work at all. Could anyone confirm the issues? Many thanks for your help, Pablo
Hi! Le 14/10/2022 à 16:24, Pablo Rodriguez via ntg-context a écrit :
Dear list,
I have the following sample:
\setuppapersize[A7] \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \startsection[title={sec}, list=(before \&\ now), reference=a] \page \in[a] (after 2022.10.14 10:16) \stopsection \stoptext For me it works! And [...] It is also caused by the minimal:
\starttext \null \stoptext
also for this! Alain
On 10/14/22 16:34, Alain Delmotte via ntg-context wrote:
Hi!
Hi Alain, many thanks for your help.
For me it works! And
also for this!
I’m afraid that I cannot make latest from 2022.10.14 10:16 with LuaTeX. I’m on Linux64. I hope I may make it work with Win64. As for the issue with the links, I have already discovered what is wrong with them (wrong object reference). Many thanks for your help again, Pablo
Hi Pablo,
I’m afraid that I cannot make latest from 2022.10.14 10:16 with LuaTeX.
I’m on Linux64.
I've got the same configuration and I'm getting the same results: $ context --luatex test.tex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex test.tex --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ luatex '\relax' warning: /opt/context/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on line: OSFONTDIR =. This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev) system commands enabled. kpathsea: Running mktexfmt luatex.fmt mktexfmt: No such file or directory I can't find the format file `luatex.fmt'! $ luatex -ini '\end' warning: /opt/context/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on line: OSFONTDIR =. This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev) (INITEX) system commands enabled. No pages of output. Transcript written on texput.log. LuaMetaTeX works fine though. Thanks, -- Max
On Fri, 14 Oct 2022 15:38:52 -0600
Max Chernoff via ntg-context
Hi Alan, On Fri, 2022-10-14 at 16:20 -0600, Alan Braslau wrote:
On Fri, 14 Oct 2022 15:38:52 -0600 Max Chernoff via ntg-context
wrote: $ context --luatex test.tex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex test.tex --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
This happens when the luatex cache is cleared and the context format is not rebuilt properly.
Do you know how to rebuild the format? I've tried the following to no avail: $ mtxrun --generate [snip] $ context --make [snip] $ context --luatex --make mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex --make --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ TEXINPUTS="$(dirname $(mtxrun --findfile 'cont-en.mkiv' | head -1))" luatex -ini cont-en.mkiv warning: /opt/context/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on line: OSFONTDIR =. This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev) (INITEX) system commands enabled. (/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv (/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv (/opt/context/tex/texmf-context/tex/context/base/mkiv/syst-ini.mkiv) (/opt/context/tex/texmf-context/tex/context/base/mkiv/norm-ctx.mkiv) (/opt/context/tex/texmf-context/tex/context/base/mkiv/syst-pln.mkiv) (/opt/context/tex/texmf-context/tex/context/base/mkiv/syst-mes.mkiv) (/opt/context/tex/texmf-context/tex/context/base/mkiv/luat-cod.mkiv[\directlua] :1: attempt to call a nil value (field 'registercode') stack traceback: [\directlua]:1: in main chunk. \registerctxluafile ...ua.registercode("#1","#2")} l.73 \registerctxluafile{luat-cod}{} ? x 181 words of node memory still in use: 1 dir, 22 glue_spec nodes avail lists: 2:3 No pages of output. Transcript written on cont-en.log. $ fmtutil --all bash: fmtutil: command not found... $ context --make cont-en.mkiv [snip] Not sure what else to try. Thanks, -- Max
On Fri, 2022-10-14 at 16:38 -0600, Alan Braslau wrote:
On Fri, 14 Oct 2022 16:33:12 -0600 Max Chernoff
wrote: Do you know how to rebuild the format? I've tried the following to no avail:
--script mtx-context
I believe that you have to give the full script path here to mtxrun
Thanks! Running: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script /opt/context/tex/texmf-context/scripts/context/lua/mtx-context.lua --luatex --make --redirected has fixed the format issue. I now unfortunately have a new issue (probably for Hans or Mikael). Running: context --luatex empty.tex where "empty.tex" is: \starttext \null \stoptext gives me this output: mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex empty.tex --redirected resolvers | formats | executing runner 'run luatex format': /opt/context/tex/texmf-linux-64/bin/luatex --jobname="empty" --fmt=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt --lua=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:engine="luatex" --c:fulljobname="./empty.tex" --c:input="./empty.tex" --c:kindofrun=1 --c:luatex --c:maxnofruns=9 --c:redirected --c:texmfbinpath="/opt/context/tex/texmf-linux-64/bin" This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev) system commands enabled. open source > level 1, order 1, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' job > passes > version mismatch: 1.33 <> 1.32 system > system > ConTeXt ver: 2022.10.14 10:16 MKIV fmt: 2022.10.14 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source > level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'empty', input './empty', result 'empty' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/max/Projects/lua-widow-control/nogit-testing/empty.tex' fonts > preloading latin modern fonts (second stage) lua error > lua error on line 1 in file /home/max/Projects/lua-widow-control/nogit-testing/empty.tex: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: attempt to index a nil value (field 'subsets') stack traceback: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: in field 'moveitalics' .../context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg:103: in main chunk [C]: in function 'dofile' ...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: in function <...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68> (...tail calls...) 1 >> \starttext 2 \null 3 \stoptext 4 mtx-context | fatal error: return code: 256 The same file compiles just fine with LMTX. Thanks, -- Max
On 10/15/2022 12:46 AM, Max Chernoff via ntg-context wrote:
On Fri, 2022-10-14 at 16:38 -0600, Alan Braslau wrote:
On Fri, 14 Oct 2022 16:33:12 -0600 Max Chernoff
wrote: Do you know how to rebuild the format? I've tried the following to no avail:
--script mtx-context
I believe that you have to give the full script path here to mtxrun
Thanks! Running:
luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script /opt/context/tex/texmf-context/scripts/context/lua/mtx-context.lua --luatex --make --redirected
has fixed the format issue.
I now unfortunately have a new issue (probably for Hans or Mikael). Running:
context --luatex empty.tex
where "empty.tex" is:
\starttext \null \stoptext
gives me this output:
mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex empty.tex --redirected
resolvers | formats | executing runner 'run luatex format': /opt/context/tex/texmf-linux-64/bin/luatex --jobname="empty" --fmt=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt --lua=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:engine="luatex" --c:fulljobname="./empty.tex" --c:input="./empty.tex" --c:kindofrun=1 --c:luatex --c:maxnofruns=9 --c:redirected --c:texmfbinpath="/opt/context/tex/texmf-linux-64/bin" This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev) system commands enabled. open source > level 1, order 1, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' job > passes > version mismatch: 1.33 <> 1.32 system > system > ConTeXt ver: 2022.10.14 10:16 MKIV fmt: 2022.10.14 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source > level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'empty', input './empty', result 'empty' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/max/Projects/lua-widow-control/nogit-testing/empty.tex' fonts > preloading latin modern fonts (second stage)
lua error > lua error on line 1 in file /home/max/Projects/lua-widow-control/nogit-testing/empty.tex:
...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: attempt to index a nil value (field 'subsets') stack traceback: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: in field 'moveitalics' .../context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg:103: in main chunk [C]: in function 'dofile' ...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: in function <...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68> (...tail calls...)
1 >> \starttext 2 \null 3 \stoptext 4
mtx-context | fatal error: return code: 256
The same file compiles just fine with LMTX. i'll add a dummy subtable in math-act.lua:
local tweaks = { subsets = { } } mathematics.tweaks = tweaks Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 10/15/2022 12:33 AM, Max Chernoff via ntg-context wrote:
Hi Alan,
On Fri, 2022-10-14 at 16:20 -0600, Alan Braslau wrote:
On Fri, 14 Oct 2022 15:38:52 -0600 Max Chernoff via ntg-context
wrote: $ context --luatex test.tex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex test.tex --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
This happens when the luatex cache is cleared and the context format is not rebuilt properly.
Do you know how to rebuild the format? I've tried the following to no avail: normally context will remake automatically (you can try to touch the context.mk* file)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Alain Delmotte
-
Alan Braslau
-
Hans Hagen
-
Max Chernoff
-
Pablo Rodriguez