17

When viewing a pdf of a long LaTeX document, it can sometimes be difficult to find where a certain equation or a line in the pdf is located in the source code, as there are no page numbers in the source code (Unlike visual word processors). I wonder if there is a simple way to find such a location.

N.N.
  • 36,163
PineApple
  • 171

2 Answers2

16

TexWorks uses the -synctex option which allows you to right click and select view source which takes you back to the source of that line, or right click in the LaTeX source and jump the appropriate spot in the PDF.

Most IDEs will also provide this sort of functionality, so if you use an good IDE you can cross reference between the PDF and the LaTeX source. Am sure you could just add this to the command line if you are compiling your documents that way.

See LaTeX Editors/IDEs for a list of these. Which editor and environment do you use?

Peter Grill
  • 223,288
5

Under MS Windows, SumatraPDF is a viewer which works fine with SyncTeX (while Acrobat doesn't support this), usable in various editors like TeXnicCenter or Emacs.