Re: [Vim-latex-devel] xy-pic

2007-05-06 Thread Sebastian Menge
Thanks for the answers. Hooman, you are right, math-mode is needed to fix syntax-highlighting. I have developed two solutions: 1) in the syntax file tex.vim one can define a new "texMathZoneXY" (i simply adapted texMathZoneZ) (~line 340). And add a "texMathZoneXY" next to each other occurence of

Re: [Vim-latex-devel] xy-pic

2007-05-05 Thread Franco Saliola
On 5/3/07, Sebastian Menge <[EMAIL PROTECTED]> wrote: > Oh, while i write a get an idea. Inside \xymatrix is math-text. > Probably latex-suite does not recognize this and treats it as standard > text !? > > How can i change that? I haven't tried this, but maybe you can create a new environment c

Re: [Vim-latex-devel] xy-pic

2007-05-05 Thread coupled cores
Dear Sebastian, I have noticed this behaviour. When you use raw TeX code inside a LaTeX document, the _(underscore) and ^ and @ are highlighted with a red background. I think the syntax highlighting of the LaTeX files expects these special characters to appear only inside math environment such as

[Vim-latex-devel] xy-pic

2007-05-03 Thread Sebastian Menge
Hi Im using the package xy-pic for drawing some diagrams. The TeX-code looks like this: \centerline{ \xymatrix{ E \ar@/^/[r]^s \ar@/_/[r]_t & V } } or \centerline{ \xymatrix{ & S \times I \ar@/_/[dl]_t \ar[dl]_{\pi_1} \ar[d]^{\pi_2} \ar[dr]^o& \ \ S & I & O } } Syntax highlighting