4

I am writing a book and use book document class. I would like to write a multiple choice questions as in the following picture: enter image description here

I have tried to use standard enumerate but there are two things I could not achieve, i.e.
1. The choice cannot be aligned to question,
2. The counter cannot be put into the parentheses.

Thank very much for your help.

1 Answer 1

2

By loading the enumitem package, you will have full control on labels, leftmargin, etc. You can further specify to which list level your custom settings apply. For example, in your case you need to customize the second level of enumerate, so the setting \setlist[enumerate,2]{<...>} is used. You have also the option to use these settings locally within some scope of enumerate as you wish, or even create your own custom list style (see the package documentation for more details).

\documentclass{article}
\usepackage{enumitem}
\begin{document}

\newcommand{\spce}{\underline{\hspace{.7in}} }
\setlist[enumerate,1]{leftmargin=*}
\setlist[enumerate,2]{label=(\alph*),leftmargin=*,align=left}

\begin{enumerate}
\item One of the \spce Black poets in America, Lucy Terry, was a slave in Deerfield, Massachusetts
\begin{enumerate}
\item first
\item first was
\item first to
\item first has the
\end{enumerate}
\item One of the \spce Black poets in America, Lucy Terry, was a slave in Deerfield, Massachusetts
\begin{enumerate}
\item first
\item first was
\item first to
\item first has the
\end{enumerate}
\end{enumerate}

\end{document}

enter image description here

3
  • This is great. How to make the level 1 to \noindent from the left margin? Mar 9, 2016 at 16:07
  • @FaisalMustafa - The same \setlist[enumerate,1]{leftmargin=*}. See my edit, please.
    – AboAmmar
    Mar 9, 2016 at 16:19
  • Gorgeous...! I am a really newbie. Thanks for putting up with me. Mar 9, 2016 at 16:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .