James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.62k stars 529 forks source link

“SyncTex from cursor” not working. #4312

Closed WuXinglong-HIT closed 3 months ago

WuXinglong-HIT commented 3 months ago

The function of "SyncTex from cursor" seems not working when I move the Latex Preview PDF into a new window.

Environment*

VSCode Version: 1.91 LaTex-Workshop Version: v10.1.0

The Issue*

After compiling the latex file, I am able to view the Latex PDF file. To enhance readability, I right-click on the tab header and select the "Move into new window" option. However, after making edits in the .tex file, when attempting to preview the .pdf file and clicking on "SyncTex from cursor", the function fails to work as expected. image image

Anything Else?

By the way, the funciton fails from .tex to .pdf, but not vice versa. Locating the corresponding position in .tex file from .pdf file is executed without any issues.

James-Yu commented 3 months ago

You cannot move it to a new window, or the extension will lose track of the tab. This is (almost surely) a vscode limitation.