Bug#509908: [vim-runtime] syntax/tex.vim: mathmode doesn't highlight text the right way
debian
debain at sandroknauss.de
Sat Dec 27 16:49:07 UTC 2008
Package: vim-runtime
Version: 1:7.1.314-3+lenny2
Severity: minor
Tags: patch
Hello,
if I write in a tex-document:
\begin{align}
a&=b\\
\intertext{bla bla bla}
\end{align}
the text inside the Statement intertext is highlighted as a formular and there
is no spell checking inside it. There are different possible solutions. A
first workaround ist to create a file in ~/.vim/after/syntax/tex.vim with:
if !exists("tex_no_math")
syn region texText matchgroup=texStatement extend contained
start='\\\(\(inter\)\?text\|mbox\){' end='}' containedin=@texMathZoneGroup
contains=@texFoldGroup, at Spell
endif
which matches the statements \text,\intertext and \mbox.
The solution for this package is to add these 3 lines
to /usr/share/vim/vim71/syntax/tex.vim.
Dear
sandro
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.26-1-686
Debian Release: 5.0
600 testing ftp5.gwdg.de
50 unstable ftp5.gwdg.de
50 unstable deb.opera.com
1 experimental ftp5.gwdg.de
--- Package information. ---
Depends (Version) | Installed
=========================-+-=============
dpkg (>= 1.14.20) | 1.14.23
More information about the pkg-vim-maintainers
mailing list