Code: Select all
\def\Item$#1${\item $\displaystyle#1$
\hfill\refstepcounter{equation}(\theequation)}
\begin{document}
\begin{enumerate}
\item foo
\Item $ 1+2=3 $
\item bar
\Item $f(x)=\int\limits_a^bx^2\mathrm{d}x$
\end{enumerate}
Code: Select all
\def\Item$#1${\item $\displaystyle#1$
\hfill\refstepcounter{equation}(\theequation)}
\begin{document}
\begin{enumerate}
\item foo
\Item $ 1+2=3 $
\item bar
\Item $f(x)=\int\limits_a^bx^2\mathrm{d}x$
\end{enumerate}
Code: Select all
\usepackage{enumitem}
\begin{enumerate}
\item $y = f(x)$ % compare with this
\end{enumerate}
\begin{enumerate}
\item \rule{0pt}{1pt}\vspace*{-14pt}
\begin{equation}
\hspace{-483pt} y=f(x)
\end{equation}
\end{enumerate}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis