試験クラスのパーツ環境が正しく表示されない

試験クラスのパーツ環境が正しく表示されない

以下の NQMWE (最小限の動作例ではありません) では、1 つの質問に 2 つありますparts

\documentclass[addpoints]{exam}

\pointsinrightmargin

\begin{document}

\header{English 245}{Quiz on \emph{Childhood's End}, pp. 1--23}{2019/02/26}

\vspace{2mm}

\noindent Name: \makebox[0.5\textwidth]{\dotfill}

\vspace{5mm}

\noindent Score: \makebox[1in]{\dotfill} of a possible \numpoints ~points

\begin{questions}
\question The Overlords make two demonstrations of their powers. What are they?
    \begin{parts}
        \part [1]
            \begin{solution}[1in]
            They destroy an incoming missile
            \end{solution}
        \part [1]
            \begin{solution}[1in]
            They block out the sun over Cape Town.
            \end{solution}
    \end{parts}

\question [1] The Overlords communicate through which medium?
\begin{choices}
\choice Written messages
\correctchoice Speech
\choice Video
\choice Musical tones
\end{choices}
\question [1] The Overlords' human liaison works for which organization?
\begin{choices}
\correctchoice The United Nations
\choice The World Health Organization
\choice The US government
\choice The Soviet government
\end{choices}
\question [1] The human opposition to the Overlords focuses on which of the following?
\begin{choices}
\choice \label{choice:cruelty} The cruelty of their rule
\choice \label{choice:concealment}The fact that they choose not to reveal themselves to their subjects
\choice \label{choice:sovereignty}The loss of human sovereignty
\correctchoice \ref{choice:concealment} and ~\ref{choice:sovereignty}, but not ~\ref{choice:cruelty}
\choice \ref{choice:cruelty} and ~\ref{choice:sovereignty}, but not ~\ref{choice:concealment}
\end{choices}
\end{questions}
\end{document}

コンパイルすると、parts最初の質問の は表示されませんが、その他はすべて正常に動作します (下の画像を参照)。 (これが、ファイル全体を含めた理由です。環境を除いて、すべての選択肢、ラベルなどが正常に動作しますparts。) ここに画像の説明を入力してください

ここで何が問題なのですか?

答え1

印刷する追加テキストを指定していない\parts [1]ため、パーツ ラベルは印刷されません。各パーツにテキスト プロンプト (例: 「デモンストレーション 1」) を追加するか、太さ 0 の線をテキスト プロンプトとして機能させてパーツ ラベルのみを表示することができます。それぞれの例をコードに追加しました。

\documentclass[addpoints]{exam}

\pointsinrightmargin

\begin{document}

\header{English 245}{Quiz on \emph{Childhood's End}, pp. 1--23}{2019/02/26}

\vspace{2mm}

\noindent Name: \makebox[0.5\textwidth]{\dotfill}

\vspace{5mm}

\noindent Score: \makebox[1in]{\dotfill} of a possible \numpoints ~points

\begin{questions}
\question The Overlords make two demonstrations of their powers. What are they?
    \begin{parts}
        \part [1] Demonstration 1: % Use a text prompt
            \begin{solution}[1in]
            They destroy an incoming missile
            \end{solution}
        \part [1] \rule{1em}{0pt}  % Use an 0 thickness line
            \begin{solution}[1in]
            They block out the sun over Cape Town.
            \end{solution}
    \end{parts}

\question [1] The Overlords communicate through which medium?
\begin{choices}
\choice Written messages
\correctchoice Speech
\choice Video
\choice Musical tones
\end{choices}
\question [1] The Overlords' human liaison works for which organization?
\begin{choices}
\correctchoice The United Nations
\choice The World Health Organization
\choice The US government
\choice The Soviet government
\end{choices}
\question [1] The human opposition to the Overlords focuses on which of the following?
\begin{choices}
\choice \label{choice:cruelty} The cruelty of their rule
\choice \label{choice:concealment}The fact that they choose not to reveal themselves to their subjects
\choice \label{choice:sovereignty}The loss of human sovereignty
\correctchoice \ref{choice:concealment} and ~\ref{choice:sovereignty}, but not ~\ref{choice:cruelty}
\choice \ref{choice:cruelty} and ~\ref{choice:sovereignty}, but not ~\ref{choice:concealment}
\end{choices}
\end{questions}
\end{document}

出力例

答え2

問題はssolution内の環境です:\part

\begin{document}

\header{English 245}{Quiz on \emph{Childhood's End}, pp. 1--23}{2019/02/26}

\vspace{2mm}

\noindent Name: \makebox[0.5\textwidth]{\dotfill}

\vspace{5mm}

\noindent Score: \makebox[1in]{\dotfill} of a possible \numpoints ~points

\begin{questions}
\question The Overlords make two demonstrations of their powers. What are they?
    \begin{parts}
        \part [1]
            %\begin{solution}[1in]
            They destroy an incoming missile
            %\end{solution}
        \part [1]
            %\begin{solution}[1in]
            They block out the sun over Cape Town.
            %\end{solution}
    \end{parts}

\question [1] The Overlords communicate through which medium?
\begin{choices}
\choice Written messages
\correctchoice Speech
\choice Video
\choice Musical tones
\end{choices}
\question [1] The Overlords' human liaison works for which organization?
\begin{choices}
\correctchoice The United Nations
\choice The World Health Organization
\choice The US government
\choice The Soviet government
\end{choices}
\question [1] The human opposition to the Overlords focuses on which of the following?
\begin{choices}
\choice \label{choice:cruelty} The cruelty of their rule
\choice \label{choice:concealment}The fact that they choose not to reveal themselves to their subjects
\choice \label{choice:sovereignty}The loss of human sovereignty
\correctchoice \ref{choice:concealment} and ~\ref{choice:sovereignty}, but not ~\ref{choice:cruelty}
\choice \ref{choice:cruelty} and ~\ref{choice:sovereignty}, but not ~\ref{choice:concealment}
\end{choices}
\end{questions}
\end{document}

ここに画像の説明を入力してください

関連情報