<revision pkgversion="2.33.0" version="0.1" date="2010-10-02" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.32.3" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.32.3" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.33.0" version="0.1" date="2010-10-02" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.32.3" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.32.3" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.33.0" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<revision pkgversion="2.30.3" version="0.1" date="2010-09-28" status="review"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<title>Tips and Tricks</title>
</section>
-<section id="synctex" style="2column" groups="first second third fourth">
+<section id="synctex" style="2column" groups="first second third fourth fifth sixth">
<title>SyncTex</title>
</section>
</page>
+++ /dev/null
-<page xmlns="http://projectmallard.org/1.0/"
- type="topic" style="task"
- id="synctex-and-evince">
-
- <info>
- <link type="guide" xref="index#synctex" group="fourth"/>
- <desc>Flip between <app>Evince</app> and editor.</desc>
-
- <revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
- <credit type="author">
- <name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
- </credit>
- <license>
- <p>Creative Commons Share Alike 3.0</p>
- </license>
-
- </info>
-
-<title>Using SyncTex to Search</title>
-
-<section id="forward search">
- <title>Forward Search: From TEX to PDF</title>
- <p>
- </p>
-</section>
-
-<section id="inverse search">
- <title>Inverse Search: From PDF to TEX</title>
- <p>
- </p>
-</section>
-
-</page>
--- /dev/null
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="task"
+ id="synctex-beamer">
+
+ <info>
+ <link type="guide" xref="index#synctex" group="sixth"/>
+ <desc>Using SyncTex with the LaTeX Beamer class.</desc>
+
+ <revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
+ <credit type="author">
+ <name>Tiffany Antopolski</name>
+ <email>tiffany@antopolski.com</email>
+ </credit>
+ <license>
+ <p>Creative Commons Share Alike 3.0</p>
+ </license>
+ </info>
+
+<title>Beamer with SyncTex</title>
+<p>
+
+</p>
+
+
+</page>
--- /dev/null
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="task"
+ id="synctex-compile">
+
+ <info>
+ <link type="guide" xref="index#synctex" group="third"/>
+ <desc>How to compile your TeX document with SyncTex</desc>
+
+ <revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
+ <credit type="author">
+ <name>Tiffany Antopolski</name>
+ <email>tiffany@antopolski.com</email>
+ </credit>
+ <license>
+ <p>Creative Commons Share Alike 3.0</p>
+ </license>
+ </info>
+
+<title>Compile TeX with SyncTex</title>
+<p>
+Adding the line <em>\synctex=1</em> in the preamble of your TeX file will trigger synchronization with SyncTeX.
+</p>
+<code>
+\documentclass{article}
+\synctex=1
+\usepackage{fullpage}
+\begin{document}
+...
+\end{document}
+</code>
+<p>
+ Alternatively, you can run the pdflatex command with the <em>-synctex=1</em> option:
+</p>
+<screen>pdflatex -synctex=1 yourFile.tex</screen>
+</page>
id="synctex-editors">
<info>
- <link type="guide" xref="index#synctex" group="third"/>
+ <link type="guide" xref="index#synctex" group="fourth"/>
<desc>Which editor can you use to edit your TEX file?</desc>
<revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
</info>
<title>Supported Editors</title>
+
+<section><title><app>Gedit</app></title>
<p>
+<link xref="synctex-search#forward-search">Forward Search</link> (from <app>Gedit</app> to <app>Evince</app>) and <link xref="synctex-search#backward-search">Backward search</link> (from <app>Evince</app> to <app>Gedit</app>) are both supported.
+</p>
+</section>
+<section><title>Vim-latex</title>
+<p>
+The <app>Gedit</app> 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 <app>Evince</app> you need to follow the next steps:
</p>
+<steps>
+ <item>
+ <p>
+ Copy the evince_dbus.py to some directory in your path and give it +x permissions.
+ </p>
+ </item>
+ <item>
+ <p>
+ Modify your ~/.vimrc file and add the following lines.
+ </p>
+<code>
+let g:Tex_ViewRule_pdf = 'evince_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>
--- /dev/null
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="task"
+ id="synctex-search">
+
+ <info>
+ <link type="guide" xref="index#synctex" group="fifth"/>
+ <desc>Flip between <app>Evince</app> and <app>Gedit</app>.</desc>
+
+ <revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
+ <credit type="author">
+ <name>Tiffany Antopolski</name>
+ <email>tiffany@antopolski.com</email>
+ </credit>
+ <license>
+ <p>Creative Commons Share Alike 3.0</p>
+ </license>
+
+ </info>
+
+<title>Search with SyncTex</title>
+<p>
+ After you <link xref="synctex-compile">compile your TeX file with SyncTex</link>, you will be able to search. SyncTex even supports forward and backward search from an included file.
+</p>
+
+<section id="forward-search">
+ <title>Forward Search: From TeX to PDF (<app>Gedit</app> to <app>Evince</app>)</title>
+ <p>
+ Forward search allows you to click on a specific section of TeX source code, and jump to the associated position in the PDF. To perform forward search:
+ </p>
+<steps>
+<item>
+<p>
+ Click on a line in the TeX file.
+</p>
+</item>
+<item>
+<p>
+ In <app>Gedit</app>, click <guiseq><gui>Tools</gui> <gui>Forward Search</gui></guiseq>. The corresponding line in the PDF will be outlined in red.
+</p>
+<p>
+Alternatively, you can click <keyseq><key>Ctrl</key><key>Alt</key><key>F</key></keyseq>. The corresponding line in the PDF will be outlined in red.
+</p>
+</item>
+</steps>
+<note>
+<p>
+ If the corresponding PDF file is not open, performing a forward search will open the PDF in <app>Evince</app>.
+</p>
+</note>
+<p>
+ If you add a complex project with several TeX files you can put
+</p>
+<code>% mainfile: mainfile.tex</code>
+<p>
+either in the first or last three lines of each included TeX file, and forward search will work. Backward search should always work, even if you don't add the modeline.
+</p>
+
+</section>
+
+<section id="backward-search">
+ <title>Backward Search: From PDF to TeX (<app>Evince</app> to <app>Gedit</app>)</title>
+ <p>
+ Backward search allows you to click on a specific line in the PDF file, and jump to the associated line in the TeX source code.
+</p>
+<p>
+You can perform a backward search by pressing <key>Ctrl</key>+ Left Click in <app>Evince</app>. The corresponding line in the TeX source code will be hightlighted.
+ </p>
+</section>
+
+</page>
<revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
<title>Set-up SyncTex</title>
<p>
-
+The following packages need to be installed in order to add support for SyncTex:
</p>
+<list>
+ <item>
+ <p>
+ texlive-extra-utils
+ </p>
+ </item>
+ <item>
+ <p>
+ gedit-plugins
+ </p>
+ </item>
+</list>
+<p>
+ In <app>Gedit</app>, enable the SyncTex Plugin:
+</p>
+<steps>
+ <item>
+ <p>
+ Click <guiseq><gui>Edit</gui><gui>Preferences</gui><gui>Plugins</gui></guiseq> tab.
+ </p>
+ </item>
+ <item>
+ <p>
+ Check <gui>SyncTex</gui>.
+ </p>
+ </item>
+</steps>
</page>
<info>
<link type="guide" xref="index#synctex" group="first"/>
- <desc>Introduction to SyncTex.</desc>
+ <desc>SyncTeX support is available in <app>Evince</app>.</desc>
<revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
<credit type="author">
<name>Tiffany Antopolski</name>
- <email>tiffany.antopolski@com</email>
+ <email>tiffany@antopolski.com</email>
</credit>
<license>
<p>Creative Commons Share Alike 3.0</p>
</license>
-
</info>
<title>What is SyncTex?</title>
<p>
-
+ SyncTeX is a method that enables synchronization between a TeX source file and the resulting PDF output.
</p>
</page>
<p>
Unfortunately, there is no real way of fixing this problem. Copying
- less text at a time, or copying the text into a text editor may minimise the problem. You can locate a text editor by clicking <guiseq><gui>Applications</gui><gui>Accessories</gui><gui>gedit Text Editor</gui></guiseq>.
+ less text at a time, or copying the text into a text editor may minimise the problem. You can locate a text editor by clicking <guiseq><gui>Applications</gui><gui>Accessories</gui><gui>Text Editor</gui></guiseq>.
</p>
</page>