-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
I am not sure whether column numbering significantly helps. |
That's also a good idea. (which is what I did in my proof of concept implementation, but packing the column number in top 8 bits of the line number) In retrospect, given that the tag number is more likely to be small than the line number, it's probably a better idea to pack the column number into the tag number instead. (Let's say, 16 bits for the tag number and 16 bits for the column number? Is that safe enough --- surely a typical implementation can't use up to 65536 files?) Quick test for how long it takes to input 65536 files, doing nothing else:
Result: Around 14 seconds on my machine. |
Some remarks
|
I think this is not too difficult, the (1-indexed) column can be computed as
loc - start + 1
providedstate != 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$2^{24}$ lines and column less than $2^8$ .
line
andcolumn
into a singleint
like a bit mask. This leads to a limitation of file length less thanHow can I modify the memory layout to add an extra field
column
into the box?The text was updated successfully, but these errors were encountered: