Code: Select all
\newcommand{\(}{\left(}
\newcommand{\)}{\right(}
Code: Select all
\newcommand{\(}{\left(}
\newcommand{\)}{\right(}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{mathtools}
\newcommand{\lpar}{\left(}
\newcommand{\rpar}{\right)}
\begin{document}
\[
\lpar x+y \rpar^4 = x^4 + 4 x^3y + 6 x^2 y^2 +
4 x y^3 + y^4
\]
\[ \lpar\frac{x+1}{\frac{1}{x}}\rpar \]
\end{document}
Code: Select all
\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}
Thanks. That is a very handy set of macrosJohannes_B wrote:Package physics could be helpful as well.
NEW: TikZ book now 40% off at Amazon.com for a short time.