# [texhax] aligned nested in a multlined nested in an align

Ignacy Gawedzki texhax at qult.net
Thu Jun 21 01:45:38 CEST 2007

Hi everybody,

It's been already a few times when I wanted to nest an aligned environment in
a multlined environment (from mathtools), itself being nested in an align
environment.  As soon as there are '&' in the aligned environment, LaTeX
complains:

ERROR: Argument of \multlined has an extra }.

Example code:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
\begin{multlined}
\begin{aligned}
&a
\end{aligned}
\end{multlined}
\end{align}
\end{document}

So far, I've had to resign myself not to use that combination, but I don't see
anything that's fundamentally wrong in wanting it to work this way.

Does anybody have a solution?

--
To err is human, to purr feline.