In order to compile LaTeX files into various formats, Latex-Suite needs to know which external programs to call and in which way they need to be called. This information is provided to Latex-Suite via a number of "rules". For each format you want to compile to, you need to specify a rule. A rule is specified by defining a variable of the form:
g:Tex_CompileRule_<format>
where <format> is a string like "pdf", "dvi" etc.
Example: By default, Latex-Suite uses the following rule for compiling LaTeX documents into DVI.
g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode $*'
Default values are also provided for ps and pdf formats. You might want to change these rules in texrc according to your local tex environment.
Specifying a different format does not automatically account for dependencies. For example, if in your case, you use
.tex -> .dvi -> .ps -> .pdf
to generate PDF files from DVI, then you will need to choose dvi first, compile, change format to ps, compile, change format and so on. You could automate this via a mapping as follows:
function! Tex_CompileToPDF() TCTarget dvi normal \ll TCTarget ps normal \ll TCTarget pdf normal \ll endfunction nmap \pdf :call Tex_CompileToPDF()<CR>
For win32 users user MikTeX, sometimes the latex compiler's output has a bug where a single number is split across different lines. In this case, put the included vim-latex file distributed with Latex-Suite.