Wikia

Vim Tips Wiki

Backward search for LaTeX documents

Talk0
1,613pages on
this wiki
Revision as of 17:03, September 23, 2012 by Marcin Szamotulski (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 1468 Printable Monobook Previous Next

created 2007 · complexity intermediate · version 


When editing LaTeX with Vim and previewing the pdf with a pdf viewer, you would like to be able to click on a word in the pdf viewer and have vim automatically jump to the location in the source file you clicked on. This is called backwards search, since clicking in the pdf viewer updates the vim location. To update the pdf viewer to a page containing the current location in Vim, see Open pdf to the current location in a LaTeX file.

LinuxEdit

 TO DO 
There are some instructions here, but they should be copied into this page.

WindowsEdit

 TO DO 
Find how to do this on Windows.

MacEdit

Mac OS has a package called pdfsync and a supporting viewer (I strongly recommend PDFView) can be configured to run a custom script when the user command-clicks inside the document.

To enable backwards search, install and configure the gvim-pdfsync plugin.

PluginsEdit

  • Automatic LaTeX plugin has forward and backward search which works for quite a few viewers: xpdf (v3.03), evince, okular, xdvi, open (on MacOs). Unfortunatelly, the plugin doesn't officially support Windows.
  • LaTeX Suite also support forward and reverse searching.

Around Wikia's network

Random Wiki