-
Notifications
You must be signed in to change notification settings - Fork 389
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 Searching in Zathura Does not Correctly Zoom to the Specified Page #181
Comments
Dear @gkapfham, As expected, this problem seems to be due to your version of Zathura. I'm on Arch Linux, where I have Zathura version 0.3.3 installed. I've found a couple of external references about synctex support in Zathura:
However, as the above references say "full" support, there might be some limited support in version 0.2.6. Specifically, I am curious what happens if you try from the command line the following: zathura -s minimal.pdf
zathura --synctex-forward 1:1:minimal.tex minimal.pdf Specifically, I am curious if perhaps the problem here is that the let g:vimtex_view_zathura_options = '-s' |
Hello, @lervag! When I type your suggested commands in the terminal window, I find the following output. Again, it seems that the command that vimtex uses for running forward searching does not exist in the version of
|
I've investigated the source code of Zathura, which reveals that If you want, you can clone the git repository yourself: git clone git://pwmt.org/zathura.git |
I prefer to keep the open issues as a list of things to work on. Since I find this issue "resolved" in the sense that I can't fix it, I'm closing it. |
This issue is a follow-on from the ones that I previously created about forward searching in
vim
with vimtex and Zathura, created at @lervag's request. Before I go into the details about the problem that I am facing, I will share some of the configurations of the environments in which I have noticed concerns. Currently, I am running Ubuntu 14.04 LTS and I can reproduce the problems described in this issue with a new version ofvim
that I built from source a few days ago.Here are some more details about this version of vim:
Here is the version of vim that I recently compiled:
Here are some more details about this version of vim:
For reference, here is the version of
zathura
that I am using:I have also created a minimal
.vimrc
file; you will notice that it is only slightly different than the one that people commonly use when reporting issues about vimtex. Also, please note that this version of the.vimrc
file contains theset hidden
command that has proven useful in getting some of my past minimal working examples to compile as expected with vimtex.I have also prepared a simple minimal
.latexmkrc
file that I used when preparing this issue.The vast majority of the LaTeX documents that I write are divided into multiple files. I followed the vimtex guidelines to add headers to the top of a subfile so that it is clear which file is the main file. To reproduce the fault that I am having on complex LaTeX documents, I have produced the following minimal working example.
First, there is a file that is called
minimal.tex
:Then, there is the file called
first.tex
that is in thesections
directory:It is worth noting that the issue reported here is also reproducible for me if the
first.tex
file is not in thesections
directory but instead in the same directory as theminimal.tex
file.Here is what happens when I am using
gvim
with this minimal example. First, load the fileminimal.tex
and press\ll
to start background compilation with `gvim'. This leads to the following debugging output as produced by vimtex.Please note that the
cmd_forward_search
is using thesynctex-forward
command to enable forward searching to work correctly. However, if I check theman
page forzathura
, I find that, at least for Ubuntu 14.04, this command does not exist! The only two relevant options are:I looked into compiling
zathura
from source and found that this is not (easily) possible on Ubuntu 14.04 LTS because of the fact thatzathura
's graphics engine requires a newer version of GTK than is default on my operating system. As such, forward searching does not work correctly when I try to run the\lv
command in either theminimal.tex
file or thefirst.tex
file.Is there any way for you to add code to vimtex that will also use the
synctex-editor-command
instead of relying on the newer command that is currently being used? While it seems very likely that this is not an issue related to vimtex, it is probably one that prevents many users from leveraging this functionality because they are required to use Ubuntu 14.04 and they cannot easily upgrade to a newer Zathura or version of GTK.The text was updated successfully, but these errors were encountered: