I'm using the amsart documentclass. Now the equation numbers are aligned to the left, I'm okay with that but what bothers me is the following: If I have equations in an enumerate environment it centers the equations with respect to the whole page. To me that doesn't look very good. How do I center the equation with respect to the body of the enumerate environment?
Asked
Active
Viewed 1,674 times
2
Hendrik Vogt
- 37,935
JT_NL
- 2,153
1 Answers
2
As long as you don't want the equations to be numbered, you can use the following:
\documentclass{amsart}
%--------------------------------------------------------------------
\newenvironment{shiftequation}
{%
\par\noindent\begin{minipage}{\linewidth}
\begin{equation*}
}
{%
\end{equation*}
\end{minipage}
}
%--------------------------------------------------------------------
\begin{document}
Here's some text. Here's some text. Here's some text. Here's some
text. Here's some text. Here's some text. Here's some text. Here's
some text. Here's some text.
\begin{equation*}
\sin^{2} x + \cos^{2} x =
\int_{0}^{1} \bigl(\sin x + \cos x\bigr)^{4}\, dx +
\int_{-1}^{1} \bigl(\log(x^{3}) + \sin^{5} (x^{5})\bigr)^{4}\,dx
\end{equation*}
\begin{enumerate}
\item Here's some text. Here's some text. Here's some text. Here's
some text. Here's some text. Here's some text. Here's some
text. Here's some text. Here's some text.
\begin{shiftequation}
\sin^{2} x + \cos^{2} x =
\int_{0}^{1} \bigl(\sin x + \cos x\bigr)^{4}\, dx +
\int_{-1}^{1} \bigl(\log(x^{3}) + \sin^{5} (x^{5})\bigr)^{4}\,dx
\end{shiftequation}
\item Here's some text. Here's some text. Here's some text. Here's
some text. Here's some text. Here's some text. Here's some
text. Here's some text. Here's some text.
\end{enumerate}
\end{document}
Alas, if you try the same thing with a numbered display (i.e., changing equation* to equation), then the equation numbers line up with the left margin of the text inside the enumerate environment, rather than with the left edge of the overall text area.
Phil Hirschhorn
- 8,942
amsart? – Caramdir Mar 07 '11 at 23:37