Normally I write my LaTeX with Emacs/AUCTeX viewing in xdvi, which has the very nice "source specials" feature that I can hit a key command in Emacs to jump to the current location in the output dvi file in xdvi, and likewise I can click on a location in xdvi and have Emacs jump to that location in the source file. But sometimes, notably when using TikZ, I need to compile with pdflatex. Is there any source-specials-like feature for PDF files which works with AUCTeX? I'd be willing to switch to any PDF viewer that will run in Linux.
Recent versions of AUCTeX's source specials handles synctex. So make sure you have the latest release 11.86.
You also need a recent version of pdftex that supports synctex. The one in TeX Live 2009 is fine.
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
For backward search, you need to configure your pdf viewer to support emacs. Usually the pdf viewer would have an entry in the FAQ or Wiki teaching how to set this up and usually pretty simple.
For forward search, I am not sure if 'C-c C-v' does this automatically.
But backward search is usually more important.
A solution for the reverse search (from PDF to the source code): I currently use pdfsync; here's an excerpt from the readme file:
pdfsync.sty allows one to synchronize between LaTeX source and pdf output. When used with a text editor and a PDF viewer that both support pdfsync, you can navigate from the source to the output and vice versa. This is some kind of srcltx ported from dvi to pdf.
All you need to do is to include it in your preamble with
If you use the hyperref package or another similar package that manipulates the references, take care of load pdfsync as the last one.
Caveat: it is a little buggy (but, to me, it works quite well)
You should not use pdfsync on final documents because it can change the layout rather significantly
The accuracy of pdf synchronization depends on the application used for that purpose.
In case of conflicts or malfunctioning, read the documentatation.