[SVN] Re: Latex Bundle find out if you are in math-mode

Allan Odgaard mailinglist at textmate.org
Tue Apr 13 07:36:27 UTC 2010


On 12 Apr 2010, at 17:40, pinky wrote:

> I'm using latex a lot in math mode and it would be great if the  
> bundle command for Bold and some other could differ between text  
> mode and math mode. In text mode it should still write \textbf{} but  
> in math mode \mathbf{}. Is there a flag for the mode I can check?

Duplicate the existing snippet for bold, change its text accordingly  
and set the scope selector to string.other.math.block.tex then it will  
override it in math mode.




More information about the textmate-dev mailing list