Open ghost opened 7 years ago
sublime.active_window().run_command("view_pdf")
or view.window().run_command("view_pdf")
. This also works in a multi file project, if correctly configured.
However you can also press C-l, v
or C-l, j
to open the pdf and it is automatically shown after the build. Therefore I don't really see the usecase of that.I could see a use for including the "open the corresponding PDF when the TeX file is opened" part of things, but, as @r-stein said, the other parts are probably not things we'd be looking to add.
what I'm trying to achieve: when opening a latex file, automatically open the corresponding pdf file. optionally making sublime and pdf viewer side-by-side, and close the viewer when quitting sublime.
how: currently, I'm using two subscripts,
newly_tex.py
andtexpdf.py
to achieve that on a mac:subprocess.Popen(("open","/path/to/resized.app"))
, whereresized.app
is from:the size/position is for
1440x900
resolution and a small dock size. adjust accordingly.my code may not be robust, and there may be much better way to do that. are you interested in bringing that function into latextools? Thanks!