SyncTex ForwardSync from unwrapped long lines has imprecise highlighting
Submitted by Tobias Wolf
Link to original bug (#626405)
Description
The new internal SyncTeX machinery inherits the fundamental limitation that only column numbers of the document source are taken into account, not character columns.
This is problematic when the document is not hard-wrapped. Often whole paragraphs are on one line.
Currently the SyncTeX in Evince only draws a box around the first line of the paragraph even if the end of the paragraph was the source of the click.
A possible solution is to highlight the whole paragraph, which is less precise but at least not misleading. Texworks does this too.
There might be a problem with paragraphs spanning pages. Texworks never displays more than one page at a time, perhaps other viewers have a solution for this.
nota bene, the inventor of SyncTeX works around the column limitation by taking context words into account to make the mapping more precise. Ultimately it’s desirable to augment TeX processors with column information.
Version: 2.31.x