For this purpose it is better to use a class like
exam or a package like
exsheets.
Here is an example with
exam …
Code: Select all
\documentclass[11pt,a4paper]{exam}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\everymath={\displaystyle}
\renewcommand*{\thechoice}{\alph{choice}}
\renewcommand*{\choicelabel}{(\thechoice)}
%\renewcommand*{\choicelabel}{% % workaround for more space between choices
% \ifnum\value{choice}>1%
% \makebox[5em][r]{(\thechoice)}%
% \else
% (\thechoice)
% \fi%
%}
\begin{document}
\begin{questions}
\question $\int_0^1 e^{2lnx}\,dx=$
\begin{oneparchoices}
\choice 0
\choice $\frac{1}{2}$
\choice $\frac{1}{3}$
\choice $\frac{1}{4}$
\end{oneparchoices}
\question $\int^{\frac{\pi}{4}}_0 tan^2x\,dx$ =
\begin{oneparchoices}
\choice $1-\frac{\pi}{4}$
\choice $1 +\frac{\pi}{4}$
\choice $\frac{\pi}{4}-1$
\choice $\frac{\pi}{4}$
\end{oneparchoices}
\end{questions}
\end{document}
… and another one with
exsheets.
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage[load-tasks=true]{exsheets}
\SetupExSheets{headings=runin}
\everymath={\displaystyle}
\begin{document}
\begin{question}
$\int_0^1 e^{2lnx}\,dx = $
\end{question}
\begin{tasks}[label=(tsk[a]),label-width=2em](4)
\task 0
\task $\frac{1}{2}$
\task $\frac{1}{3}$
\task $\frac{1}{4}$
\end{tasks}
\begin{question}
$\int^{\frac{\pi}{4}}_0 tan^2x\,dx$ =
\end{question}
\begin{tasks}[label=(tsk[a]),label-width=2em](4)
\task $1-\frac{\pi}{4}$
\task $1 +\frac{\pi}{4}$
\task $\frac{\pi}{4}-1$
\task $\frac{\pi}{4}$
\end{tasks}
\end{document}
If you want to stay with the classic list environments, try
enumitem in this way.
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[inline]{enumitem}
\usepackage{mathtools}
\everymath={\displaystyle}
\setlist[enumerate,2]{label=(\alph*)}
\begin{document}
\begin{enumerate}
\item $\int_0^1 e^{2lnx}\,dx=$
\begin{enumerate*}[itemjoin=\qquad]
\item 0
\item $\frac{1}{2}$
\item $\frac{1}{3}$
\item $\frac{1}{4}$
\end{enumerate*}
\item $\int^{\frac{\pi}{4}}_0 tan^2x\,dx=$
\begin{enumerate*}[itemjoin=\qquad]
\item $1-\frac{\pi}{4}$
\item $1 +\frac{\pi}{4}$
\item $\frac{\pi}{4}-1$
\item $\frac{\pi}{4}$
\end{enumerate*}
\end{enumerate}
\end{document}
For a deeper understanding of the involved packages take a look at their manuals.
Thorsten