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
:VimtexView and \lv dont do anythin #2577
Comments
Can you explain exactly what you mean with "viewing the pdf outside of vim"? I mean, do you open the folder in Windows explorer and double click? Do you write
Ok. After you open the document in Vim, do
No need to apologize for being new. I hope you enjoy it so far and that you find both Vim and VimTeX to be rewarding experiences!
Definitely relevant.
Notice that this does not indicate any steps. It may feel cumbersome and boring, but it is often extremely useful to type out the exact steps you perform. E.g. something like this:
Notice that VimTeX works best when you have the clientserver enabled. See |
when i run zathura 05.pdf it opens a window with the pdf .
viewer: Zathura
xwin id: 0
cmd_start: zathura -x "/usr/bin/vim.gtk3 -T dumb --not-a-term -n -c \"VimtexInverseSearch %{line} '%{input}'\"" --synctex-forward 1:2:'/mnt/c/Users/rosen/OneDrive/Documents/JLU/s3/Stochastik/Übung/Blatt05/05.tex' '05.pdf'&
qf method: LaTeX logfile also i configured my vim to have a clientserver, as you suggested, thanks. not sure what it does though Edit: also, steps to reproduce are actually exactly what you worte :) |
The The clientserver is explained in the docs. The main reason to activate it is because it is required for backward search (from Zathura to VimTeX). |
Cool, thanks. Now, in a terminal where you've zathura -x "/usr/bin/vim.gtk3 -T dumb --not-a-term -n -c \"VimtexInverseSearch %{line} '%{input}'\"" --synctex-forward 1:2:'/mnt/c/Users/rosen/OneDrive/Documents/JLU/s3/Stochastik/Übung/Blatt05/05.tex' '05.pdf'&
# Variant 1
zathura -x "/usr/bin/vim.gtk3 -T dumb --not-a-term -n -c \"VimtexInverseSearch %{line} '%{input}'\"" '05.pdf'&
# Variant 2
zathura --synctex-forward 1:2:'/mnt/c/Users/rosen/OneDrive/Documents/JLU/s3/Stochastik/Übung/Blatt05/05.tex' '05.pdf'& Do any of these work? |
first option doesnt work
second option opened zathura with the desired pdf
third option also didnt work |
Ok. So, you're on Ubuntu in WSL2, and you want to use Zathura as a viewer. For synctex to work with Zathura, you need dbus. I believe that is the main issue here. I'm not quite sure how to help directly; I don't use Windows and can't really test things. Still, though, it seems this is very related to issues running Zathura on MacOS. It can be helpful to read |
alright thanks <3 |
No problem :) Let me know how things go! |
https://x410.dev/cookbook/wsl/sharing-dbus-among-wsl2-consoles/ followed this, created the file and added the command to .profile, and it works now <3 its kinda slow, but that might be beacuse it doesnt have much ram, dont know for sure thank you very much |
Great, I'm glad to hear it, and thanks for sharing the resource. Not sure why it is slow; it could also be that the communication between WSL and the X server with dbus is slow. It is probably possible to profile, but as mentioned, I can't since I don't use Windows. :\ In any case, I hope it works well enough! Should I consider the issue resolved? |
Description
when I try to compile and view my latex script, compiling works just fine, and viewing the pdf outside of vim works fine, but when i then do
\lv
or:VimtexView
, nothing happens.also sorry if i did something wrong, im very new to vim and vimtex, and github not so much to latex
also maybe relevant, im running vim in WSL2
Steps to reproduce
open any .tex doc->\ll (compiles fine)\lv(does nothing)
Expected behavior
show the compiled pdf in zathura
Actual behavior
does nothing
Do you use a latexmkrc file?
no
VimtexInfo
The text was updated successfully, but these errors were encountered: