0

I want to automatically convert LaTeX to PDF with pdflatex, then open the PDF in Evince using quickrun.vim.

I've read the documentation for quickrun.vim, and it seems that I should use a function :function! quickrun#register_outputter(name, outputter), but how can I realize that by configuring my .vimrc?

4

1 回答 1

2

我对 quickrun.vim 一无所知,但一个简单的映射也足够了。将此添加到您的 .vimrc 中:

autocmd FileType tex noremap <buffer> <F5> :w<CR> :!pdflatex -shell-escape "%" && evince %:p:r.pdf<CR>

然后点击将运行 pdflatex 并在 evince 中打开 pdf。

于 2012-09-03T10:52:07.433 回答