使用 examdesign 进行匹配题中的诱饵选择

使用 examdesign 进行匹配题中的诱饵选择

我正在使用 examdesign 模板为我的学生创建考试。我想在匹配部分(即诱饵)放置额外的选项,但不知道该怎么做,也找不到任何在线解决方案。任何帮助都将不胜感激。谢谢!

\begin{matching}[title={Matching}]
Match the following definitions with the listed terms.
\pair{Elvis Costello}{Spike}
\pair{Nirvana}{Nevermind}
%But how do I add "The Wall" as another choice?

答案1

这就是昏昏欲睡的头脑所能做到的事。

\documentclass{examdesign}
\Fullpages

\makeatletter
\def\dpair#1{%
    \expandafter
  \xdef\csname sec\thesection @\thequestion @tag\endcsname{\thetemp}
  \expandafter
  \gdef\csname sec\thesection @qst\thequestion\endcsname{%
    \exam@PairA{\item[]\hskip-\leftmargin
      \ifanswer
      \makebox[\exam@MatchingLineLength][c]{\exam@GetMatchingAnswer}%
      \hskip\exam@MatchingLineAfterSkip
      \else
      \rule{\exam@MatchingLineLength}{0pt}%
      \hskip\exam@MatchingLineAfterSkip
      \fi}}
%        \stepcounter{question}
  \expandafter
  \xdef\csname sec\thesection @\thequestion @tag\endcsname{\thetemp}
  \expandafter
  \gdef\csname sec\thesection @qst\thequestion\endcsname{%
    \exam@PairB{\item\relax\exam@SaveMatchingAnswer #1}}
  \stepcounter{temp}
  \stepcounter{question}}
\makeatother
\begin{document}
  \begin{matching}[title={Matching}]
Match the following definitions with the listed terms.
\pair{Elvis Costello}{Spike}
\pair{Nirvana}{Nevermind}
\dpair{The wall}   %% don't use \dpair at the beginning but only at the end
\dpair{Rahul Dravid}   %% nick named The Wall
\end{matching}

\end{document}

在此处输入图片描述

相关内容