Re: [Vim-latex-devel] New compiler features!
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2003-08-29 12:52:22
|
Hello, * On Thu, Aug 28, 2003 at 04:38:03PM -0700, Srinath Avadhanula <sr...@fa...> wrote: > 2. Automatically handling format dependencies: For example, if you > generate pdf documents by first compiling to dvi, then to ps, then > to pdf, then latex-suite handles it automatically, if you specify a > setting g:Tex_FormatDependency_pdf = 'dvi,ps,pdf' > http://vim-latex.sourceforge.net/documentation/latex-suite/compiler-dependency.html I read on this page: > let g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode $*' > let g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi' > let g:Tex_CompileRule_pdf = 'ps2pdf $*.ps' I'd rather use definitions like: let g:Tex_CompileRule_tex_dvi = 'latex --interaction=nonstopmode $*' let g:Tex_CompileRule_dvi_ps = 'dvips -Ppdf -o $*.ps $*.dvi' let g:Tex_CompileRule_ps_pdf = 'ps2pdf $*.ps' Why ? Because we may prefer to use systematically pdflatex, but sometimes, for some documents, we may be interrested in ps2pdf because some particular packages, like pst-uml, are not compatible with pdflatex. So, we may want to bind <c-l>P to tex-[pdflatex]->pdf and <c-l>pdf to tex->ps->pdf. This way, we have the choice to use one approach or the other at the last moment, with no need to redefine 4 global variables. > The latest beta containing the 2 features is available at: > http://vim-latex.sourceforge.net/download/latexSuite-multicompile.tar.gz I had never spent much time on what &efm should be for makeindex or bibtex. So, you may need to eventually have a look at this issue. -- Luc Hermitte http://hermitte.free.fr/vim/ |