Take the 2-minute tour ×

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?

share|improve this question
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
add comment

1 Answer

+1 to what jofel said. Just use

:TTarget pdf

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

share|improve this answer
add comment

Your Answer


