Charles,

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 <[email protected]> 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='}'    contained...@texmathzonegroup
> contai...@texfoldgroup,@Spell
> endif
>
> which matches the statements \text,\intertext and \mbox.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to