Hi small question, how can I enable the shell escape option, so I can use packages like minted.
So I'm asking: How can I enable pdflatex -shell -escape for documents using vimtex.
Thanks.
You can do this in two ways:
.latexmkrc file and put it in your $HOME or at the project level. Use e.g. the following file content:perl
$pdflatex = 'pdflatex --shell-escape %O %S';
g:vimtex_latexmk_options, e.g.vim
let g:vimtex_latexmk_options = '-pdf -shell-escape -verbose -file-line-error -synctex=1 -interaction=nonstopmode'
See :h g:vimtex_latexmk_options.
Option vimtex_latexmk_options is deprecated. As per latest help document, it says to use 'vimtex_compiler_latexmk'. Place following code in your .vimrc:
let g:vimtex_compiler_latexmk = {
\ 'options' : [
\ '-pdf',
\ '-shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
See :h vimtex_compiler_latexmk
Most helpful comment
Option vimtex_latexmk_options is deprecated. As per latest help document, it says to use 'vimtex_compiler_latexmk'. Place following code in your .vimrc:
See
:h vimtex_compiler_latexmk