Re: [Vim-latex-devel] compiling multiple times fails
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sri...@gm...> - 2006-01-09 01:33:58
|
Hi On 1/8/06, Javier Rojas <jer...@gm...> wrote: > latex-suite doesn't compile multiple times. For instance, this file > > \documentclass{article} > \begin{document} > \section{uno} > some text \label{sec:1} > \section{2} > in the section \ref{sec:1} > \end{document} > > only is compiled one time when I use the command \ll, despite the warning= of > the compiler. On others tests I've made, latex-suite doesn't launch the > bibtex command when necessary. > > I have already checked the Tex_MultipleCompileFormats and > g:Tex_MultipleCompileFormats variables and both contain the string dvi,pd= f > It works for me on both windows/miktex and ubuntu/tetex. I am not sure why its not working for you, but a good first step towards finding out why is to set g:Tex_Debug to 1 in your ~/.vim/ftplugin/tex.vim, remove all auxillary files (.dvi, .aux, .log), then press \ll and finally capture the output of :call Tex_PrintDebug('comp') For the little example file in your case, this is the output: Notice the line "Need to rerun to get cross-references right...". If that line doesn't exist in your output, then it might be a problem with the function Tex_IsPresentInFile() -----------------------------------%<----------------------------------- compiler.vim: Catching LatexSuiteFileType event +Tex_SetTeXCompilerTarget: setting target to [dvi] for Compiler +Tex_SetTeXCompilerTarget: setting target to [dvi] for Viewr compiler/tex.vim: sourcing this file +Tex_RunLaTeX, b:fragmentFile =3D 0 Tex_RunLaTeX: compiling to target [dvi] Tex_RunLaTeX: getting dependency chain =3D [dvi] +Tex_SetTeXCompilerTarget: setting target to [dvi] for Compiler Tex_RunLaTeX: setting target to dvi Tex_RunLaTeX: compiling file multiple times via Tex_CompileMultipleTimes Tex_CompileMultipleTimes: latex run number : 1 Tex_CompileLatex: getting mainfname =3D [f.tex] from Tex_GetMainFileName Tex_CompileLatex: execing [make! f.tex] Tex_CompileMultipleTimes: errors =3D [] Tex_CompileMultipleTimes: Need to rerun to get cross-references right... Tex_CompileMultipleTimes: latex run number : 2 Tex_CompileLatex: getting mainfname =3D [f.tex] from Tex_GetMainFileName Tex_CompileLatex: execing [make! f.tex] Tex_CompileMultipleTimes: errors =3D [] Tex_CompileMultipleTimes: Ran latex 2 time(s) Tex_RunLaTeX: errlist =3D [ 1: ] Tex_SetupErrorWindow: mfnlog =3D f.log -Tex_RunLaTeX -----------------------------------%<----------------------------------- Srinath |