1

There is a problem when I customized the label in enumerate environment. I used label=\bfseries{(${\qquad}$)\arabic*.} but the label will be out of the range of \textwidth. Like the following figure:

enter image description here

However, what I really need is more like this (made in MS Word):

enter image description here

How can I fix the code?

The MWE

\documentclass[12pt,a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{enumitem}

\begin{document}
\begin{center}
\Large{\bfseries Exam (I)} \\[0.3cm]
\end{center}

\normalsize
\noindent {\bfseries I. True or False. }
\begin{enumerate}[label=\bf{(${\qquad}$)\arabic*.}]
   \item Statement 1. This is the exam about earth science and there is a long long long sentence. I want a suitable horizontal alignment......
   \item Statement 2. 
\end{enumerate}

\noindent {\bfseries II. Fill in the Blank. }
\begin{enumerate}[label=\bf{\arabic*.}]
    \item Statement 3 \underline{${\qquad}{\qquad}$}.
    \item Statement 4 \underline{${\qquad}{\qquad}$}.
\end{enumerate}

\end{document}

1 Answer 1

3

Just add leftmargin=* to your settings.

enter image description here

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\noindent {\bfseries I. True or False. }
\begin{enumerate}[label={\bfseries (\qquad)\arabic*.},leftmargin=*]
  \item Statement 1. This is the exam about earth science and there is a long long long sentence. 
    I want a suitable horizontal alignment \ldots
  \item Statement 2. 
\end{enumerate}

\noindent {\bfseries II. Fill in the Blank. }
\begin{enumerate}[label={\bfseries\arabic*.}]
  \item Statement 3 \underline{\qquad\qquad}.
  \item Statement 4 \underline{\qquad\qquad}.
\end{enumerate}

\end{document}

If you wish to reference the items as well, you should add an appropriate ref=\arabic* option to the list as well.

0

You must log in to answer this question.

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