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

pinky pinkyundbrain2000 at gmx.net
Tue Apr 13 12:52:03 UTC 2010


Am 13.04.2010 um 09:36 schrieb Allan Odgaard:

> 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.

Bold is a command and its scope selector text.tex.latex seems to overrule string.other.math.block.tex if I simple duplicate the command and rewrite it according your instructions. My aim is not to use different key equivalents depending on the command. 


More information about the textmate-dev mailing list