.Dd Apr 22, 2017 .Dt SYNCTEX 5 .Os "Independant" .\" .\" .Sh NAME .Nm synctex .Nd Synchronize TeXnology help file .\" .\" .Sh DESCRIPTION Synchronize TeXnology help file .Pq synctexs are text files that help input/output synchronization during document preparation with the TeX typesetting system. .Sh BASICS The structure of this file should not be considered public, in the sense that no one should need to parse its contents, except the synctex command line utility, and the synctex_parser library which are both publicly available. Unless it is absolutely not avoidable, access to the contents of the synctex file should only be made through requests made to the synctex command line utility. .\" .Sh STRUCTURE The element structure of a synctex file is a list of text line records as follows. .Sq \&* , .Sq \&+ , and .Sq \&? have their usual EBNF meanings: .Sq \&* means zero or more, .Sq \&+ means one or more, and .Sq \&? means zero or one .Pq i.e., optional . .Pp .Bl -item -offset indent .\" .It .Li ::= .Pq The whole contents in 4 sections .Bl -item -offset indent .It .Li .It .Li .It .Li .It .Li .El .\" .El .Pp Each section starts with the first occurrence of a sectioning line, and ends with the next section, if any. In the following definitions, we do not mention the section ending condition. .Sh The preamble .Bl -item -offset indent .\" .It .Li ::= .Bl -item -offset indent .It .Qq SyncTeX Version: .It .Li * .It .Qq Magnification: .It .Qq Unit: .It .Qq X Offset: .It .Qq Y Offset: .El .It .Li ::= .Qq Input: .Qq \&: .\" .El .Sh The content .Bl -item -offset indent .It .Li ::= .Bl -item -offset indent .It .Li .It .Qq Content: .It .Li (|)* .It .Li .It .Li (|)* .It .Li .It .Li (|)* .It .Li ... .It .Li .It .Li (|)* .El .It .Li ::= .Qq \&! .Pp .El .Pp .Bl -item -offset indent .It .Li ::= .Bl -item -offset indent .It .Li .It .Qq \&{ .It .Li | .It .Li .It .Qq \&} .El .It .Li
::= .Bl -item -offset indent .It .Li .It .Qq \&< .It .Li | .It .Li .It .Qq \&> .El .It .Li ::= .El .Pp Forms are available with pdfTeX. All the numbers are integers encoded using the decimal representation with "C" locale. The describes what is inside a box. It is either a vertical or horizontal box, with some records related to glue, kern or math nodes. .Bl -item -offset indent .It .Li ::= .Bl -item -offset indent .It .Li | .It .Li || .It .Li ||| .It .Li ||
|
.El .It .Li ::= .Bl -item -offset indent .It .Qq \&[ .Qq \&: .Qq \&: .It .Li * .It .Qq \&] .El .It .Li ::= .Bl -item -offset indent .It .Li \&( .Qq \&: .Qq \&: .It .Li * .It .Qq \&) .El .El .Pp Void boxes: .Bl -item -offset indent .It .Li ::= .Qq v .Qq \&: .Qq \&: .It .Li ::= .Qq h .Qq \&: .Qq \&: .It .Li ::= .Qq \&, ( .Qq \&, )? .It .Li ::= | .It .Li ::= .Qq \&, .It .Li ::= .Qq \&,= .It .Li ::= .It .Li ::= .It .Li ::= .Qq \&, .Qq \&, .It .Li ::= .It .Li ::= .It .Li ::= .El .Pp The forthcoming records are basic one liners. .Bl -item -offset indent .It .Li ::= .Qq x .Qq \&: .It .Li ::= .Qq k .Qq \&: .Qq \&: .It .Li ::= .Qq g .Qq \&: .It .Li ::= .Qq $ .Qq \&: .It .Li
::= .Qq f
.Qq \&: .El .Pp .\" .Sx underline, .Dq double quotes, .Pq enclosed in parenthesis .Sh The postamble The postamble closes the file If there is no postamble, it means that the typesetting process did not end correctly. .Bl -item -offset indent .\" .It .Li ::= .Bl -item -offset indent .It .Li .It .Qq Count: .El .El .Sh The post scriptum The post scriptum contains material possibly added by 3rd parties. It allows to append some transformation (shift and magnify). Typically, one applies a dvi to pdf filter with offset options and magnification, then he appends the same options to the synctex file, for example .Bd -literal -offset indent synctex update -o foo.pdf -m 0.486 -x 9472573sp -y 13.3dd source.dvi .Ed .Bl -item -offset indent .\" .It .Li ::= .\" .Bl -item -offset indent .It .Li .It .Qq Post Scriptum: .It .Qq Magnification: .Pq Set additional magnification .It .Qq X Offset: .Pq Set horizontal offset .It .Qq Y Offset: .Pq Set vertical offset .El .El This second information will override the offset and magnification previously available in the preamble section. All the numbers are encoded using the decimal representation with "C" locale. .Sh USAGE .Pp The is used to compute the visible size of hbox's. The byte offset is an implicit anchor to navigate the synctex file from sheet to sheet. The second coordinate of a compressed point has been replaced by a .Qq = character which means that it is the second coordinate of the last full point available above. .Sh SEE ALSO .\" List links in ascending order by section, alphabetically within a section. .\" Please do not reference files that do not exist without filing a bug report .Xr synctex 1 .Xr tex 1 .Sh AUTHOR The Synchronize TeXnology is essentially due to Jerome Laurens, with useful suggestions by some well known actors of the TeX world. .\" .Sh BUGS \" Document known, unremedied bugs .Sh HISTORY \" Document history if command behaves in a unique manner This document has been updated on Sat Apr 22 09:57:20 UTC 2017 to include \\pdfxform support. .\" nroff -man synctex.5 | less .\"groff -man -Tascii synctex.5 | less .\"To convert a man page to plain pre-formatted text (e.g for spell checking) use: .\"nroff -man synctex.5 | col -b > synctex.5.txt .\"To convert it to Postscript (for printing or further conversion to pdf) use: .\"groff -man -Tps synctex.5 > synctex.5.ps .\"To convert the man page to html use: .\"man2html synctex.5