What exactly is SyncTeX?
SyncTeX is a utility written by Jérôme Laurens which enables synchronization between your source document and the PDF output. If your editor/viewer supports it, then you can click in your source and jump to the equivalent place in the PDF or click in the PDF and it will jump to the appropriate place in your source document.
In TeXShop, for example, Command-click does the navigation. Other editor/viewer pairs may implement the exact commands slightly differently.
The files that it creates store all of the synchronization data that make this magic possible. Gzipped versions of these files are created if you pass the --synctex=1
option to e.g. the pdflatex
command (and other engines similarly); non-zipped versions can be created with --synctex=-1
, although for a large document these files can be quite large, so the zipped ones are generally to be preferred. See
- Why does LaTeX gzip the synctex file?
Usually this is part of the default setting for the compilation command within most TeX-aware editors.
Regarding synctex and plain tex -- in TeX Live, my goal is for "tex" to be TeX, i.e., to let DEK still invoke "tex" and get his program.
To get an extended non-ini engine, plain TeX macros, DVI output by default, "etex" is available. This is actually pdftex with the DVI default, not the pure e-TeX, because some of the non-PDF features in pdftex have come to be commonly used and useful. Breitenlohner said ok to that ...