Code: Select all
\newcommand{\(}{\left(}
\newcommand{\)}{\right(}
Code: Select all
\newcommand{\(}{\left(}
\newcommand{\)}{\right(}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis