4

Each equation should sit directly next to its listing ie to the right of the a) not underneath it, just wondering how to fix it, and if my markup can be improved efficiency wise. What it looks like currently:

enter image description here

\documentclass[fleqn]{article}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item \begin{equation*} \text{Factorise the following} \end{equation*}
\begin{multicols}{2}
\begin{enumerate}[(a)]
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
    \item  \begin{equation*} \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x). \end{equation*}
\end{enumerate}
\end{multicols}
\end{enumerate}
6

Instead of a displayed equation environment that goes underneath the enumerate numbering inline math can be used. \displaystyle chooses the settings for displayed equations.

\documentclass[fleqn]{article}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item Factorise the following:
\begin{multicols}{2}
\begin{enumerate}[(a)]
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
    \item  $\displaystyle \frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x)$.
\end{enumerate}
\end{multicols}
\end{enumerate}
\end{document}

Result:

Displayed equations using inline math

Edit: Werner's idea of centered equations added.

\documentclass[fleqn]{article}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{enumerate}
\newenvironment{cmath}{%
  \leavevmode
  \hfill
  $\displaystyle
}{%
  $\hfill\null
}
\begin{document}
\begin{enumerate}
\item Factorise the following:
\begin{multicols}{2}
\begin{enumerate}[(a)]
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
    \item  \begin{cmath}\frac{d}{dx}\left( \int_{0}^{x},du\right)=f(x).\end{cmath}
\end{enumerate}
\end{multicols}
\end{enumerate}
\end{document}

Result:

Inline centered math equations

  • 1
    ...using \hfill$\displaystyle ...$\hfill\null allows for centering, if needed. – Werner Aug 9 '12 at 7:30
  • Awesome thanks a Heiko and werner! works like a charm – user1448093 Aug 9 '12 at 7:34

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.