-
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
PDF file cannot be updated when g:vimtex_view_use_temp_files
is set to non-zero
#1362
Comments
No minimal example is provided... One question, though: Does SumatraPDF block the PDF somehow? That is, similar to what Acrobat does? |
I use the one given in the template, from your repo.
For the block issue, I don't think so. SumatraPDF seems to keep its one cache, and does not hold the real pdf. (Though I need to manually refresh the software by pressing |
But you are obviously using something different than the set nocompatible
let &runtimepath = '~/.vim/bundle/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/bundle/vimtex/after'
filetype plugin indent on
syntax enable
nnoremap q :qall!<cr>
let g:vimtex_view_automatic = 0
silent edit main.tex And so, again, the minimal example is not provided. The minimal vimrc file is much more important than the minimal LaTeX file. |
Same issue. Note that if I don't set vimrc (I need to change some settings for Windows accordingly) set nocompatible
syntax enable
filetype plugin indent on
nnoremap q :qall!<cr>
" python engine support
let g:python_host_prog = 'C:\Users\xliot\Miniconda3\python.exe'
let g:python3_host_prog = 'C:\Users\xliot\Miniconda3\python.exe'
if has('nvim')
let g:vimtex_compiler_progname = 'C:\Users\xliot\Miniconda3\Scripts\nvr.exe'
endif
" pdf viewer
if has("win32") || has("64")
let g:vimtex_view_general_viewer='SumatraPDF.exe'
else
let g:vimtex_view_general_viewer='mupdf.exe'
endif
" copy pdf out of build folder
let g:vimtex_view_use_temp_files = 1
let g:vimtex_view_automatic = 0 |
I don't think the |
Ok, how about now? Does it work with the latest update? |
Works like a charm! |
No problem, happy to hear it works :) |
Issue:
PDF file cannot be updated when
g:vimtex_view_use_temp_files
is set to non-zeroReproduction:
expected behaviour:
The
name_vimtex.pdf
in the main folder will be updated.observed behaviour:
Based on the timestamp of the file, the
name_vimtex.pdf
file is not copied out if there's one already in the folder.using
SumatraPDF
as pdf viewer.:VimtexInfo
:The text was updated successfully, but these errors were encountered: