0

This question already has an answer here:

To typeset a collection of equations with alignment, I am using align* from amsmath. Some of these equations have right-hand sides that have multiple lines that should be indented. So far I am using a nested aligned environment and \MoveEqLeft from the mathtools package:

\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}

\begin{document}
\begin{align*}
  x+y &= z+w \\
    a &= \begin{aligned}[t]
           \MoveEqLeft[0.5]
           b+c+d \\
           &+e+f \\
           &+g+h+i+j
         \end{aligned}
\end{align*}
\end{document}

The problem is that the aligned environment seems to introduce extra horizontal space to the left (and possibly on the right as well). How can I eliminate the extra space from aligned?

I am open to other solutions that might avoid aligned, but I do not want to need to manually insert spaces to indent the lines.

marked as duplicate by Ryan Reich, Qrrbrbirlbel, Werner, Henry DeYoung, Ludovic C. Oct 17 '13 at 17:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • This has already been discussed, I'll try finding the relevant question. But \!\begin{aligned} will remove the space. There's no space added at the end. – egreg Oct 17 '13 at 16:46
  • 2
    Here it is: tex.stackexchange.com/questions/98482/… – egreg Oct 17 '13 at 16:48
  • @egreg Sorry I missed that! Thanks for the pointer. – Henry DeYoung Oct 17 '13 at 17:09