jlaurens / synctex

Synchronization for TeX
MIT License
64 stars 19 forks source link

immediate xform leads to synctex failure #44

Open u-fischer opened 2 years ago

u-fischer commented 2 years ago

If an immediate xform object is added (something that the fadings libary of pgf does, and so happens in many document using tikz) then synchronization fails for text in input files on windows together with sumatra.

\begin{filecontents}{input1.tex}
Bonjour monde
\end{filecontents}

\documentclass{article}

\setbox0\hbox{A}
\immediate\pdfxform0
\begin{document}

Hello World.

\input{input1.tex}

\end{document}

Clicking on the Bonjour monde gives only the message that no synchronization is available.

The syntex file contains then beside others

Output:pdf
Magnification:1000
Unit:1
X Offset:0
Y Offset:0
Content:
x0,0:491521,447828
!1346

and I think the x0,0:491521,447828 is confusing sumatra. I don't know if the syntax is allowed and so sumatra is at fault, or if this is faulty syntax.

This has been reported also here: https://tex.stackexchange.com/questions/627342

jlaurens commented 2 years ago

Normally the first 0 in x0,0.... should mean filter out this line. I'll check this out.

AntoineLatex commented 1 year ago

Hi, I reported such a problem in Tex.Stackexchange https://tex.stackexchange.com/questions/633718/luatex-shadows-or-fadings-tikzlibraries-make-gotosource-from-the-first-pag and the problem still persists for me. The problem seems independant from the pdf viewer and occur both with Sumatra or Xpdf. Is there a way to know if the bug has is origin on Luatex or Synctex ?