在 mcexam 中从题库中提取问题

在 mcexam 中从题库中提取问题

我想使用 mcexam 从 m > n 个问题库中抽取 n 个问题。

我附加了一个 MWE,其中显示了三个问题,我想从中抽取两个;我用评论指出了我想要的选项。

\documentclass{article}

\usepackage[output=exam
  ,numberofversions=1
  ,version=1
  ,seed=1
  ,randomizequestions=true
  ,randomizeanswers=true
  ,writeRfile=false
  %,numberofquestions=2
  ]{mcexam}

\begin{document}

\begin{mcquestions}

\question Which of the below makes a balanced diet?
\begin{mcanswerslist}[ordinal]
  \answer egg and bacon;
  \answer egg, sausage and bacon;
  \answer egg and Spam;
  \answer egg, bacon and Spam;
  \answer[correct] lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle paté, brandy and a fried egg on top and Spam
\end{mcanswerslist}

\question Is this going to be on the exam?
\begin{mcanswerslist}[ordinal]
  \answer Russell's antinomy
  \answer Gödel's numbering
  \answer Borges' library
  \answer Smullyan's What Is The Name Of This Book
  \answer[correct] all of the above
\end{mcanswerslist}

\question Have you ever danced with the devil in the pale moonlight?
\begin{mcanswerslist}[ordinal]
  \answer Cesar Romero
  \answer[correct] Jack Nicholson
  \answer Heath Ledger
  \answer Joaquin Phoenix
  \answer Mark Hamill
\end{mcanswerslist}

\end{mcquestions}

\end{document}

现在有没有比这更清洁的方法如何在 LaTeX 中生成避免重复的随机问题列表?(例如在 LuaLaTeX 中)?

相关内容