1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="synctex-compile" xml:lang="en_GB">
5
<link type="guide" xref="index#synctex" group="third"/>
6
<desc>How to compile your TeX document with SyncTex</desc>
8
<revision pkgversion="2.32" version="0.1" date="2010-09-28" status="draft"/>
10
<name>Tiffany Antopolski</name>
11
<email>tiffany@antopolski.com</email>
14
<p>Creative Commons Share Alike 3.0</p>
18
<title>Compile TeX with SyncTex</title>
20
Adding the line <em>\synctex=1</em> in the preamble of your TeX file will trigger synchronization with SyncTeX.
23
\documentclass{article}
31
Alternatively, you can run the pdflatex command with the <em>-synctex=1</em> option:
33
<screen>pdflatex -synctex=1 yourFile.tex</screen>