exsheet 打印同一份文件的多个考试

exsheet 打印同一份文件的多个考试

如何使用在同一文档中打印多个考试exsheets

我需要使用

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

答案1

这个问题对我来说不太清楚。下面是一个我所知道的基本示例思考你想要的看起来像这样:

\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}

在此处输入图片描述

相关内容