I try to come up with a couple of formulas which should be aligned according to a relation symbol but also to the left. Have a look at the following example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
T &= x + y \\
T_{\text{total}} &= y
\end{align}
%
\[
\begin{array}{lcl}
T &=& x + y \\
T_{\text{total}} &=& y
\end{array}
\]
\end{document}
While using the align
environment each line is tagged with a number but the terms on the left hand side are aligned to the right. I tried to solve that by using an array
environment where I can easily control how the left and right hand side of an equation should be aligned, but know I cannot tag the lines anymore.
Does someone has an idea how to align equations to a symbol and at the same time control the alignment of the left and right hand side of the equations?
Best Answer
A solution that uses
alignat
: