The forward search script I had written for vim and mupdf is no longer working since installing TL 2011, and upon investigating why, it seems that synctex is now very fussy about filenames, at least for synctex view
. Not only does it require the full path, but it requires a redundant /./
at the end of the path.
To duplicate. Let scratch.tex
be:
\documentclass{article}
\begin{document}
Hello world
\end{document}
Now, look at the results of the following from the command line:
kck@kck-desktop ~/tmp $ pdflatex -synctex=1 scratch.tex &>/dev/null
kck@kck-desktop ~/tmp $ synctex view -i 3:1:scratch.tex -o scratch.pdf
This is SyncTeX command line utility, version 1.2
SyncTeX Warning: No tag for scratch.tex
kck@kck-desktop ~/tmp $ synctex view -i 3:1:/home/kck/tmp/scratch.tex -o scratch.pdf
This is SyncTeX command line utility, version 1.2
SyncTeX Warning: No tag for /home/kck/tmp/scratch.tex
kck@kck-desktop ~/tmp $ synctex view -i 3:1:/home/kck/tmp/./scratch.tex -o scratch.pdf
This is SyncTeX command line utility, version 1.2
SyncTeX result begin
Output:scratch.pdf
Page:1
x:171.128296
y:134.764618
h:133.768356
v:134.764618
W:343.711060
H:6.918498
before:
offset:0
middle:
after:
SyncTeX result end
Using this syntax for synctex is very counterintuitive, and I'm hesitant to fix my script to use these kinds of filenames for fear synctex's syntax will again be changed.
This problem did not exist for me in TeXlive 2010. Is this change intentional, and will it last?