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

Include column information into synctex? #89

Open
user202729 opened this issue Sep 27, 2024 · 0 comments
Open

Include column information into synctex? #89

user202729 opened this issue Sep 27, 2024 · 0 comments

Comments

@user202729
Copy link

user202729 commented Sep 27, 2024

I think this is not too difficult, the (1-indexed) column can be computed as loc - start + 1 provided state != token_list.

I already have a proof of concept implementation at user202729/luatex@synctex-column , which appears to work reasonably for simple documents.

I'd like to ask:

  • is there sufficient interest in this idea?

  • while I implement this, I don't really understand the memory layout, which leads to me packing the line and column into a single int like a bit mask. This leads to a limitation of file length less than $2^{24}$ lines and column less than $2^8$.

    How can I modify the memory layout to add an extra field column into the box?

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

1 participant