答案1
David Purton 的评论解决了这个问题。这里我只做了一些改进:使用计数器来减少命令的参数数量\question
,并将其用于\setlist
子问题的全局设置。
\documentclass{article}
\usepackage[shortlabels]{enumitem}
\setlength{\parindent}{0pt}
\newcounter{question}
\newcommand\question[1]{%
\stepcounter{question}
\textbf{\large Question \arabic{question}}\par#1\par}
\setlist[enumerate,1]{{\bfseries a)}}
\usepackage{lipsum}
\begin{document}
\question{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibu-lum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris.}
\begin{enumerate}
\item Pellentesque habitant morbi tristique senectus et ne-tus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metusrhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eutellus sit amet tortor gravida placerat.
\item Integer sapien est, iaculis in, pretiumquis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aeneanfaucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Cur-abitur auctor semper nulla
\end{enumerate}
\question{Calculate the value of $1+1$?}
\begin{enumerate}
\item Hence, calculate the value of $1+2$.
\item Is $2$ the only sum of $1$ and $1$? Give an explanation.
\end{enumerate}
\end{document}
尽管如此,请查看一些可用的考试试卷类和包(虽然我不经常使用它们,所以我无法在这里提供任何东西)。它们更加可定制。