SublimeText / LaTeXTools

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

Added a Google Chrome viewer with forward sync #1507

Open zsiegel92 opened 3 years ago

zsiegel92 commented 3 years ago

I added a viewer in viewers/chrome.py that mimics the structure of the okular and evince viewers. I tried not to use too many weird methods, though I suppose the applescript I wrote may require user permissions. It works for me!

zsiegel92 commented 3 years ago

I think the Chrome viewer I wrote is the only viewer that directly calls synctex (rather than delegating that task to Skim or Zathura, etc.). It calls /Library/TeX/texbin/synctex.

If anyone knows the best practice for finding the synctex binary on a given machine, I'll replace it with that and I think this will be pretty merge-able!