TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on a Windows 7 machine, using the most recent version of vim-LaTeX with gVim. With all of the defaults, using \ll to compile my document only runs LaTeX once, when it should run multiple times, including a bibtex run. I tried manually adding the line

let g:Tex_MultipleCompileFormats = 'dvi'

but it does not help. I get no errors from the original LaTeX run.

What's strange is that this setup works fine for me on a different machine. I don't know what else to try.

share|improve this question

I spent a few hours debugging vim-latex and found a problem similar to what you have mentioned. Hope this helps other people.

Before vim-latex runs bibtex it searches the .aux file for "\bibdata". If vim is compiled with python, it works fine. If it is not there is a bug that changes the current directory path and hence the search fails. I have corrected this by the following changes. In /.vim/ftplugin/latex-suite/main.vim

Replace the function on line 938 with the following:

function! Tex_GotoTempFile()
     let s:origdir = fnameescape(getcwd())
     if !exists('s:tempFileName')
        let s:tempFileName = tempname()
     exec 'silent! split '.s:tempFileName
     exe 'cd '.s:origdir
 endfunction " }}}

This corrects the error. Hope it helps and save others time :).

share|improve this answer

I had the same problem with a project consisting of lots of separate .tex source files. I found that BibTeX is not called when I use


in my main file where other_file has new/updated citations. However, if I change this to


bibtex is called correctly. I also noticed in the latex-suite documentation (line 1469 in my version)

  1. Finally, it will try to see if this file includes other files via the \input command. For each such file found, Latex-Suite will repeat the previous two steps stopping at the first file which has either a \bibliography command or a thebibliography environment.

I guess it applies only to the \input command and not to \include.

share|improve this answer

I'm using Windows 7 with Sumatra PDF Viewer and the following settings in my vimrc file work fine:

" Compiler and viewer settings
let g:tex_flavor='latex'  
let g:Tex_CompileRule_pdf = 'pdflatex --synctex=-1 -src-specials -interaction=nonstopmode -file-line-error-style $*'
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_MultipleCompileFormats='pdf'
let g:Tex_ViewRule_pdf =  'SumatraPDF -reuse-instance '

Hope it helps.

share|improve this answer

Looks strange, have you solved the problem?

For me, add the following line into .vimrc solved the problem

let g:Tex_MultipleCompileFormats='pdf,bib,pdf'

And my default pdf compileFormat is XeLaTeX

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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