0

This question already has an answer here:

It is a quite simple question.

I use mathematical symbols a lot, so, every time I need to keep typing $\left(...\right)$, or $\left{...\right}$ etc (that sucks :P ).

I know I can make a new command in such a way these commands become shorter. But is there a way of declaring something at the preamble and the parenthesis adjust their size automatically throughout the whole document, a package, whatever, anything like this? (AT LEAST in math mode!)

Thank you, guys!

marked as duplicate by David Carlisle, Andrew, user13907, Sean Allred, barbara beeton Sep 19 '16 at 0:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    are you sure you need that many \left \right? it is usually best to avoid them (we have several answers on site about that) – David Carlisle Sep 18 '16 at 22:45
  • 1
    see for example tex.stackexchange.com/questions/173717/… – David Carlisle Sep 18 '16 at 22:47
  • Alternatively: look at your editor, many have features to make inserting such sequences easier. – user36296 Sep 18 '16 at 22:52
  • 2
    @AndersonFelipeViveiros in a sense everything is, but the spacing around left right is only ever suitable for large constructs such as arrays it would certainly be a mis-use of the system to have $f\left(x\right)$ left-right affects the horizontal spacing even when the brackets don't stretch. Obviously anyone may prefer any typeset result that they wish but tex was not designed to produce such a result by default. – David Carlisle Sep 18 '16 at 23:05
  • 1
    but yes it is possible:-) ({\catcode`\(\active\gdef({\left\lparen}}\mathcode`\(="8000 for example. – David Carlisle Sep 18 '16 at 23:08