[latexila] SyncTeX: enable synctex in the build tools
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] SyncTeX: enable synctex in the build tools
- Date: Sun, 9 Sep 2012 22:15:27 +0000 (UTC)
commit 92656d41c42433e5c101829c3a22dcab633e31fb
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Sun Sep 9 18:26:22 2012 +0200
SyncTeX: enable synctex in the build tools
data/build_tools/build_tools.xml | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/data/build_tools/build_tools.xml b/data/build_tools/build_tools.xml
index 21702df..ee7d26d 100644
--- a/data/build_tools/build_tools.xml
+++ b/data/build_tools/build_tools.xml
@@ -3,38 +3,48 @@
<tool id="0" show="true" extensions=".tex" icon="compile_pdf">
<label its:translate="no">LaTeX â PDF (Latexmk)</label>
- <job postProcessor="latexmk">latexmk -pdf $filename</job>
+ <job postProcessor="latexmk">
+ latexmk -pdf -e '$pdflatex=q/pdflatex %O -synctex=1 %S/' $filename
+ </job>
<open>$shortname.pdf</open>
</tool>
<tool id="1" show="true" extensions=".tex" icon="compile_dvi">
<label its:translate="no">LaTeX â DVI â PDF (Latexmk)</label>
- <job postProcessor="latexmk">latexmk -pdfdvi $filename</job>
+ <job postProcessor="latexmk">
+ latexmk -pdfdvi -e '$latex=q/latex %O -synctex=1 %S/' $filename
+ </job>
<open>$shortname.pdf</open>
</tool>
<tool id="2" show="true" extensions=".tex" icon="compile_ps">
<label its:translate="no">LaTeX â DVI â PS â PDF (Latexmk)</label>
- <job postProcessor="latexmk">latexmk -pdfps $filename</job>
+ <job postProcessor="latexmk">
+ latexmk -pdfps -e '$latex=q/latex %O -synctex=1 %S/' $filename
+ </job>
<open>$shortname.pdf</open>
</tool>
<tool id="3" show="false" extensions=".tex" icon="compile_dvi">
<label its:translate="no">LaTeX â DVI (Latexmk)</label>
- <job postProcessor="latexmk">latexmk $filename</job>
+ <job postProcessor="latexmk">
+ latexmk -e '$latex=q/latex %O -synctex=1 %S/' $filename
+ </job>
<open>$shortname.dvi</open>
</tool>
<tool id="4" show="false" extensions=".tex" icon="compile_ps">
<label its:translate="no">LaTeX â DVI â PS (Latexmk)</label>
- <job postProcessor="latexmk">latexmk -ps $filename</job>
+ <job postProcessor="latexmk">
+ latexmk -ps -e '$latex=q/latex %O -synctex=1 %S/' $filename
+ </job>
<open>$shortname.ps</open>
</tool>
<tool id="5" show="false" extensions=".tex" icon="compile_pdf">
<label its:translate="no">XeTeX â PDF (Latexmk)</label>
<job postProcessor="latexmk">
- latexmk -pdf -e '$pdflatex=q/xelatex %O %S/' $filename
+ latexmk -pdf -e '$pdflatex=q/xelatex %O -synctex=1 %S/' $filename
</job>
<open>$shortname.pdf</open>
</tool>
@@ -90,13 +100,13 @@
<tool id="12" show="false" extensions=".tex" icon="compile_pdf">
<label its:translate="no">LaTeX â PDF (pdflatex)</label>
<description>Create a PDF file from LaTeX sources with the "pdflatex" command</description>
- <job postProcessor="latex">pdflatex -interaction=nonstopmode $filename</job>
+ <job postProcessor="latex">pdflatex -interaction=nonstopmode -synctex=1 $filename</job>
</tool>
<tool id="13" show="false" extensions=".tex" icon="compile_dvi">
<label its:translate="no">LaTeX â DVI (latex)</label>
<description>Create a DVI file from LaTeX sources with the "latex" command</description>
- <job postProcessor="latex">latex -interaction=nonstopmode $filename</job>
+ <job postProcessor="latex">latex -interaction=nonstopmode -synctex=1 $filename</job>
</tool>
<!-- BibTeX, MakeIndex -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]