SyncTeX を有効にする TeX のコンパイル

TeX ファイルの前文に \synctex=1 という行を追加することで SyncTeX で同期をとるきっかけとなります。

\documentclass{article}
\synctex=1
\usepackage{fullpage}
\begin{document}
...
\end{document}

代わりに、pdflatex コマンドを -synctex=1 というオプション付きで実行できます。

pdflatex -synctex=1 yourFile.tex