Improve Latex2PDF vim command

Switch from `latex` to `pdflatex` for last step of the export command to
allow using images in PNG and JPEG format.
This commit is contained in:
Talia 2019-11-25 23:20:01 +01:00
parent a68c62e75f
commit 144fd0fd6a

2
vimrc
View file

@ -953,4 +953,4 @@ endfunction
" --- LaTeX Stuff --- " --- LaTeX Stuff ---
command Latex2PDF call Async([ 'latex '.expand('%'), 'bibtex '.expand('%:r'), 'latex '.expand('%'), 'latex '.expand('%'), 'dvipdfm '.expand('%:r').'.dvi', ['/bin/bash', '-c', 'rm *.{aux,bbl,dvi,log,blg}'] ]) command Latex2PDF call Async([ 'pdflatex -draftmode '.expand('%'), 'bibtex '.expand('%:r'), 'pdflatex -draftmode '.expand('%'), 'pdflatex '.expand('%'), ['/bin/bash', '-c', 'rm *.{aux,bbl,dvi,log,blg}'] ])