I am using the great xsim
-package to create a new exam-template at work.
So far, I have the following setting:
I created two exercise-types, one for the first part of the exam (question
) and one for the rest of the exam (exercise
). The structure looks like this:
\documentclass[chapterprefix]{scrreprt}
\usepackage{scrlayer-scrpage}
\usepackage[]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[verbose]{xsim}
% Chapter-Format
\setkomafont{chapterprefix}{\Huge\sffamily\bfseries}
\setkomafont{chapter}{\LARGE\sffamily\mdseries}
\renewcommand*\chapterformat{
Aufgabe~\thechapter
}
\xsimsetup{
solution/print=true
}
\DeclareExerciseType{question}{
exercise-env = question,
solution-env = answer,
exercise-name = Frage,
solution-name = \XSIMtranslate{solution},
exercise-template = default,
solution-template = default
}
\SetExerciseParameters{exercise}{
exercise-name = Aufgabe,
exercise-template = default,
counter = section
}
\begin{document}
\part*{Exam 2017}
\section*{Question Section}
\gradingtable[template=default,type=question]
\section*{Calculations}
\gradingtable[template=default,type=exercise]
\chapter{Question Section}
\begin{question}
Die Frage lautet so
\end{question}
\begin{solution}
\blank{Die Lösung ist 3}
\end{solution}
\begin{question}
Die Frage lautet so
\end{question}
\begin{solution}
\blank{Die Lösung ist 3}
\end{solution}
\begin{question}
Die Frage lautet so
\end{question}
\begin{solution}
\blank{Die Lösung ist 3}
\end{solution}
\chapter{First Big Exercise}
Description.
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\chapter{Second Main Exercise}
Decription.
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\chapter{Third Big Exercise}
Description.
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\begin{exercise}
Wir befinden uns im Jahre 50 v.Chr. Ganz Gallien ist von den Römern besetzt... Ganz Gallien?
\end{exercise}
\end{document}
The exercise
-environments use the section
-counter in order to group all questions in one chapter.
Question: Is it possible to create a gradingtable for each chapter containing the included questions? So far, I can only create two gradingtables for each exercise-type (questions and exercises).
Basically, I just need to split up the table for the type "exercise
" in multiple tables, because a single table is simply too long resp. wide.
Any ideas?