I have learned that the following setting in _vimrc will let \ll
compile by engine pdflatex
:
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_pdf = 'pdflatex -aux-directory=F:/Vim/my_latex_doc/temp --synctex=-1 -src-specials -interaction=nonstopmode $*'
My problem is can be make some modification such that it will compiled by xelatex
when I press \lx
?
Best Answer
You can use this in your vimrc to quickly switch the compiler to
xelatex
with\lx
. Then use\ll
to compile.If you want to set
xelatex
temporarily and use\lx
to compile you could use