I am looking for a LaTeX package that will allow me to generate an exam with questions drawn from a particular question bank. Each question within the bank would be a self-contained block of LaTeX code.
For example, in the spirit of the exam
package, I might have the questions:
\question
$2+2=$
\begin{choices}
\choice 3
\choice 0
\choice 4
\choice $\sqrt{2}$
\choice $-\pi$
\end{choices}
\question
$\int_0^1 x^2\,dx=$
\begin{choices}
\choice $-1$
\choice $1/3$
\choice $\infty$
\choice $1/2$
\choice None of the above.
\end{choices}
This would be a bank containing two questions. Each question is a block of LaTeX code that, if it were to be "drawn" from the bank and inserted into a "parent", compilable LaTeX file, would thereby generate an exam (presumably what such a package would do).
Being greedy, I'd really like if I could specify the number of questions $q_1$ to be drawn from question bank $B_1$, $q_2$ from $B_2$, etc. where each bank $B_i$ would be over a specific topic.
If this already exists, I have not been able to find it. Preserving the functionality of the exam
documentclass (or something like it) would make assigning points and/or generating answer keys simultaneous with (random) exam creation.
\question
, you could potentially be okay with wrapping each question inside a bank in an environment, like\begin{question}
...\end{question}
.exam
documentclass and just automate things via a question bank.exsheets
all the way