1

I'm having problems compiling a TeX file with LaTeX-suite on Ubuntu. In my .vimrc, I have the following lines :

 filetype plugin on
 set grepprg=grep\ -nH\ $*
 filetype indent on
 let g:tex_flavor='latex'

When I go to the menu and tell it to compile, if I put .dvi, a .dvi file is generated but I ask for a .pdf, nothing happens.

Can anyone give me some pointers on this?

  • 1
    Can you run pdflatex on your .tex file manually? Does changing the target format (:TTarget pdf), which should set both compiler and view target, help? I assume that you have set the compile target to pdf instead of *.pdf which produces an error message, and that you run "compile" after you have changed the compiler target. – jofel Mar 25 '12 at 22:13
  • @Nicolas this question is duplicate of superuser.com/questions/186283/… – alhelal Oct 19 '17 at 9:16
3

+1 to what jofel said. Just use

:TTarget pdf

then type \ll and that should compile your .tex file with pdflatex instead of latex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.