0

How to print several exams in the same document using exsheets?

I need to print several exams using

\includequestions[random=1]{easy}
\includequestions[random=1]{medium}
\includequestions[random=1]{hard}
2

1 Answer 1

1

The question is quite unclear to me. A basic example of what I think you want would look like this:

\documentclass{article}
\usepackage{exsheets}

% declare a class `difficulties':
\DeclareQuestionClass{difficulty}{difficulties}

% the external file that holds the exercises
\usepackage{filecontents}
\begin{filecontents*}{my-exercises.tex}
\begin{question}[difficulty=easy]
  First easy question.  
\end{question}
\begin{question}[difficulty=easy]
  Second easy question.  
\end{question}
\begin{question}[difficulty=easy]
  Third easy question.  
\end{question}
\begin{question}[difficulty=medium]
  First medium question.  
\end{question}
\begin{question}[difficulty=medium]
  Second medium question.  
\end{question}
\begin{question}[difficulty=medium]
  Third medium question.  
\end{question}
\begin{question}[difficulty=hard]
  First hard question.  
\end{question}
\begin{question}[difficulty=hard]
  Second hard question.  
\end{question}
\begin{question}[difficulty=hard]
  Third hard question.  
\end{question}
\end{filecontents*}

\begin{document}

\SetupExSheets{use-difficulties={easy}}
\includequestions[random=1]{my-exercises}

\SetupExSheets{use-difficulties={medium}}
\includequestions[random=1]{my-exercises}

\SetupExSheets{use-difficulties={hard}}
\includequestions[random=1]{my-exercises}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .