[Vim-latex-devel] Tex_RunLaTeX() does not compile new dvi
Brought to you by:
srinathava,
tmaas
From: Kai L. <les...@pi...> - 2007-11-12 13:29:05
|
Hello, I'm looking for help with invoking latex from VIM-LaTeX using the "\ll" shortcut. I've tried to narrow down the problem following the FAQ on http://vim-latex.sourceforge.net and I'm listing my answers to the question asked there below in this mail. The short story is that calling latex from within vim works fine (using :!latex -interaction=3Dnonstopmode %) but calling :call Tex_RunLaTeX() does not work, its output is Running 'bibtex' ... Ran latex 1 time(s) but the dvi file does not change. Thanks in advance, Kai > Q: Compiling does not seem to work for me. My gvim hangs/does nothing.= 1.What does :echo Tex_CompileRule_dvi say? This works correctly, I'm getting latex -interaction=3Dnonstopmode $* > Make sure that you can get this command to execute on your operating > system via Vim. In other words, try the following. Open a very minimal= > .tex file, for example: > \documentclass{article} \begin{document} This is an article. \end{docu= ment} > > in Vim and type the following sequence of characters inside Vim while = in > normal mode: :!latex -interaction=3Dnonstopmode % Execution using :!latex -interaction=3Dnonstopmode % works for both, the toy example and the document that I'm working on. > If this command does not work, then it might be due to one of the foll= owing reasons: 1.You do not have any LaTeX distribution installed on yo= ur system. Remember, > 2.Your $PATH variable does not contain the directory in which the la= tex > executable resides. > 3.Make sure that :set makeprg? shows the same value as Tex_CompileRu= le_dvi. It does. > 4.What happens when you do :call Tex_RunLaTeX() from the command lin= e? It *seems* to run because it returns Running 'bibtex' ... Ran latex 1 time(s) but leaves the dvi file unchanged and also it returns too quickly, so I suspect it didn't really run latex. > In normal operation conditions, this should spawn a shell command whic= h looks > like Tex_CompileRule_dvi. The shell should call the latex compiler, wh= ich should > run without user intervention. If this gives any errors, g:Tex_Compile= Rule_dvi > has not been set properly. If the command above gives an error like E= 117: Unknown function: Tex_RunLaTeX() > you are using an older Latex-suite. Upgrade! > 5.What is your operating system? Debian GNU/Linux 4.0 (etch), Kernel 2.6.18-5-686 > 6.What version of latex are you using? pdfeTeX using libpoppler 3.141592-1.21a-2.2 (Web2C 7.5.4) in texlive 2005.dfsg.3-1 My VIM is version is 7.0 |