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

2010-01-28 Thread Denis Laxalde
Package: vim-latexsuite
Version: 20091230-3
Severity: normal

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

-- Package-specific info:
Vim related packages installed on this system:
 - vifm
 - vim-latexsuite
 - vim-runtime


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim-latexsuite depends on:
ii  python   2.5.4-9 An interactive high-level object-o
ii  vim  2:7.2.330-1 Vi IMproved - enhanced vi editor
ii  vim-common   2:7.2.330-1 Vi IMproved - Common files
ii  vim-gnome [vim]  2:7.2.330-1 Vi IMproved - enhanced vi editor -
ii  vim-lesstif [vim]2:7.2.330-1 Vi IMproved - enhanced vi editor -

Versions of packages vim-latexsuite recommends:
ii  texlive-binaries [texlive-bas 2009-5 Binaries for TeX Live
ii  vim-addon-manager 0.4.3  manager of addons for the Vim edit

Versions of packages vim-latexsuite suggests:
ii  evince [postscript-viewe 2.28.2-1Document (postscript, pdf) viewer
ii  ghostscript [postscript- 8.70~dfsg-2.1   The GPL Ghostscript PostScript/PDF
ii  gv [postscript-viewer]   1:3.6.8-1   PostScript and PDF viewer for X
ii  xdg-utils1.0.2-6.1   desktop integration utilities from
ii  xpdf 3.02-1.4+lenny1 Portable Document Format (PDF) sui
ii  xpdf-reader [pdf-viewer] 3.02-1.4+lenny1 Portable Document Format (PDF) sui

-- no debconf information
%
\documentclass[a4paper]{article}
\usepackage{pstricks,pstricks-add}
\begin{document}
\begin{pspicture}(2,2)
  \pscircle{2}
\end{pspicture}

\begin{equation}
1+1 = 2
\label{eq:1}
\end{equation*}
\end{document}


This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=latex 2010.1.22)  28 JAN 2010 11:19
entering extended mode
 restricted \write18 enabled.
 %-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e 2009/09/24
Babel v3.8l and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\...@part=\count79
\...@section=\count80
\...@subsection=\count81
\...@subsubsection=\count82
\...@paragraph=\count83
\...@subparagraph=\count84
\...@figure=\count85
\...@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/latex/pstricks/pstricks.sty
Package: pstricks 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)

(/usr/share/texmf-texlive/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.29  2009/05/19 (tvz)
\...@dima=\dimen103
\...@dimb=\dimen104
\...@dimc=\dimen105
\...@dimd=\dimen106
\...@dimg=\dimen107
\...@dimh=\dimen108
\...@hbox=\box26
\...@boxg=\box27
\...@cnta=\count87
\...@cntb=\count88
\...@cntc=\count89
\...@cntd=\count90
\...@cntg=\count91
\...@cnth=\count92
\...@toks=\toks14
(/usr/share/texmf-texlive/tex/generic/pstricks/pstricks.con)
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\...@customdefs=\toks15
\pslinearc=\dimen113
\everypsbox=\toks16
\psframesep=\dimen114
\pslabelsep=\dimen115
\...@shift=\dimen116
\theoverlaybox=\box28
)
File: pstricks.tex 2009/05/19 v1.29 `PSTricks' (tvz,hv)

(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

(/etc/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: dvips.def on input line 225.

(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Model `cmy' substituted 

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

2010-01-28 Thread Johann Felix Soden
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





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org