SyncTeX with gedit and Evince
Solution 1:
Found a solution today, and here is how it works:
-
Download
gedit-plugins
:sudo apt-get install gedit-plugins
Go to Gedit preferences and enable the plugin. Restart Gedit.
Open a
.tex
file and open its.pdf
output in Evince. The two files must be in the same folder.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.
Solution 2:
Remember, it works in the direct and reverse form if you write \synctex=1 in the second line of tex file!!