texstudio
texstudio copied to clipboard
left click and cmd+click no longer working on internal viewer on mac
Environment
- TeXstudio: 4.6.3 (git 4.6.3) Using Qt Version , compiled with Qt 6.5.2 R
- Qt: 6.5.2
- OS: Mac macOS 14.0 (23A344) Apple M1
- TeX distribution: TeX Live (installed by MacTeX)
- I use a trackpad.
Expected behavior
The cursor jumps to the corresponding part in the Latex code. The focus goes from the internal viewer to the editor.
Actual behavior
The cursor stays in place. The focus stays on the internal viewer. The internal viewer scrolls one page lower.
How to reproduce
Compile a Latex document. Show it with the internal viewer. Hold the command key, click on a part of the pdf, then release the command key.
Workaround
Right-click on internal viewer and "Go to Source".
Seemingly related bug
A left click (without the Cmd key) on the internal viewer also scrolls one page lower, whether clicking on regular text or on a link of the hyperref package. (Links still work with other viewers.)
Other details
I tried two different files, they had this same bug. This bug started about a week ago I think. Or maybe since my last update of macOS, from 13.5.2 to 14.0 on 2023-09-28 11:51 AM.
Are the .synctex.gz files generated? Did you use something like -output-directory? And, in Configure TeXstudio - Commands, is CLI option -synctex=1 used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX?
Workaround
Right-click on internal viewer and "go to source".
Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.
Are the
.synctex.gzfiles generated? Did you use something like-output-directory? And, in Configure TeXstudio - Commands, is CLI option-synctex=1used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX?Workaround
Right-click on internal viewer and "go to source".
Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.
Are the
.synctex.gzfiles generated?
Yes.
Did you use something like
-output-directory?
I don't think so.
And, in Configure TeXstudio - Commands, is CLI option
-synctex=1used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX?
Yes.
Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.
Yes. On another editor (VSCode with Latex Workshop extension), Cmd + Click still works for inverse search. But forward search never worked on VSCode for me, which is one reason I use TexStudio.
A left click (without the Cmd key) on the internal viewer scrolls one page lower too, whether clicking on a link or on regular text.
So, links with the hyperref package no longer work in the internal viewer (but still work with other viewers).
I use a trackpad. (Main post updated with these details.)
The issue suddenly got resolved during use (maybe by toggling twice the auto-hide feature of the viewer toolbar). Thanks.
s. Pdf-Viewer menu Window/Show/Toolbar
I don't find "Window/Show/Toolbar", but the internal viewer is working now anyway.
In the windowed viewer you find:
Sorry for resuming this thread, but I have the exact same problem. I tried the "toggle/untoggle the autohide feature" trick but didn't solve it. Any suggestion? Thanks!
Just a guess.
- Click the button "Windowed Viewer" at the top right of the internal viewer.
- Close the windowed viewer.
- Press F7 to display the internal viewer (or click the menu Tools > View).
(I reopen this thread for you, but the issue is still resolved for me.)
I am also having the same issue. After doing what the comment suggest (messing a bit with the viewer), it works for a couple of inverse searches, but then it stops working again.
It seems that the issue has been resolved, possibly through an update to the macos (written on the 15.3.2 version of the OS)
