Bug#509908: [vim-runtime] syntax/tex.vim: mathmode doesn't highlight text the right way

James Vega jamessan at debian.org
Wed Aug 4 15:19:27 UTC 2010


As described below, use of some text commands inside a texMathZone
doesn't enable spell-checking for the contents of the text commands.
Is this something that would be feasible to add?

On Sat, Dec 27, 2008 at 12:49 PM, debian <debain at sandroknauss.de> wrote:
> 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.

GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>

More information about the pkg-vim-maintainers mailing list