O ambiente de peças na aula de exame não é exibido corretamente

O ambiente de peças na aula de exame não é exibido corretamente

No NQMWE (exemplo funcional não mínimo) abaixo, uma pergunta tem duas 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}

Quando eu compilo, a partsprimeira pergunta não aparece, mas todo o resto funciona corretamente (veja imagem abaixo). (É por isso que incluí o arquivo inteiro: todas as opções, rótulos, etc. funcionam bem, exceto no partsambiente.) insira a descrição da imagem aqui

O que há de errado aqui?

Responder1

Você não forneceu texto adicional para \parts [1]impressão, portanto as etiquetas das peças não são impressas. Você pode adicionar prompts de texto para cada peça (por exemplo, "Demonstração 1") ou pode criar uma linha de espessura zero para funcionar como prompt de texto para mostrar apenas o rótulo da peça. Adicionei um exemplo de cada um ao seu código.

\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}

Exemplo de saída

Responder2

O problema é o solutionambiente dentro de \parts:

\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}

insira a descrição da imagem aqui

informação relacionada