从 m 个题库中选择问题生成 n 个试卷

从 m 个题库中选择问题生成 n 个试卷

这个问题是从题库生成考试吗?

我想要的是:我有三个问题库:BankA.tex、BankB.tex 和 BankC.tex,它们包含三种不同类型的问题。我想制作四套试卷,每套包含 BankA.tex 中的两个问题、BankB.tex 中的三个问题和 BankC.tex 中的两个问题;我打算使用包exam来准备试卷。我想要一个主文件 Quiz.tex,这样当我运行它时,我会得到四套不同的考试,每套都有相同的标题(线性代数、测验 1\ 日期等);每套都从奇数页开始(适合打印);并且 QuestionX 的所需部分数是从 BankX.tex 中随机选择的,其中 X 是 A、B 或 C。主文件可能看起来像:

\documentclass[11pt]{exam}
\pointsinrightmargin

\usepackage{amssymb,amsfonts,amsmath,amsbsy,mathtools}

%%%%%Some newcommands, packages, etc.%%%%%


\begin{document}
\begin{center}
  {\bfseries Linear Algebra}\\ Quiz,\\ Date .\ 2021.
\end{center}
\noindent Total points: 25\hfill
Time: 12--14 Hrs \medskip

\hrule


\begin{questions}
\question[1 point each] Write the final answer of the following
  question. %Two random questions chosen from QuizA.tex
  \begin{parts}
  \part 
  \part 
  \end{parts}\medskip

\question[2 points each] Solve the following questions.%Three random questions chosen from QuizA.tex
  \begin{parts}
  \part 
  \part
  \part
 \end{parts}\medskip
    
\question[5 points each] Answer the following.%%Two random questions chosen from QuizA.tex
  \begin{parts}
  \part 
  \part
  \end{parts}
\end{questions}
\end{document}

即使用某种自动选择问题的方式(例如模块化算术)代替随机性也足够了。我没有成功地即兴发挥从题库生成考试吗?

相关内容