1 <page xmlns="http://projectmallard.org/1.0/"
2 type="topic" style="task"
6 <link type="guide" xref="index#synctex" group="third"/>
7 <desc>How to compile your TeX document with SyncTex</desc>
9 <revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
10 <credit type="author">
11 <name>Tiffany Antopolski</name>
12 <email>tiffany@antopolski.com</email>
15 <p>Creative Commons Share Alike 3.0</p>
19 <title>Compile TeX with SyncTex</title>
21 Adding the line <em>\synctex=1</em> in the preamble of your TeX file will trigger synchronization with SyncTeX.
24 \documentclass{article}
32 Alternatively, you can run the pdflatex command with the <em>-synctex=1</em> option:
34 <screen>pdflatex -synctex=1 yourFile.tex</screen>