SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2.01k stars 365 forks source link

script incompatible with sync #1578

Open duartefontes opened 1 year ago

duartefontes commented 1 year ago

Hi,

I am trying to compile a TeX file which has some diagrams, and I would like the sync option (between PDF file and editor) to work well. Now, when I have "builder": "traditional" in the Settings, the sync between PDF and editor works fine. Yet, the diagrams of my file are not generated in that mode. I found that I can generate them by a) setting "builder": "script" and b) modifying the "builder_settings" such that:

"osx" : { "script_commands": [ "pdflatex -interaction=nonstopmode --shell-escape $file_name", "pdflatex -interaction=nonstopmode --shell-escape $file_name" ] }

The problem is that, in this case, the sync no longer works. In sum: in "builder": "traditional" the sync works, but the diagrams don't, whereas in "builder": "script" the diagrams work, but the sync doesn't.

Any idea?

Thanks, and thanks for this amazing project, Duarte