11

I would like to itemize some equations but they don't appear on the same line as the bullets.

Here is a code example.

\documentclass{article}
\begin{document}
\begin{itemize}
\item\begin{equation*}
         Pr( Y= n)  = \frac{e^{-7}\times 7^n}{n!}
\end{equation*}

\item\begin{equation*}              
         Pr(X = m)  = \frac{e^{-4}\times 4^m}{m!}
\end{equation*}
\end{itemize}
\end{document}

How can I solve this?

17

Use inline equations, you can make them bigger by using \displaystyle. You can also achieve the same for fractions by using \dfrac from the amsmath package (thanks @cmhughes for the suggestion).

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{itemize}
    \item $ Pr( Y= n)  = \frac{e^{-7}\times 7^n}{n!} $
    \item $ Pr(X = m)  = \frac{e^{-4}\times 4^m}{m!} $
    \item $ \displaystyle Pr( Y= n)  = \frac{e^{-7}\times 7^n}{n!} $
    \item $ \displaystyle Pr(X = m)  = \frac{e^{-4}\times 4^m}{m!} $
    \item $ Pr( Y= n)  = \dfrac{e^{-7}\times 7^n}{n!} $
    \item $ Pr(X = m)  = \dfrac{e^{-4}\times 4^m}{m!} $
\end{itemize}
\end{document}

Result:

Equations

  • 3
    +1 could you add the option to use \dfrac from the amsmath package too? – cmhughes Oct 21 '12 at 19:49
  • 1
    How can one number each of these equations (in a manner similar to the equation environment)? – Neha Karanjkar Aug 14 '17 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.