Hi, since the latest updates, some of my code examples won’t work any more. The error message (below) seems to be about a font issue.

In any MWE that I could come up with (including the example setup and loading the typescript), I can’t reproduce the error.

The example code is in a buffer (CodeExampleNumm) and contains \start/stoptext. I process it with \typebuffer and \typesetbuffer. Syntax highlighting is using the scite module.

The error location is in a function 'lmtxplugin'; line 1202 is
"if plugin(pdfdoc,contents,fonts,xobjects,pagenumber,compactor,adapted,depth+1,objtag) then"; depth is given as a parameter…

Can you give me a hint for what I should look?

Hraban



buffers > typeset > no changes in 'CodeExampleNumm', processing skipped
lua error       > lua error on line 1254 in file de/c_struktur.tex:

registered function call [1692]: ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:1202: attempt to perform arithmetic on a nil value (local 'depth')
stack traceback:
...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:1202: in upvalue 'plugin' ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:702: in local 'handler' ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:1110: in upvalue 'plugin' ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:1310: in upvalue 'lpdf_epdf_fontplugin' [string "local document_pdf_identify_content = documen..."]:7: in local 'runner' ...-19/tex/texmf-context/tex/context/base/mkxl/lpdf-fix.lmt:110: in upvalue 'lpdf_epdf_contentplugin' [string "local lpdf_epdf_contentplugin = lpdf.epdf.con..."]:6: in local 'runner' ...-19/tex/texmf-context/tex/context/base/mkxl/lpdf-fix.lmt:136: in field 'pageplugin' ...-19/tex/texmf-context/tex/context/base/mkxl/lpdf-pde.lmt:1502: in upvalue 'copypage' ...-19/tex/texmf-context/tex/context/base/mkiv/grph-chk.lua:126: in function <...-19/tex/texmf-context/tex/context/base/mkiv/grph-chk.lua:111> ...-19/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1693: in function <...-19/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1678>
        (...tail calls...)
1238     Nummeriert!\par
1239     \samplefile{zapf}\par
1240     \samplefile{ward}\par
1241     Und noch einer.\par
1242     \setupparagraphnumbering[state=stop]
1243
1244     Wieder unnummeriert.
1245     % ex:stop
1246     \stoptext
1247     %\stopTEXpage
1248 >>  \stopbuffer
1249
1250 \typebuffer[CodeExampleNumm][option=TEX]%, range={ex:start,ex:stop}, numbering=file]
1251
1252 \startplacefigure[location=page,title={Nummerierte Zeilen und Absätze (zu \in{}[sec:numlinepar])}]
1253     \scale[width=1tw]{%
1254 \typesetbuffer[CodeExampleNumm][page=1, backgroundoffset=24pt, background=BeispielPattern,]}
1255     \stopplacefigure

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to