randy3k / LaTeXBox

A lightweight but deprecated LaTeX Plugin for Sublime Text 3
44 stars 8 forks source link

enhancement: support okular #6

Closed drevicko closed 10 years ago

drevicko commented 10 years ago

I'd be inclined to use LaTeXSq if it supported okular (on linux platforms). Okular has CLI support for synctex, so hopefully it's pretty easy to implement.

I find evince rather annoying, and usually use okular to view pdf's, not the least because it reloads a pdf when it changes, and doesn't have to open a new window if you open an already open pdf again (both these are handy for latex work).

Thanks for making a handy plugin (:

randy3k commented 10 years ago

This is definitely a nice feature request. I don't think I will have time to implement it in a near future.

drevicko commented 10 years ago

we´ll see.. perhaps I´ll have time?? any tips on where to find the "launch viewer" functionality?

randy3k commented 10 years ago

actually i have no idea how Okular works.... for the LatexSq plugin, you may want to modify jump.py

drevicko commented 10 years ago

Okular does synctex via command line arguments. If you tell it to open something already open, it switches to the already open window (and jumps ala synctex if asked to). I've played with this before: http://sourceforge.net/p/texlipse/discussion/451977/thread/275e9d1a/#b9c4 I'll have a peek at jump.py