This is what I have:
and this is what I need (ignore the difference related to horizontal space in this picture):
That is, a numbered equation inside an enumerate environment and aligned with it's item label.
Some of my code is this:
\documentclass[11pt, oneside]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\begin{document}
\begin{enumerate}
\item \begin{gather}
f^{(n)}(z_0) = \frac{n!}{2\pi i} \oint_C
\frac{f(z)dz}{(z - z_0)^{(n+1)}}
\end{gather}
\end{enumerate}
\end{document}
Best Answer
I suggest you (a) use inline math mode instead of a displayed equation environment and (b) place the equation number "by hand" at the right hand edge of the text block. If you need to typeset a multi-row equation in this manner, encase it either in
\begin{aligned}[t]
and\end{aligned}
or in\begin{gathered} and
\end{gathered}`.The resulting equation can be cross-referenced using the usual
\label
-\ref
(or\eqref
) mechanism.Remark: The frame lines at the edges of the text block are drawn because the
showframe
package is loaded.