[Tex/LaTex] Emacs + SyncTex + Evince

emacsevince

I am trying to setup forward search and inverse search between Emacs 24.3.1 and Auctex under Ubuntu 14.04.

Forward search is working fine by enable TeX-source-correlate-mode in Emacs but while performing this search, the focus also moves to PDF. I would like to keep the focus on .tex file during forward search. Is there any hack or command available to achieve this.

I would also like to setup inverse-search. I have tried Ctrl + left click but it doesn't work.

Best Answer

You need to (i) tell Emacs what is your document viewer, and then (ii) configure the document viewer to collaborate with Emacs to use the inverse search, that is, Ctrl+left click.

I don't think that Evince offers configuration option directly. I prefer more to work with Okular than Evince. The following post describes how to activate the forwards and reverse search on Auctex+Okular. I hope that you find it helpful: How to configure Emacs and AUCTeX to perform Forward and Inverse Search