[pdftex] Invalid SyncTeX file with \includegraphics

Martin Reinders martin at helios.de
Thu May 7 09:43:40 CEST 2009


On 06.05.2009 15:37 Uhr, I wrote
> 
> It seems that pdftex writes an invalid SyncTeX file for the following
> LaTeX document:
> 
> -------------------------------
> \documentclass{report}
> \usepackage{graphicx}
> \begin{document}
> Hello world
> \includegraphics[bb=5 5 10 10,clip=true]{arrow} % arbitrary PNG file
> \clearpage
> \tableofcontents
> \chapter{Chapter 1}
> This is chapter 1.
> \end{document}
> -------------------------------

The problem seems to be the \pdfrefxform that is used by the
pdftex.def graphics driver for clipped graphics.

I have reduced the problem to the following (plain) TeX file:

-------------------------------
\output={}
\setbox0=\hbox{FORM CONTENTS}
\pdfxform 0
AAA \pdfrefxform\pdflastxform\ BBB
\vfill\eject
\end
-------------------------------

The generated synctex file (with "pdftex -synctex=-1") is

-------------------------------
SyncTeX Version:1
Input:1:mini.tex
Output:pdf
Magnification:1000
Unit:1
X Offset:0
Y Offset:0
Content:
!103
{1
[1,5:4736286,46889208:30785863,42152922,0
(1,5:4736286,5391646:30785863,447828,0
h1,4:4736286,5391646:1310720,0,0
x1,4:7521569,5391646
g1,4:7740022,5391646
g1,4:13902237,5391646
x1,4:15294882,5391646
k1,5:35522149,5391646:20227267
g1,5:35522149,5391646
)
]
!265
{2
(1,2:0,447828:5943762,447828,0
x1,2:427806,447828
x1,2:2002493,447828
g1,2:2220946,447828
x1,2:5943762,447828
)
!120
}1
!8
}1
!6
Postamble:
Count:20
!23
Post scriptum:
-------------------------------

That looks invalid to me, because of the "{2 ... }1" nested inside
sheet 1.

Martin






More information about the pdftex mailing list