backward sync using okular + sublime text 2 + latextool

I recently discover Sublime text 2 (ST2), and it’s definitely  my favorite IDE for  python and latex (at least)! Using Latextool plugin of ST2 allows to compile your latex code with pdflatex and obviously see the result into the default ubuntu pdf viewer tool : Evince. The bad thing here, is that the backward sync (from the pdf, find the corresponding part of your code) doesn’t work for me.

So I’ve decided to move to Okular to get that synchronization working again. And it work under the condition to have the correct okular configuration which is :

Settings => Configure Okular => Editor

Chose Custom text editor and add the following line :

<path_to_your_sublime_text2_app>/sublime_text %f:%l

And here we go, you have the backward synchro.

However , it remains some other minor issues to solve :

  •  launch okular by default after pressing CTRL+B in Sublime text
  • activate the forward synchro.
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s