我们的考试通常都是这样的形式(不要介意边框),答案行位于数字之前。exam
但是在文档类中,我无法做到这一点。无法将其放在\answerline
前面\question
,因为会出现错误(来自 TexStudio):
Something's wrong--perhaps a missing \item. \answerline \question...
我也尝试在数字前添加一行,但它给出了同样的错误\makebox[0.1\textwidth]{\hrulefill}
:\question
Something's wrong--perhaps a missing \item. \makebox[0.1\textwidth]{\hrulefill} \question...
梅威瑟:
\documentclass[11pt]{exam}
\begin{document}
\begin{questions}
\question He believed that matter consists of four elements of air, earth, water, and fire.
\end{questions}
\end{document}