My question is simple. I've played around with the &
symbol to align my equations neatly under each other, but I just can't get it to look nice. This is the closest I've got:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{align}
A_{0} & = -\frac{3\sigma_{1}' h H L^{2}}{E (H+h)^{3}} &=& -1.62\times 10^{-6}\,\mathrm{m} \\
B_{0} & = - \frac{3 h H (\alpha_{2}-\alpha_{1}) L^{2}}{(H+h)^{3}} &=& 2.95\times 10^{-8}\,\mathrm{m\,K^{-1}} \\
C_{0} & = \frac{4 L^{3}}{E W (H+h)^{3}} &=& 1.08\,\mathrm{m\,N^{-1}}
\end{align}
\end{document}
which produces the following output:
How can I remove the horizontal space in the middle yet still align the equal signs under each other? It should be the middle equation that dictates the spaces, i.e. the other two equations need to align to that one.
As a final question I could ask: How would you do it to make it 'look nice'?
And yes, I have looked at the other similar questions without luck.
=
sign. in order to get the correct space, (la)tex has to consider the classes of the two adjacent characters. since the second=
is followed by a&
, there isn't any character there to check, and no space is left. you can force it by adding{}
after the=
, but it's better to simply put both&&
before the=
. (or follow the guidance of the "real" answers.)