## LaTeX forum ⇒ Math & Science ⇒ I'm tired of typing \left and \right all the time... Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Singularity
Posts: 152
Joined: Sat Jan 22, 2011 9:55 pm

### I'm tired of typing \left and \right all the time...

...so I tried to create new commands

at the top of my document. But, as you expected, that was already defined. Is there a way around that which a non-expert can implement?

Tags:

Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm
You could do something more robust. Remember to give your own commands unique names.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mas
Posts: 201
Joined: Thu Dec 04, 2008 4:39 am
For friends/colleagues who mention this sort of problem, I always suggest to use the editor provided shortcuts to cut down the typing.

I also suggest that you take a look at the package commath to ease typing material with different brackets et al. The following code looks simpler:
\documentclass{article} \usepackage{mathtools}\usepackage{commath} \begin{document}$\del{x+y}^4 = x^4 + 4 x^3y + 6 x^2 y^2 +4 x y^3 + y^4$ $\del{\frac{x+1}{\frac{1}{x}}}$ \end{document}

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm
Package physics could be helpful as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mas
Posts: 201
Joined: Thu Dec 04, 2008 4:39 am
Johannes_B wrote:Package physics could be helpful as well.

Thanks. That is a very handy set of macros

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim