|
Syncing with PDF files |
|
|
|
Written by Tino
|
|
Saturday, 25 July 2009 18:37 |
|
The open-source PDF viewer Sumatra allows for a synchronisation between the LaTeX source code and the PDF output - just like it is known from YAP for DVI output. This is made possible by a new technology called synctex, which is already supported by latest mikTeX versions. In other words, you can now setup TeXnicCenter to jump between latex source and PDF output. This is how it works:
Check out this post on LaTeX community and follow the pointers. In a nutshell, you just have to make some changes to the PDF output profile in TeXnicCenter.
Here are some small hints that may help you if you face some trouble following the descriptions:
- The latest version of Sumatra works. You do not need to download a special version, just use the latest from the official homepage.
- Regarding the parameter to LaTeX: it has to be a minus-sign before the 1, i.e., "--synctex=-1". Otherwise, Sumatra will not be able to read the synctex file.
- You have to write the full file name in your \input statements, i.e., \input{filename.tex} and not \input{filename}. Otherwise, the inverse search will not work correctly.
- If Sumatra is already open, it will not come automatically to the front when you press F5. If someone knows a solution for this, I'll be happy to hear about it.
- If Sumatra is already open, it will automatically detect changes to the file and reload after the LaTeX run. This is very handy if you have two monitors. You don't have to press F5 anymore.
Benjamin and Martin wrote a very nice How-To. You find it in the tutorials section.
|
|
Related Sites
powered by

official support by

|