Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In Oneiric gedit includes support for SyncTeX and Evince has supported it since 2.32 (Oneiric includes Evince 3.2.0). How do I use SyncTeX with gedit and Evince? I have compiled with the -synctex=1 option but nothing happens when I try to backward/inverse search by Ctrl+click on the document in Evince.

share|improve this question
    
Maybe benwhale.com/blog/2011/06/26/synctex-gedit-evince is of interest. –  N.N. Oct 17 '11 at 11:57

1 Answer 1

up vote 9 down vote accepted

Found a solution today, and here is how it works:

  1. Download gedit-plugins:

    sudo apt-get install gedit-plugins 
    
  2. Go to Gedit preferences and enable the plugin. Restart Gedit.

  3. Open a .tex file and open its .pdf output in Evince. The two files must be in the same folder.

  4. Hold Ctrl and left click at any desired location in Evince. This will highlight the current row in Gedit.

Hope that helps!


Things I couldn't get working yet:

  • Ctrl + left click in Gedit does focus the window of Evince, but does not highlight anything.

Things I haven't tested yet:

  • Using Synctex with a document consisting of multiple files.
share|improve this answer
    
Forward search works for me neither. –  N.N. Oct 20 '11 at 19:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.