不同形式的考試課中兩個正確的選擇

不同形式的考試課中兩個正確的選擇

\CorrectChoice我正在嘗試定義一個新的正確選擇命令,其格式與類別中包含的格式不同exam,而不影響該命令。例如,我希望正確答案以紅色顯示,部分學分答案以藍色顯示。我嘗試了以下方法:

\documentclass[10pt,answers]{exam}
\usepackage{xcolor}
\CorrectChoiceEmphasis{\color{red}}
\newcommand{\PartialCorrectChoice}[1]{
    \ifprintanswers
\CorrectChoice \textcolor{blue}{#1}
\else
\CorrectChoice #1
\fi
}

\begin{document}
\begin{questions}
\question
First question.
    \begin{choices}
    \choice Wrong
    \CorrectChoice Right
    \PartialCorrectChoice{Points for trying}
    \end{choices}
\question
Second question.
\begin{choices}
    \choice Wrong
    \CorrectChoice Right
    \choice No partial credit here
\end{choices}
\end{questions}
\end{document}

我得到:

在此輸入影像描述

這不太漂亮,我不知道如何讓選項的字母也變成藍色。我嘗試使用\CorrectChoiceEmphinside \ifprintanswers,但沒有成功。

相關內容