Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kern nodes are corrupted in luatex output #82

Open
dpantele opened this issue Apr 12, 2024 · 6 comments
Open

Kern nodes are corrupted in luatex output #82

dpantele opened this issue Apr 12, 2024 · 6 comments

Comments

@dpantele
Copy link

When compiling a trivial doc

\documentclass{article}
\begin{document}

a\kern3pt b

\end{document}

we get the following synctex kern nodes in the .synctex file:

x1,4:10110238,8865054
k0,0:8799518,8865054:196608
x1,6:10671226,8865054
g1,5:31409438,8865054

kTAG,LINE:H,V:WIDTH

compare to pdflatex:

x1,4:10670937,8865054
k1,5:31409438,8865054:20738501
g1,5:31409438,8865054

pdflatex seems accurate, but luatex often produces huge numbers as tags and other attributes on longer files, as if there is some memory corruption.

@dpantele
Copy link
Author

I guess it is present even in the reference test files:

@jlaurens
Copy link
Owner

Thanks for reporting.

I will report to the luatex developers in some near future, when enhancements to synctex are ready for the other engines.
FYI, it concerns support of math surround space, more accurate line numbers for math nodes and box nodes, and a new \synctexmark feature to retrieve some information from the synctex file.

@dpantele
Copy link
Author

Thanks! Another report about the same: https://tex.stackexchange.com/q/709094

New features looks promising.

Would it be feasible to actually enable tracking characters as well? Sycntex format supports that, but that is not implemented in any engine AFAIK. I am happy to open another issue if needed.

@jlaurens
Copy link
Owner

Tracking characters must be properly defined. There are difficulties when compound characters come into play. Moreover, this leads to heavy calculation/storage.

@dpantele
Copy link
Author

Wanted to check if kern nodes corruption was reported/discussed and if there was some resolution

@jlaurens
Copy link
Owner

jlaurens commented Sep 2, 2024

I have not reported any kern nodes corruption error yet. I you can, please report to luatex authors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants