-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty getting Okular inverse search to work #2870
Comments
FYI: I updated your example and removed the unnecessary white space.
Ah, but you didn't set it following the VimTeX docs. ;) Please see |
I am still struggling, @lervag . Are you referring to the line?
in https://github.com/lervag/vimtex/blob/master/doc/vimtex.txt Initially, I was confused about the In any case, I put in Thanks for your patient help. ----Edit--- |
You can try to run the command from a terminal. E.g.:
This should move your cursor to line 3 inside the VimTeX buffer. If it works as expected, then we should be able to make it work in Okular as well. While debugging in Okular, one simple trick is to use |
I am able to confirm that your steps 1 through 5 indeed work as you describe. Perhaps this is a bug with Okular than. :-( I tried within Okular simply |
I installed qpdfview and it seems to work. So, all is well now. In the qpdfview documentation, perhaps you can consider adding the place where the setting should be specified. I could not find it specified otherwise. It is in Edit->Setting->Source Editor->vim -v --not-a-term -T dumb -c "VimtexInverseSearch %2 '%1'" Then, rightclicking on the document pdf opens up a popup the first option of which is the file / line number of the .tex file. |
My initial thought is that you may be using the wrong sequence for activating backward search? E.g., perhaps it is CTRL + right click? I'm not sure, but that would be one thing to look into.
You should use
I'm glad to hear it! I've found qpdfview to be a solid viewer (although I personally prefer Zathura). And thanks, I'll update the docs. |
Just wanted to close the loop in terms of my tests thus far. While reverse-search seems to work in single .tex files, somehow neither Okular/Zathura/qpdfview seem to work for me with multi-file projects. Time permitting, I will create some minimal working example and share it. |
Description
On Linux, I am able to get Okular forward search to work fine. I am unable to get backward search to work.
Steps to reproduce
My vimrc is:
My
main.tex
which I call viavim main.tex
in a folder containing the.tex
file and above.vimrc
is:Extra white space in the
.tex
file is to ensure that backward search actually working. The pdf output spans 3 pages long even without the extra white space.EDIT by @lervag: The extra white space is not necessary to test backward search and adds unnecessary scrolling when viewing the issue.
Forward search works fine with
\lv
from within the.tex
to the output pdf file, taking me to each of the 3 pages on demand. Inverse search with "Shift + Left Mouse Click" on the Okular pdf file location, however, does not work.I indeed have set within "Configure Okular dialog box" following https://docs.kde.org/stable5/en/okular/okular/inverse_search.html the setup of "Custom Text Editor" with Command:
vim --remote-silent +%l %f
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No.
VimtexInfo
The text was updated successfully, but these errors were encountered: