[luatex] Synchronize ERROR: unknown node type 11
Hans Hagen
j.hagen at xs4all.nl
Wed Mar 20 08:20:20 CET 2024
On 3/19/2024 9:09 PM, Jérôme LAURENS wrote:
> I could not find the exact location of the problem, but here are some hints that may help a lot to solve it.
>
> `Synchronize ERROR: unknown node type 11` is a bit misleading, it should be `unexpected node type 11` instead.
> 11 corresponds to `math_node` in LuaTeX (according to `texnodes.h` line 412). This error message comes from the `synctexhorizontalruleorglue` function, when it is called on a node with the wrong type. It means that `synctexhorizontalruleorglue` is called on a math node, which is not expected. So, somewhere in LuaTeX, `synctexhorizontalruleorglue` is used instead of the dedicated `synctexmath`. Also, the problem is somehow related to `\mathsurroundskip`.
>
> I hope this helps.
because in that case the mathnode *is* a glue node, that is: it's glue
fields are used (and they have the same layout as a glue node) so
synctex should just accept a math node as valid glue in luatex
>> On 3/19/2024 5:12 PM, Jérôme LAURENS wrote:
>>> Hi
>>> I suspect this might not be the best location for a bug report, but I could not get mantisBT to work.
>>> This bug stands around since 2019 (https://github.com/jlaurens/synctex/issues/30)
>>> Source file `bug.tex`
>>> ```
>>> \mathsurroundskip=1cm
>>> $y$%
>>> \bye
>>> ```
>>> ## Command
>>> ```
>>> luatex --synctex=1 bug.tex
>>> ```
>>> In the terminal output below all the `Synchronize ERROR` lines are unexpected, they are not ini the log file:
>>> ```
>>> This is LuaTeX, Version 1.18.0 (TeX Live 2024)
>>> restricted system commands enabled.
>>> (./bug.tex [1
>>> Synchronize ERROR: unknown node type 11
>>
>> these are math nodes and such nodes can have glue set (they also have syntaex fields) so afaiks it's not a bug in luatex
>>
>> (fwiw, glue as alternative for surround kerns have been in luatex for quite a while so i suppose that older luatex versions give the same error)
>>
>>> Synchronize ERROR: unknown node type 11
>>> {.../TeXLive/Master/texmf-dist/fonts/map/pdftex/updmap/
>>> pdftex.map}
>>> Synchronize ERROR: unknown node type 11
>>> Synchronize ERROR: unknown node type 11
>>> ])<.../TeXLive/Master/texmf-dist/fonts/type1/public/amsfo
>>> nts/cm/cmmi10.pfb><.../TeXLive/Master/texmf-dist/fonts/type1/public/
>>> amsfonts/cm/cmr10.pfb>
>>> Output written on bug.pdf (1 page, 15421 bytes).
>>> SyncTeX written on bug.synctex.gz.
>>> Transcript written on bug.log.
>>> ```
>>> MacOS 13, fresh TeXLive updated today from svn
>>> TIA
>>> Please notice that I am not a member of the list
>>
>> --
>>
>> -----------------------------------------------------------------
>> Hans Hagen | PRAGMA ADE
>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -----------------------------------------------------------------
>
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the luatex
mailing list.