LaTeX won't let me create a macro to \begin{split}

  • Context: LaTeX 
  • Thread starter Thread starter joftius
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
joftius
Messages
1
Reaction score
0
So I'm trying to do this:

\newcommand{\bq}{\begin{equation*}}
\newcommand{\eq}{\end{equation*}}

\newcommand{\bsp}{\begin{split}}
\newcommand{\esp}{\end{split}}

\bq
\bsp
1 & = 1 \\
2 & = 1 + 1
\esp
\eq

but then LaTeX gives me this error

Runaway argument?
1 & = 1 \\ 2 & = 1 + 1 \esp \eq
! Paragraph ended before \split was complete.

What I really want is just one command to do
\begin{equation*}
\begin{split}
and one command to do the corresponding ends.

Is there any way to do this?

Note: I've tried using \begin{align*} instead, and I get a similar type of weird error.
 
Physics news on Phys.org