-
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
Forward search fails to work (Neovim + Zathura on Linux over SSH) #2392
Comments
A couple of minor comments, first:
Now, you say backward search works. This indicates that things should work. So let's go more in depth. Can you do this:
|
Thanks a lot for your very fast reply. I updated to use the following folded `vim.tex`" Need to source plug.vim to get things going.
" curl https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim > ~/.config/nvim/autoload/plug.vim
source ~/.config/nvim/autoload/plug.vim
call plug#begin('~/vimfiles/plugged')
Plug 'lervag/vimtex'
call plug#end()
let g:vimtex_view_method = 'zathura' After issuing
Then, I went to a new console and navigated to the same test folder, and issue two commands:
|
When I access a Linux box locally, with the two commands, I see slightly different console output. Though, for the first command with
|
Ah, sorry! I didn't mean Let's keep testing this in the terminal. So, just to be sure I understood correctly, can you verify that the following steps reproduce your issue? cd /path/to/test/files
# Start zathura
zathura min.pdf&
# Now try forward search
zathura --synctex-forward 9:1:'min.tex' 'min.pdf' I.e., the last line should do a forward search to page 3 or 4, but on your end, it will go to page 1. Please confirm. If confirmed, then try this instead: # Use full path to tex file
zathura --synctex-forward 9:1:'/path/to/min.tex' 'min.pdf'
# Or full path to both files
zathura --synctex-forward 9:1:'/path/to/min.tex' '/path/to/min.pdf' Do any of these work? Can you also report the version of synctex on your end? I.e., output of Finally, it could be useful to see the output of synctex itself: synctex view -i 9:1:'min.tex' -o min.pdf |
After opening
Then, with
For
Lastly, with
Across all three attempts, I think the common complaint is:
|
Clearly, the problem is that there is no synctex data. Can you recompile the files and try the
|
After launching the Neovim with Detailed log
In
And, with
In case the contents in the Contents of `min.synctex.gz`
|
Thanks for the new input and for your test files. I've inspected the synctex files, and I notice that they do look different on my end. That is, if we -Input:1:/home/lervag/test/min.tex
+Input:1:/home/lervag/test/./min.tex With further testing, I notice that, with your style, synctex view -i 9:1:/home/username/tmp/test_folder/min.tex -o min.pdf Could you check? I also notice that there is a related open issue: #2377. I believe this is the same issue. My guess is that it has to do with some of the tool versions. Perhaps the |
I believe my latest commit fixes the issue. Can you test? |
Tested and Confirmed. It looks like the following one-liner in let g:vimtex_view_method = 'zathura' Just a few more notes:
|
Great, glad to hear it!
Yes, that is true. However, the configuration you use for Windows are not really good. On Windows, you would typically not need to specify any viewer settings, because the defaults should work fine if you use SumatraPDF. Please read Essentially, I would suggest the following, much simpler, OS dependent configuration: if has('nvim') && !has("win32")
let g:vimtex_view_method = 'zathura'
endif
Notice that |
Thanks a lot for clarifying that a setup on Windows with SumatraPDF doesn't need those explicit settings anymore. This is such a relief! Just to make sure I don't fool myself in the future - to best assist VimTeX's internal
|
My pleasure :)
I would say "yes and no". If you know what you are doing, you can safely compile without VimTeX. The benefit of doing it from VimTeX is that VimTeX can ensure that things work well together. In particular, it passes the right options to But, of course, VimTeX essentially runs more or less the same latexmk -pvc -pdf --synctex=1 -src-specials -silent -time -interaction=nonstopmode -file-line-error |
Description
I am new to compiling TeX documents on Linux OS, and wonder if the specific
latexmk
version and/or the MikTeX distribution may impact how forward search behave? After consulting this issue for the minimum config that should work for Neovim + Tmux, I am experiencing:Steps to reproduce
min.vim
content:min.tex
content:And, for Zathura,
~/.config/zathura/zathurarc
is left empty for this test.Setup: I am accessing the Linux server using a WSL session on Win 10 machine. The SSH connection is established with
-Y
flag, permitting GUI programs to get rendered locally on the WSL machine. I will update this line when I verify how things behave with direct access to the Linux server.Then, I followed the following steps to reproduce the problem.
nvim --clean -u min.vim min.tex
,min.tex
,\ll
and:VimtexView
)Expected behavior
The Zathura window shall jump to Page 3. It should also highlight the corresponding line with text "Page 3"
Actual behavior
Instead of jumping to Page 3, the first page is shown with
:VimtexView
. And, there is no highlight drawn on Page 3.Do you use a latexmkrc file?
no
VimtexInfo
The text was updated successfully, but these errors were encountered: