시험 수업의 부품 환경이 제대로 표시되지 않습니다.

시험 수업의 부품 환경이 제대로 표시되지 않습니다.

아래 NQMWE(최소 작업 예제는 아님)에서는 하나의 질문에 두 가지가 있습니다 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

문제는 s solution내의 환경 입니다.\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}

여기에 이미지 설명을 입력하세요

관련 정보