Is it possible to define a macro for the align* environment, or allow multi-line support for the equation display mode $$ $$?
I use the align* environment very frequently, and a typical usage goes as follows:
\begin{align*}
A &= B \\
&= C
\end{align*}
Typing the entirety of the command every time becomes a hassle, so I attempted to define a macro for them:
\documentclass[10pt]{article}
\usepackage{geometry}% larger text width
\usepackage{amsmath}
\newcommand{\begin{align}}{\bal}
\newcommand{\end{align}}{\eal}
\begin{document}
text here
\end{document}
But this throws errors, seemingly because \begin etc. can't fit into defining a \newcommand:
! LaTeX Error: Command \begin already defined. (Line 5)
! Undefined control sequence. (Line 5)
! LaTeX Error: Command \end already defined. (Line 6)
! Undefined control sequence. (Line 6)
So is it possible to do one of the following?
- Define a shortcut for the
align*environment. - Get a multi-line alignment support for the display mode
$$ $$. - Find another command that creates multi-line aligned equations with optional numbering.
