Josef-Friedrich / nodetree

LuaTeX package to visualize node lists in a tree view.
https://www.ctan.org/pkg/nodetree
LaTeX Project Public License v1.3c
14 stars 2 forks source link

data fields #5

Closed Josef-Friedrich closed 1 year ago

Josef-Friedrich commented 4 years ago

Reported by email:

There is a problem about node data field expansion in luatex TL2019. Now it reads data fields content by evaluating tex procedures and I didn't find how to change it.

For example compiling this will break:

\documentclass[11pt,oneside,a4paper]{amsart}
\usepackage[color=no,channel=log]{nodetree}
\nodetreeregister{preout}
\nodetreeunregister{postline}
\begin{document}
\section{aa}
\end{document} 

there where no error in earlier luatex from TL2018. It is not a nodetree bug. It's just a difference in luatex n.data behavior where n is node with subtype whatsit. When nodetree tries to to print that 'data' field there starts tex processing instead off simple printing this data as a string. And now it's not possible to do in lua like "print n.data" if this data contains any tex commands. I tried to write to luatex team but didn't get answer about this change.