![在考試課上準備真題/假題](https://rvso.com/image/298813/%E5%9C%A8%E8%80%83%E8%A9%A6%E8%AA%B2%E4%B8%8A%E6%BA%96%E5%82%99%E7%9C%9F%E9%A1%8C%2F%E5%81%87%E9%A1%8C.png)
我用exam document class
準備我的考卷。雖然與其他類似的可用工具相比,它可能有一些局限性,但到目前為止它很好地實現了我的目的。
現在,我需要準備一個帶有判斷題的問題,而班級exam
似乎沒有這個功能。
我知道,如果我決定切換到其他可用的課程,我可以達到相同的效果,但這需要對我的設定進行重大修改,考慮到我能負擔的時間,這可能會非常昂貴。
一種解決方案可能是使用EQ考試style 文件,並準備類似所示的內容這裡(第 3 頁),但考試文件類別和 eqexam 樣式檔案發生衝突,因為它們定義具有相同名稱的環境(parts
以及其他名稱)。
當我決定喜歡其他問題時,您對在考試課上準備正確/錯誤問題有何建議,這些問題應該能夠列印答案。
答案1
我在課堂上使用以下 True/False 格式Exam
。它可能適合也可能不適合您的需求。我發現這種佈局對於評分特別方便。部分真/假問題格式基於這個答案作者:貢薩洛‧梅迪納。
\documentclass[11pt]{exam}
%\printanswers
% Create a True False question format
\newcommand*{\TrueFalse}[1]{%
\ifprintanswers
\ifthenelse{\equal{#1}{T}}{%
\textbf{TRUE}\hspace*{14pt}False
}{
True\hspace*{14pt}\textbf{FALSE}
}
\else
{True}\hspace*{20pt}False
\fi
}
%% The following code is based on an answer by Gonzalo Medina
%% https://tex.stackexchange.com/a/13106/39194
\newlength\TFlengthA
\newlength\TFlengthB
\settowidth\TFlengthA{\hspace*{1.16in}}
\newcommand\TFQuestion[2]{%
\setlength\TFlengthB{\linewidth}
\addtolength\TFlengthB{-\TFlengthA}
\parbox[t]{\TFlengthA}{\TrueFalse{#1}}\parbox[t]{\TFlengthB}{#2}}
\begin{document}
\begin{questions}
\fullwidth{%
Circle True or False. Read each statement in original Greek before answering. (2 points each)
}
\question\TFQuestion{F}{This sentence is false.}
\question\TFQuestion{T}{This sentence is false.}
\question\TFQuestion{T}{A man says that he is lying. Is what he says true or false?}
\end{questions}
\end{document}
如果\printanswers
取消註釋,您將得到以下輸出。