How can I get an enumerate inside an align environment? I want something like this:
%...
\begin{enumerate}
\item test123
\begin{align*}
\item x^2 & \text{ bla}\\
\item x^3 & \text{ bla2}\\
\end{align*}
\end{enumerate}
%...
Is that possible?
How can I get an enumerate inside an align environment? I want something like this:
%...
\begin{enumerate}
\item test123
\begin{align*}
\item x^2 & \text{ bla}\\
\item x^3 & \text{ bla2}\\
\end{align*}
\end{enumerate}
%...
Is that possible?
Apparently you can use an align inside an enumerate, as I discovered in this answer to a similar question. Just do something like this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
This is an align inside an enumerate.
\begin{enumerate}
\item First item.
\begin{align*}
f(x) &= x^2
\intertext{\item Second item.}
g(x) &= \int_0^\infty t^x x^{n - 1} \, dx
\end{align*}
\end{enumerate}
After the list.
\end{document}
The first \item must be outside the alignment; all the others can be \intertext.
you are using the unnumbered align*, the reason why it makes no real sense to use it inside an enumerate. Maybe this helps:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item test123
\item \hfill$ x^2 \text{ bla}$ \hfill\refstepcounter{equation}(\theequation)
\item \hfill$ x^3 \text{ bla2}$\hfill\refstepcounter{equation}(\theequation)
\item foo
\end{enumerate}
\end{document}

alignenvironments (which was just answered recently and the solution is to usealigned)? Perhaps a slightly expanded MWE would clarify things. Also, it is generally preferable to to have fully compilable examples as opposed to code snippets. – Peter Grill Feb 07 '12 at 18:13align? – Peter Grill Feb 07 '12 at 18:18\intertextcommand that's part of theamsmathpackage (the same package that also defines the display-math environmentsalign,gather,multline,split,aligned, and a few more). You won't be able to able to use anenumerate-style group in the argument of\intertext, but it may be what you really need. – Mico Feb 07 '12 at 18:28