I am writing my documents using TeXstudio with TeX Live on Windows (all up to date). After typesetting a document with SyncTeX (which is the default), I should be able to Ctrl + Click
into the PDF preview in order to move the cursor to the appropriate position in the source editor.
This works fine with pdflatex
, but when using lualatex
(which I do in most of my documents) I am often directed to a seemingly random position later in the file. The discrepancy can be quite large, spanning several pages. This is of course not ideal.
After searching the web a bit I discovered a bug report in TeXstudio's issue tracker from three years ago describing the same problem. The people there seemed to agree that it was an issue with TeX Live, as it didn't appear with MiKTeX.
So my questions are
- Can I do anything to remedy this? (I assume no.)
- Can some of you maybe confirm the behavior I see on your own setup? Does it appear independently of the editor? Can you confirm that it does not happen with MiKTeX?
- Is there a public bug tracker for TeX Live where I can check if this has already been reported? Or should I just write to the mailing list?
- Is this more likely a bug in LuaLaTeX, SyncTeX or something else?
(I do realize that this question (set) somewhat breaks the format of this site but I felt that it is useful.)
Here's an MWE for testing. On my system, clicking on "1", "2" or "3" takes me to 3
, clicking on "4" or "5" takes me to 5
and the rest of the paragraphs take me where they should. I can also provide longer examples if required.
% !TeX program = lualatex
\documentclass{article}
\begin{document}
1
2
3
4
5
6
7
\end{document}
LuaHBTeX, Version 1.13.2
andLaTeX2e <2021-11-15>
(withL3 programming layer <2022-01-12>
), same as you (just on Windows). I updated just before asking the question, just to be sure.