# How to globally replace () with \left(\right) in math mode? [duplicate]

I find myself barely using (). Instead, I always use \left(\right). Keeping typing that long string really kills me.

I have tried this, but no luck.

\DeclareMathOperator{(}{\left(}
\DeclareMathOperator{)}{\right)}


Hence, I am looking for a way that forces the compiler to interpret () into \left(\right) in math mode.

## marked as duplicate by Henri Menke, egreg math-mode StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 28 '14 at 14:38

• You could have ( and ) being active characters, but I would suggest using the nath package. Also I think this is a really bad idea. – Henri Menke Dec 28 '14 at 14:37