#567348 vim-latexsuite: sometimes open package files after a compilation error

#567348#5
Date:
2010-01-28 16:25:42 UTC
From:
To:
Hi,

Consider the attached minimal tex example, which contains an error
(equation environment is closed by equation*).
If you try to compile it (latex), latex-suite will open the package
file pst-math.tex in place of the main tex file (test.tex).
This seems to happen when packages contains some .tex files (such as
pstricks-add here).
I guess this might be due to some misinterpretation of the log file
(attached as well).

Cheers,

    Denis

#567348#12
Date:
2010-01-28 22:35:00 UTC
From:
To:
Hi,

thanks for your bug report.

The parsing of the latex .log files is not easy and latex-suite fails
often at the moment. I will contact upstream concerning this matter.

A (not perfect) workaround is to change the tex error format.
For this, add the following two lines to e.g. ~/.vimrc  (or
to .vim/ftplugin/latex-suite/texrc which first needs to be replaced with
a copy of /usr/share/vim/addons/ftplugin/latex-suite/texrc ):

let g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode -file-line-error-style $*'
let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode -file-line-error-style $*'

Best wishes
 Johann Felix Soden