[TxMt] LaTeX Bundle: Wrap in left...right

Ruben Debeerst ruben.debeerst at gmx.de
Wed Sep 19 16:22:18 UTC 2007


Hey guys,

I want to suggest to change the "left...right" snippet, which wraps 
"(something)" into "\left(something\right)". Right now the snippet 
catches any trailing caracter, but commonly it will only be used with 
brackets. I wanted to wrap "\{something\}" into 
"\left\{something\right\}". So I changed the snippet to

${TM_SELECTED_TEXT/(.*)(\\}|\)|\])/\\left$1\\right$2/}

Maybe this is interesting for others and could be integrated into the bundle.

regards,

Ruben





More information about the textmate mailing list