【问题标题】:How to automate LaTeX to PDF conversion with quickrun.vim [closed]如何使用 quickrun.vim 自动将 LaTeX 转换为 PDF [关闭]
【发布时间】:2012-09-03 07:51:31
【问题描述】:

我想使用pdflatex 自动将 LaTeX 转换为 PDF,然后使用 quickrun.vim 在 Evince 中打开 PDF。

我已经阅读了quickrun.vim 的文档,看来我应该使用:function! quickrun#register_outputter(name, outputter) 的函数,但是如何通过配置我的.vimrc 来实现呢?

【问题讨论】:

    标签: pdf plugins latex vim


    【解决方案1】:

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

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

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

    【讨论】:

    • 谢谢,在我得到另一个解决方案之前,实际上,我正在使用这种方式
    猜你喜欢
    • 2015-11-10
    • 1970-01-01
    • 1970-01-01
    • 2011-04-05
    • 2011-07-17
    • 2010-12-09
    • 2011-02-23
    • 1970-01-01
    • 2012-01-24
    相关资源
    最近更新 更多