-
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
\ll starts two viewers #2299
Comments
Use the minimal "hello world" tex file in the issue template. The latexmkrc sets the compiler to pdf output and xelatex, and the viewer is mupdf, sorry I forgot to mention that, here it is, in case it is relevant.
|
I've pushed a minor fix, although it seems unrelated to the issue. But please update. What's the output of |
Bisecting found that 3babc07 is the first bad commit, if that helps. |
Thanks for the update.
|
I've pushed a commit that I believe fixes the issue. But I'll also consider the callback changes I made earlier, as they may lead to other undesired problems. Thanks for reporting! |
I believe my last commit would also be a sufficient fix for this issue. The problem was caused by "duplicate" callbacks, in the sense that latexmk will first report "Running 'echo vimtex_compiler_callback_...'", then in some cases/setups it will also display the echo output "vimtex_compiler_callback_..." just afterwards. Both would be matched by the callback handler, which would therefore cause two callbacks for each event. In any case, I believe the issue is resolved and the code is slightly improved as a result. Thanks again! |
Thanks very much, looks good to me. |
Hi @lervag Sorry for commenting on a closed issue, should I open a new issue? |
That's strange. I can't reproduce this on my end. Could you provide some more details on how to reproduce? I've tried with both Vim and neovim, both work perfectly fine for me. I used the following minimal files: " test.vim
set nocompatible
set rtp^=/path/to/vimtex
set rtp+=/path/to/vimtex/after
filetype plugin indent on
syntax enable
nnoremap q :qall!<cr>
let g:vimtex_view_method = 'mupdf'
silent edit main.tex % test.tex
\documentclass{minimal}
\begin{document}
Hello world!
\end{document} Then I do |
Oddly enough, I cannot reproduce it anymore. |
No problem :) |
Description
Using \ll to compile and view the pdf leads to two open windows with the pdf.
Steps to reproduce
Expected behavior
One window opens with the compiled document.
Actual behavior
Two windows open with the compiled document.
Do you use a latexmkrc file?
yes
VimtexInfo
The text was updated successfully, but these errors were encountered: