-
Notifications
You must be signed in to change notification settings - Fork 399
Zathura Windows Repeatedly Open When Using Vimtex on Ubuntu 14.04 LTS #177
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
Comments
It seems you copy and pasted the request twice into your post. Please see my answer in #171 regarding the question whether your setup fulfils |
I fixed the copy and paste mistake associated with this issue; it turns out that I accidentally pasted another issue report at the bottom of this one. Thanks for pointing out my mistake! |
I should additionally point out that if I attempt to use MuPDF instead of Zathura and I run |
Yes, it seems there has some regression entered vimtex that caused most of your issues here, which is why I'd suggest to focus the discussion on one of the issues, possibly #176 as it seems to narrow down the problem quite well: the action of buffer switching causing the problems. |
First, based on your settings I actually expect that the first However, the next problem is not expected: changing file within the project should not lead to a new window on the next |
I think my last commit fixes the issue where a change of file leads to a new window being opened on The problem here is similar to the problem in #176. It seems I should take a closer look at the initialization code in general. There are probably more similar problems that should be fixed in a more general manner than what I have just pushed right now. |
I did some quick testing with this issue and found that Although not directly related to this issue, I can also report that, if I pick In summary, it seems that, at least for me, forward search does not yet fully work for either Finally, is there a way for |
I just pushed a fix for mupdf as well. It should now not open more than once. Unfortunately (because I like MuPDF alot), MuPDF does not support synctex at all. I've implemented a hack that uses synctex on the command line and sends a key sequence to MuPDF to have it open the specified page that contains the text. But highlighting is not possible, sorry. Also, I'm sorry about the inconvenience, but could you please open a new issue for the synctex problem with Zathura? I don't have time to work more now, and it would be a great help to me if I could keep this issue closed and have a new issue with a more focused and specific specification of the problem. Btw: Thanks alot for reporting these issues! I think I've solved/fixed several bugs now due to your reports. |
I am writing to confirm that the recent commits that you made have resolved the issue that I described. That is, a second MuPDF window no longer opens when I am viewing a subfile of a mutlple-file LaTeX project. Generally, the rather limited MuPDF forward searching seems to normally work as I would expect. Later, I will open other issues related to concerns that I have about Zathura working correctly. |
Great, I'm happy to hear that things are working. Also I will be happy to help in finding the problem with Zathura. For me things are working as expected, so I think it might be related to software versions or similar. |
I am writing to let you know that I no longer use Zathura when writing LaTeX documents with vim and vimtex. Although I like the features that it provides, it turns out that this PDF viewer does not have HiDPI support and thus all of the words look very blurry. For now, I am back to use MuPDF again! If anyone is able to get Zathura to work on a HiDPI display, please let me know how you did this. |
Thanks for the notice. The last time I tried HiDPI on Linux I was not able to get a "smooth" experience. That is, I was not able to get full HiDPI support with a lot of the different software I was using. I gave up, and I still haven't tried again. I'll keep in mind that Zathura may be difficult to get working as well. |
Once again, thank you for your hard work in the vimtex plugin! I have used it in the past several months to write many papers using LaTeX and vim. Although I have tried a wide number of different configurations in an attempt to get Zathura integration to work with vimtex, I have never been able to successfully use forward searching from vim to Zathura.
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 have focused on reproducing the problems described in this issue with a new version of vim that I built from source a few days ago. However, I should note that I was also not able to get Zathura integration to work when I tried it with the standard version of vim that comes with Ubuntu 14.04.
Here is the version of vim provided by Ubuntu:
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:
Here is the version of the
xdotool
that comes pre-installed with Ubuntu 14.04 LTS:Here is the version of
zathura
that I have installed: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.
I also have a
.latexmkrc
file that I took from @lervag's GitHub repository of configuration files and enhanced slightly with other configurations that I found in the discussion of issues for vimtex.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:Now, if I load the
minimal.tex
file into vim and press<leader>ll
to start the compilation of the paper inlatexmk
I would notice that the firstzathura
window has appeared on the screen. Then, if I press<leader>lv
so that I zoom to say, the first page that contains the sentence "Hello world first page!", I would find that another Zathura window has appeared.If I change buffers to the
first.tex
file and then run the<leader>lv
command again, it will load anotherzathura
window. Interestingly,zathura
never goes to the correct page based on my location in either theminimal.tex
file or thefirst.tex
file.Here is the output from running the
<leader>li
command in vim:If I run the command
xdotool search --class Zathura
in a terminal window, I do find the xwin_id that was listed in the debugging output in vim. Also, note that the pid field in the debugging output is always (or, at least often) listed as 0.I would see similar types of behavior when I tried to get Zathura to work with the older version of vim that is standard with Ubuntu 14.04. In summary, I have never been able to get Zathura integration to work in vimtex and vim.
Can you please advise me on how I can get Zathura integration working on vimtex on Ubuntu 14.04?
Once again, thank you for your hard work in the vimtex plugin! I have used it in the past several months to write many papers using LaTeX and vim. Although I have tried a wide number of different configurations in an attempt to get Zathura integration to work with vimtex, I have never been able to successfully use forward searching from vim to Zathura.
Can you please advise me on how I can get Zathura integration working on vimtex on Ubuntu 14.04?
The text was updated successfully, but these errors were encountered: