Thread: [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 |
From: David R. <dav...@gm...> - 2007-11-12 13:34:57
|
> This works correctly, I'm getting > latex -interaction=nonstopmode $* If this isn't a typo, it might be your problem. |
From: Thomi D. <Th...@Fa...> - 2007-11-12 15:26:48
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Richfield schrieb: >> This works correctly, I'm getting >> latex -interaction=nonstopmode $* > > If this isn't a typo, it might be your problem. No, that works for me. Thomi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOHCZHTFr8LvvEe4RAp18AJ4qfURXBFYTsMxnxc+E+coJ3sNpPQCeN16q g/HYS5fcVEFPbGAHux3TlZM= =PUgH -----END PGP SIGNATURE----- |
From: David R. <dav...@gm...> - 2007-11-12 20:01:15
|
T24gTm92IDEyLCAyMDA3IDU6MjYgUE0sIFRob21pIERhbW1hbm4gPFRob21pMzVAZmFtLWRhbW1h bm4uZGU+IHdyb3RlOgo+IC0tLS0tQkVHSU4gUEdQIFNJR05FRCBNRVNTQUdFLS0tLS0KPiBIYXNo OiBTSEExCj4KPiBEYXZpZCBSaWNoZmllbGQgc2NocmllYjoKPiA+PiBUaGlzIHdvcmtzIGNvcnJl Y3RseSwgSSdtIGdldHRpbmcKPiA+PiAgICBsYXRleCAtaW50ZXJhY3Rpb249bm9uc3RvcG1vZGUg JCoKPiA+Cj4gPiBJZiB0aGlzIGlzbid0IGEgdHlwbywgaXQgbWlnaHQgYmUgeW91ciBwcm9ibGVt Lgo+IE5vLCB0aGF0IHdvcmtzIGZvciBtZS4KCllvdSBzYXkgdGhhdCB3aGVuIHlvdSB0eXBlCgo6 IWxhdGV4IC1pbnRlcmFjdGlvbj1ub25zdG9wbW9kZSAlCgppdCB3b3JrcywgYnV0IHdoZW4geW91 IHR5cGUgXGxsIGl0IGRvZXNuJ3Qgd29yaywgYW5kIGlmIHlvdSBzYXkgOmVjaG8KVGV4X0NvbXBp bGVSdWxlX2R2aSBpdCBzYXlzCgpsYXRleCAtaW50ZXJhY3Rpb249bm9uc3RvcG1vZGUgJCoKCndo aWNoIGlzIGRpZmZlcmVudC4gIFdoeSBkbyB5b3Ugc2F5IHRoYXQgd29ya3MgZm9yIHlvdT8KCi0t IApEYXZpZCBSaWNoZmllbGQKZV4o8GkpKzE9MAo= |
From: Martin S. <fo...@un...> - 2007-11-12 13:44:44
|
Do you have a file called "makefile" or "Makefile" in your working directory? If so, do a :let Tex_UseMakefile=0 in vim and try again. See :help Tex_UseMakefile Cheers Martin On Mon, Nov 12, 2007 at 02:29:55PM +0100, Kai Lessmann wrote: > 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=nonstopmode %) > 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 |
From: Thomi D. <Th...@Fa...> - 2007-11-13 09:10:03
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Richfield wrote: > On Nov 12, 2007 5:26 PM, Thomi Dammann <Th...@fa...> > wrote: >> >> David Richfield wrote: >>>> This works correctly, I'm getting latex >>>> -interaction=nonstopmode $* >>> If this isn't a typo, it might be your problem. >> No, that works for me. > > You say that when you type > > :!latex -interaction=nonstopmode % > > it works, but when you type \ll it doesn't work, and if you say > :echo Tex_CompileRule_dvi it says > > latex -interaction=nonstopmode $* > > which is different. Why do you say that works for you? Because it's the fact (I'm not Kai and I have no difficulties with complilation of latex files) It's different, but it seems that $* is substituted by % or %:r. :h latex-suite.txt uses allways '$*' as (part of) parameter for the definition of commands. Thomi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHOWndHTFr8LvvEe4RAiT9AKC8X/BIt2gVVMaOITZyyrUEZgDYNQCaAohs ygG4JFDAlSjyZFUeWfCnLow= =GGly -----END PGP SIGNATURE----- |
From: Kai L. <les...@pi...> - 2007-11-13 09:36:19
|
Hi David. Sorry about the confusion. I had removed part of the FAQ to keep my posting short, so when I said > 1.What does :echo Tex_CompileRule_dvi say? > This works correctly, I'm getting > latex -interaction=3Dnonstopmode $* I meant by "this works correctly" that "latex -interaction=3Dnonstopmade= $*" is the correct answer according to the FAQ. Thanks for your help! Kai >> which is different. Why do you say that works for you? > Because it's the fact (I'm not Kai and I have no difficulties with > complilation of latex files) > > It's different, but it seems that $* is substituted by % or %:r. |
From: David R. <dav...@gm...> - 2007-11-13 09:47:29
|
WyQqIGluIGxhdGV4LXN1aXRlXToKT0ssIEkgbmV2ZXIgbm90aWNlZCB0aGlzIGJlZm9yZSEKCi0t IApEYXZpZCBSaWNoZmllbGQKZV4o8GkpKzE9MAo= |