支持的编辑器

gedit

Forward Search (from gedit to Evince) and Backward search (from Evince to gedit) are both supported.

Vim-latex

The gedit plugin contains a python script (evince_dbus.py) that can be used to get SyncTeX working with Vim. In order to use vim-latex together with Evince you need to follow the next steps:

  1. evince_dbus.py 复制到路径中的某个目录,并授予其 +x 权限。

  2. 编辑您的 ~/.vimrc 文件并加入以下几行。

    let g:Tex_ViewRule_pdf = 'evince_dbus.py'
    let g:Tex_DefaultTargetFormat = 'pdf'
    let g:Tex_CompileRule_pdf = 'pdflatex --synctex=1 -interaction=nonstopmode $*'
  3. 现在您可以在 vim-latex 中通过键入 \ls 来使用向前搜索。向后搜索目前还没有被支持。