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

Page number boxes incorrectly correlated to contents on the next page #47

Open
ma-chengyuan opened this issue Jun 17, 2022 · 1 comment

Comments

@ma-chengyuan
Copy link

I am writing a program where I use synctex to determine where a piece of LaTeX code end up in the PDF. During testing I noticed that the handling of page number boxes seem to be incorrect. As I understand it, synctex determines the source location of a box by looking at TeX's the internal buffer location when that box is created. Given that the page breaker and the output routines are invoked after TeX starts looking at items on the next page, the problem seems to be expected. Nevertheless, I would like to know if there's anyway internally to distinguish these boxes created by the page breaker from those actually created by the source file -- perhaps by looking at the type of the nodes?

@jlaurens
Copy link
Owner

With standard TeX we cannot distinguish between nodes of the same kind. With LuaTeX we do have far more control but it may not be that easy. In particular, SyncTeX has been reimplemented and partly exposed to the user, but it may not be as promising for the moment.
I would really like LuaTeX to allow extensions to SyncTeX but it is not actually on top of the list due to the problems LuaTeX developers are facing.

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