<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="synctex-editors" lang="zh-CN">

  <info>
    <link type="guide" xref="index#synctex" group="fourth"/>
    <desc>Which editor can you use to edit your TEX file?</desc>
    <revision pkgversion="1.25" version="0.1" date="2021-03-13" status="final"/>
    <credit type="author">
      <name>Tiffany Antopolski</name>
      <email>tiffany@antopolski.com</email>
    </credit>
    <license>
      <p>知识共享 署名-相同方式共享 3.0</p>
    </license>

  <credit type="translator copyright"><name>Christopher Meng</name><email>i@cicku.me</email><years>2012-2013</years></credit><credit type="translator copyright"><name>ravix</name><email>dr.neemous@gmail.com</email><years>2013</years></credit><credit type="translator copyright"><name>Dianjin Wang</name><email>1132321739qq@gmail.com</email><years>2012</years></credit><credit type="translator copyright"><name>Cravix</name><email>dr.neemous@gmail.com</email><years>2013</years></credit><credit type="translator copyright"><name>nyanyh</name><email>rebuilty@gmail.com</email><years>2013</years></credit><credit type="translator copyright"><name>liulitchi</name><email>xingzuo88@qq.com</email><years>2013</years></credit><credit type="translator copyright"><name>玉堂白鹤</name><email>yjwork@qq.com</email><years>2015</years></credit><credit type="translator copyright"><name>Mingye Wang</name><email>arthur200126@gmail.com</email><years>2015-2016</years></credit><credit type="translator copyright"><name>白铭骢</name><email>jeffbai@aosc.xyz</email><years>2015-2016</years></credit><credit type="translator copyright"><name>刘子兴</name><email>liushuyu@aosc.xyz</email><years>2015-2016</years></credit></info>

<title>Supported editors</title>

<section id="pluma"><title><app>pluma</app></title>
<p>
<link xref="synctex-search#forward-search">Forward Search</link> (from <app>pluma</app> to Atril) and <link xref="synctex-search#backward-search">Backward search</link> (from Atril to <app>pluma</app>) are both supported.
</p>
</section>

<section id="vim-latex"><title>Vim-latex</title>
<p>
The <app>pluma</app> plugin contains a python script (<file>atril_dbus.py</file>) that can be used to get SyncTeX working with Vim.
In order to use vim-latex together with Atril you need to follow the next steps:
</p>
<steps>
 <item>
  <p>
     Copy the <file>atril_dbus.py</file> to some directory in your path and give it +x permissions.

 </p>
 </item>
 <item>
  <p>
     Modify your <file>~/.vimrc</file> file and add the following lines.
    </p>
<code>
let g:Tex_ViewRule_pdf = 'atril_dbus.py'
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_CompileRule_pdf = 'pdflatex --synctex=1 -interaction=nonstopmode $*'
</code>

  </item>
  <item>
   <p>
     Now you can use Forward search from vim-latex by typing \ls. Backward search is not yet supported.
   </p>
  </item>
</steps>
</section>
</page>
