I've using the examdesign class to create exams and it can do almost everything I want. But I find that I've been repeating myself as I reuse old exams as practice exams and quiz problems. I'd like to create a bank of test problems and it seems that this can almost be accomplished using the \InsertChunk function provided by the examdesign class, but there seems to be a small bug.
I can almost accomplish my goal if I put the following in the main LaTeX file:
\documentclass{examdesign}
\IncludeFromFile{foo.tex}
\begin{examtop}
Exam Instructions
\end{examtop}
\begin{document}
\begin{multiplechoice}
\begin{question}
Question text goes here.
\choice[!]{0.31}
\end{question}
\InsertChunk{chunk name}
\end{multiplechoice}
\end{document}
And the following in a file named foo.tex:
\begin{chunk}{chunk name}
\begin{question}
Question 2 text goes here.
\choice[!]{0.31}
\end{question}
\end{chunk}
However, this setup breaks if I remove the first question.
I was wondering if anybody knew enough about the examdesign class to propose a modification or a workaround so that I could keep all my questions in foo.tex.
\classin the preamble). – Gonzalo Medina Apr 19 '12 at 4:00! LaTeX Error: There's no line here to end.as of now. – Harish Kumar Apr 19 '12 at 4:06examtopenvironment which I believe fixes the compilation errors. – Memo Garza Apr 19 '12 at 4:21