Latex-workshop: Feature request: Synchronised scrolling for preview and source file

Created on 15 Jan 2018  路  6Comments  路  Source: James-Yu/LaTeX-Workshop

Would it be feasible to implement synchronised scrolling for the source file and the PDF preview similar to https://github.com/Microsoft/vscode/issues/5047?

enhancement

Most helpful comment

One thing that may be preferred is the option to automatically call syntex after a rebuild. However, I do agree that synchronized scrolling may be problematic. Even the markdown one isn't incredibly accurate when the contents is beyond plain text

All 6 comments

It can be problematic. For instance, the PDF file may have two columns. Also it requires a very frequent synctex execution, which can be overwhelming to some low-end computers.

I'd like to see what the community think of this feature.

Not feasible, I think. In addition to the multicolumn issue, consider the placement of LaTeX floats: You may end up randomly jumping around in your source while going over these. The mapping between linear source and pdf file location is, in general, not linear.

One thing that may be preferred is the option to automatically call syntex after a rebuild. However, I do agree that synchronized scrolling may be problematic. Even the markdown one isn't incredibly accurate when the contents is beyond plain text

Very good points! I hadn't thought about the subtleties.

+1 to automatically call synctex after rebuild. Shall I create this as a new enhancement proposal?

Set latex-workshop.synctex.afterBuild.enabled to true.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iainmstott picture iainmstott  路  5Comments

jose-a-sa picture jose-a-sa  路  4Comments

sth4nth picture sth4nth  路  3Comments

fsonntag picture fsonntag  路  4Comments

s-ilic picture s-ilic  路  3Comments