Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
1  
...using \hfill$\displaystyle ...$\hfill\null allows for centering, if needed. –  Werner Aug 9 '12 at 7:30
    
thanks for the help, i'll give it a go now! –  user1448093 Aug 9 '12 at 7:31
    
Awesome thanks a Heiko and werner! works like a charm –  user1448093 Aug 9 '12 at 7:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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