LaTeX-Box-Team / LaTeX-Box

Lightweight Toolbox for LaTeX - New Official repository
http://www.vim.org/scripts/script.php?script_id=3109
GNU General Public License v3.0
396 stars 66 forks source link

How to enabled system calls AKA -shell-escape #173

Closed yakir12 closed 10 years ago

yakir12 commented 10 years ago

Searched everywhere (sorry to call this an "issue"), but: what should I put in my vimrc file in order to enable system calls (-shell-escape)? I tired this:

let g:LatexBox_latexmk_options = '-pdflatex="pdflatex -shell-escape"'

but it didn't work.

lervag commented 10 years ago

Look in LaTeX-Box/ftplugin/latex-box/latexmk.vim near line 189. It shows how we modify the latexmk $pdflatex variable to ensure that it has -file-line-error. You could probably use something like that.

However, you could probably solve this better with a .latexmkrc file. Look here for an example.

yakir12 commented 10 years ago

Brilliant. I just made a .latexmkrc file in home with line #23 from that example dot file there. Namely:

$pdflatex = 'pdflatex -interaction=nonstopmode --shell-escape %O %S';

Works! Thanks!!!

lervag commented 10 years ago

Great! Happy to help :)