From: Tiffany Antopolski <antopolski@src.gnome.org>
Date: Thu, 4 Nov 2010 22:18:43 +0000 (-0400)
Subject: Synctex: adding support and searching.
X-Git-Tag: EVINCE_2_91_4~26^2~26
X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=aadb0ffc70b1ab9d9d192caee891759df9e33403;p=evince.git

Synctex: adding support and searching.
---

diff --git a/help/C/annotation-properties.page b/help/C/annotation-properties.page
index 9ea3730a..4a66973f 100644
--- a/help/C/annotation-properties.page
+++ b/help/C/annotation-properties.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/annotations-delete.page b/help/C/annotations-delete.page
index 63eef298..f5e2e4dd 100644
--- a/help/C/annotations-delete.page
+++ b/help/C/annotations-delete.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/annotations-disabled.page b/help/C/annotations-disabled.page
index 2f393e1e..4496dae6 100644
--- a/help/C/annotations-disabled.page
+++ b/help/C/annotations-disabled.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/annotations-navigate.page b/help/C/annotations-navigate.page
index d16a23f4..5d233e9a 100644
--- a/help/C/annotations-navigate.page
+++ b/help/C/annotations-navigate.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/annotations-save.page b/help/C/annotations-save.page
index 48a00dfc..410ea705 100644
--- a/help/C/annotations-save.page
+++ b/help/C/annotations-save.page
@@ -8,7 +8,7 @@
     <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>
diff --git a/help/C/annotations-view.page b/help/C/annotations-view.page
index dcc6c71e..0f6fb55b 100644
--- a/help/C/annotations-view.page
+++ b/help/C/annotations-view.page
@@ -8,7 +8,7 @@
     <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>
diff --git a/help/C/annotations.page b/help/C/annotations.page
index 33caacc3..0824558e 100644
--- a/help/C/annotations.page
+++ b/help/C/annotations.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/bookmarks.page b/help/C/bookmarks.page
index 0a14b957..0d893ac8 100644
--- a/help/C/bookmarks.page
+++ b/help/C/bookmarks.page
@@ -9,7 +9,7 @@
     <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>
diff --git a/help/C/index.page b/help/C/index.page
index e14b8191..e299207c 100644
--- a/help/C/index.page
+++ b/help/C/index.page
@@ -51,7 +51,7 @@ Evince Document Viewer</title>
     <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>
diff --git a/help/C/synctex-and-evince.page b/help/C/synctex-and-evince.page
deleted file mode 100644
index f06ff10d..00000000
--- a/help/C/synctex-and-evince.page
+++ /dev/null
@@ -1,34 +0,0 @@
-<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>
diff --git a/help/C/synctex-beamer.page b/help/C/synctex-beamer.page
new file mode 100644
index 00000000..a5283cf0
--- /dev/null
+++ b/help/C/synctex-beamer.page
@@ -0,0 +1,25 @@
+<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>
diff --git a/help/C/synctex-compile.page b/help/C/synctex-compile.page
new file mode 100644
index 00000000..c2322a7e
--- /dev/null
+++ b/help/C/synctex-compile.page
@@ -0,0 +1,35 @@
+<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>
diff --git a/help/C/synctex-editors.page b/help/C/synctex-editors.page
index 5aec25eb..404ed5f3 100644
--- a/help/C/synctex-editors.page
+++ b/help/C/synctex-editors.page
@@ -3,13 +3,13 @@
       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>
@@ -18,8 +18,41 @@
   </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>
diff --git a/help/C/synctex-search.page b/help/C/synctex-search.page
new file mode 100644
index 00000000..67d51bad
--- /dev/null
+++ b/help/C/synctex-search.page
@@ -0,0 +1,70 @@
+<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>
diff --git a/help/C/synctex-support.page b/help/C/synctex-support.page
index e711a85b..54f2798e 100644
--- a/help/C/synctex-support.page
+++ b/help/C/synctex-support.page
@@ -9,7 +9,7 @@
     <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>
@@ -19,7 +19,34 @@
 
 <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>
diff --git a/help/C/synctex.page b/help/C/synctex.page
index f19c6006..d80fc6d7 100644
--- a/help/C/synctex.page
+++ b/help/C/synctex.page
@@ -4,22 +4,21 @@
 
   <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>
diff --git a/help/C/textselection.page b/help/C/textselection.page
index 9238abb2..27f415fa 100644
--- a/help/C/textselection.page
+++ b/help/C/textselection.page
@@ -34,7 +34,7 @@ application, the formatting may alter.  It may also contain different characters
 
  <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>