Die Teileumgebung im Prüfungsunterricht wird nicht richtig angezeigt

Die Teileumgebung im Prüfungsunterricht wird nicht richtig angezeigt

Im folgenden NQMWE (nicht ganz minimales Arbeitsbeispiel) hat eine Frage zwei 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}

Wenn ich es kompiliere, partserscheint die erste Frage nicht, aber alles andere funktioniert ordnungsgemäß (siehe Abbildung unten). (Aus diesem Grund habe ich die gesamte Datei eingefügt: Alle Auswahlmöglichkeiten, Beschriftungen usw. funktionieren einwandfrei, außer in der partsUmgebung.) Bildbeschreibung hier eingeben

Was ist hier los?

Antwort1

Sie haben keinen zusätzlichen Text zum \parts [1]Drucken angegeben, daher werden die Teilebeschriftungen nicht gedruckt. Sie können Textaufforderungen für jedes Teil hinzufügen (z. B. „Demonstration 1“) oder eine Linie mit der Dicke Null als Textaufforderung erstellen, um nur die Teilebeschriftung anzuzeigen. Ich habe Ihrem Code jeweils ein Beispiel hinzugefügt.

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

Beispielausgabe

Antwort2

Das Problem ist die solutionUmgebung innerhalb \partvon s:

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

Bildbeschreibung hier eingeben

verwandte Informationen