enumerate
我在环境中自定义标签时遇到问题,我用了label=\bfseries{(${\qquad}$)\arabic*.}
但是标签会超出范围\textwidth
,如下图:
然而,我真正需要的更像这样(在 MS Word 中制作):
我该如何修复代码?
数学家协会
\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
只需添加leftmargin=*
到您的设置即可。
\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}
如果您也希望引用这些项目,您ref=\arabic*
也应该在列表中添加适当的选项。