-
Notifications
You must be signed in to change notification settings - Fork 395
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
A Second MuPDF Window Opens When Viewing a Location in a Subfile of a Multi-File LaTeX Project #178
Comments
I think the main issue mentioned here was solved, as it was similar to the issues #176 and #177. Could you please confirm? And yes, I think And yes, MuPDF is not capable (unfortunately) to zoom to specific lines. I'm already using a hack to get it to zoom to a page. I think this is the best that is possible. I've also added a hack to get reverse search based on the current page number, but I am not really using that myself. It is mapped to |
I am writing to confirm that the recent commits have also resolved the issue with MuPDF loading multiple times. Also, I can confirm that it was normally the missing Perhaps it would be useful to document in the |
This seems to indicate that I probably should stop using "bleeding edge" functionalities like In any case, thanks for your input! |
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 MuPDF integration to work with vimtex, I have never been able to successfully use forward searching from vim to MuPDF when dealing with papers that contain many files.
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 MuPDF 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: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>lv
to start the zooming in MuPDF on the first page of the file, it will load and work correctly. Then, I can go to the line on the second page and press<leader>lv
again and it will also correctly zoom to the second page of the paper. Next, if I go to the line that has theinput
command on it, I will now correctly zoom to the third page of the paper. In summary, all of these features also work correctly. In summary, the integration between vim and MuPDF as provided by vimtex is working as expected.Yet, if I change buffers to the
first.tex
file and then run the<leader>lv
command again, it will load anothermupdf
window. Here is the output from running the<leader>li
command in vim:If I run the command
xdotool search --class MuPDF
in a terminal window, I do find the xwin_id that was listed in the debugging output in vim. In fact, since there are now twomupdf
windows open, I will actually see both of their ids inside of the output.I would see worse types of behavior when I tried to get MuPDF to work with the older version of vim that is standard with Ubuntu 14.04. That is, vim would produce a eight to ten lines of error messages indicating that certain functions did not exist; as I recall, one of them was related to
systemlist
.In summary, I have never been able to fully get MuPDF integration to work in vimtex and vim. It is worth noting that the use of MuPDF does not resolve any of the issues that I previously mentioned in issue #176. That is, I normally experience
latexmk
crashes when I am trying to edit a multi-file paper in vimtex.Finally, I should note that MuPDF does not zoom to a specific line of the PDF, but rather just the page on which the content is located; since I assume that this is the default (although, not ideal) behavior of forward searching in MuPDF, I do not really consider this a defect in vimtex or any of the other supporting tools.
Can you please advise me on how I can get MuPDF integration fully working on vimtex on Ubuntu 14.04?
The text was updated successfully, but these errors were encountered: