David -- Errorformat issues with Vim and LaTeX are well-known, well-documented, and have several "fixes."
To start, see the review at: http://phaseportrait.blogspot.com/2008/03/fixing-vim-latex-compiler-error.html To summarize, modern TeX and pdfTeX accept arguments that generate compiler-like error messages that are compatible with Vim. Unfortunately, it doesn't help much with warnings. There are then other ways to sanitize (like using the "vimlatex" script) LaTeX error messages by ensuring that two closing parentheses don't occur on the same line. Finally, you can further sanitize TeX error messages by using a more sophisticated wrapper like rubber which should have the ability to convert both warnings and error messages into compiler-like strings that Vim can handle. Best -- Ted On 12/06/2011 02:45 PM, David Adley wrote: > The second problem isn't windows specific rather the 'errorformat' > string is just not sophisticated to deal with my somewhat complicated > latex output and gets confused. I had a look at the errorformat string > in the compiler/tex.vim file but I couldn't figure it out. I might have > another look but for the moment if anyone has quick of debugging the > problem (something like :cexpr) here is the latex output > > This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) > entering extended mode > (intronew.tex > LaTeX2e <2005/12/01> > Babel <v3.8h> and hyphenation patterns for english, dumylang, > nohyphenation, ge > rman, ngerman, french, loaded. > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\article.cls" > Document Class: article 2005/09/16 v1.4f Standard LaTeX document class > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\size10.clo")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty" > For additional information on amsmath, use the `?' option. > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsmath\amstext.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amscls\amsthm.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\setspace\setspace.sty" > Package: `setspace' 6.7 <2000/12/01> > ) ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\graphicx.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\keyval.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\graphics.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\trig.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\00miktex\graphics.cfg") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\dvips.def"))) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\ltxmisc\parskip.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\tools\array.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\caption\caption.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\caption\caption3.sty")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\preprint\authblk.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\subfig\subfig.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\was\upgreek.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\jknappen\mathrsfs.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\float\float.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\ltxmisc\braket.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\ltxmisc\threeparttable.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\was\gensymb.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\tools\showkeys.sty") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\xcolor\xcolor.sty" > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\00miktex\color.cfg") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\colortbl\colortbl.sty")) > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\wrapfig\wrapfig.sty") > (intronew.aux) > > Package gensymb Warning: Not defining \perthousand. > > > Package gensymb Warning: Not defining \micro. > > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd") > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\jknappen\ursfs.fd") [1] > ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\omscmr.fd") [2] [3] [4] > [5] [6] [7] > Overfull \hbox (0.39636pt too wide) in paragraph at lines 504--507 > []\OT1/cmr/m/n/10 The Schrodinger equa-tion is the re-sult of solv-ing > equa-ti > ons 26[] and 27[] for $\OML/cmm/m/it/10 E\OT1/cmr/m/n/10 > (\OML/cmm/m/it/10 x; > t\OT1/cmr/m/n/10 )$ > [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] > [23] [24] [25] [26] [27] [28] > Overfull \hbox (34.20609pt too wide) in paragraph at lines 1963--1970 > [][] > [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] <figs/Brillouin_Zone.eps> > [39] [40] [41] [42] [43] [44] > Overfull \hbox (0.91194pt too wide) in paragraph at lines 3078--3078 > []\OT1/cmr/bx/n/10 Normal modes of three di-men-sional monatomic and > poly-atomi > c Bravis > [45] [46] <figs/si_phonon_curve.eps> [47] [48] [49] [50] [51] [52] > <figs/Band_structure_Si_schematic.eps> [53] [54] <figs/weber771_Ge.eps> > [55] [56] [57] [58] [59] [60] [61] > Overfull \hbox (57.93492pt too wide) in paragraph at lines 4215--4215 > [] > [62] <figs/quantum_vertices_descr.eps> [63] > Overfull \hbox (3.40059pt too wide) in paragraph at lines 4349--4349 > [] > [64] > Overfull \hbox (9.81105pt too wide) in paragraph at lines 4433--4468 > [][] > [65] [66] [67] [68] [69] [70] [71] [72] (intronew.aux) ) > (see the transcript file for additional information) > Output written on intronew.dvi (72 pages, 309336 bytes). > Transcript written on intronew.log. > > > On 6 December 2011 03:09, David Adley <adl...@tcd.ie > <mailto:adl...@tcd.ie>> wrote: > > Hi all, > > I've encountered a few problems getting vim-latex to run on windows. > > 1) Forward src-specials don't work. This is because the equality in > compiler.tex on line 346 (latest snapshot release) is 'yap' while > the default setting for 'Tex_ViewRule_Dvi' is 'yap -1' so obviously > these will never equate changing the equality on line 346 works > (viewer ==? 'yap- 1') changing Tex_ViewRule_Dvi to 'yap' also works > but it means that multiple instances open everytime '\ls' is used > which is no good. > > 2) The quickfix window doesn't work at all. I've spent a bit of time > on this and I narrowed down the problem. In windows the default qf > behaviour is 'broken'. Therefore typing ':normal! \<escape>' when > in the qf window doesn't work the cursor just stays where it is. > > This is because the 'bufnr' in each item of the quickfix window (see > getqflist()) is set to zero. It doesn't know what buffer the error > points to. > I've hacked around this by replacing the ':normal! \<escape>' call > to 'wincmd k' and it works but I'd be interested if anyone has a > solution. > > David > > > > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point of > discussion for anyone considering optimizing the pricing and packaging model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > > > > _______________________________________________ > Vim-latex-devel mailing list > Vim-latex-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel -- Ted Pavlic <t...@tedpavlic.com> ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel