I have equations in an align
environment with multiple tab stops, and I'd like to use split
to render just one equation number for multiple lines of equations. However, if I have more than one tab stop per line, I get the error
Extra alignment tab has been changed to \cr.
<template> }$\hfill \endtemplate
Here's an example that works:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
f(x) &= y & g(x) &= z \\
h(x) &= a & h(x) &= b
\end{align}
\begin{align}
\begin{split}
f(x) &= y \\
h(x) &= a
\end{split}
\end{align}
\end{document}
and produces the following output.
Here's an example that doesn't work. Note the only difference from the above two examples is the fact that split
is being used with multiple tab stops.
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
\begin{split}
f(x) &= y & g(x) &= z \\
h(x) &= a & h(x) &= b
\end{split}
\end{align}
\end{document}
equation
andaligned
? That gives just a single equation number and can handle multiple tab stops. (Explained in the documentation foramsmath
,texdoc amsldoc
.)