I use the exam class for writing my exam ctan exam
The problem regards the counting of points when you have several exercises (so several question environments)
Normally you have solutions in the exam class but I may use this options in a wrong way.
You can find below a basic example which didn't work… exercices have same points and gradingtable.
\documentclass[a4paper,11pt]{exam}
%\printanswers % pour imprimer les réponses (corrigé)
\noprintanswers % Pour ne pas imprimer les réponses (énoncé)
\addpoints % Pour compter les points
\pointsinrightmargin % Pour avoir les points dans la marge à droite
\usepackage{lmodern}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\begin{document}
\textbf{Exercice 1 : \pointsinrange{ex1} pts}
\begin{questions}
\begingradingrange{ex1}
\question[1] question1
\question[2] question2
\question
\begin{parts}
\part[1] question3a
\part[2] question3.b
\end{parts}
\endgradingrange{ex1}
\end{questions}
\partialgradetable{ex1}[h][questions]
\textbf{Exercice 2 : \pointsinrange{ex2} pts}
\begin{questions}
\begingradingrange{ex2}
\question[2] question1
\question[1] question2
\question
\begin{parts}
\part[2] question3a
\part[3] question3.b
\end{parts}
\endgradingrange{ex2}
\end{questions}
\partialgradetable{ex2}[h][questions]
\end{document}
The problem is that each exercise has the same points attributed to it and grading table whereas there are different affectations for questions…
(I have just merge my 2 accounts)
The grading table for exercise 1 should be :
Thank you in advance 😉
Benoit
Best Answer
This is similar to the answer provided by the OP, but allows for multiple questions to appear in each
\partialgradetable
. The problem was having multiple question environments. The tables are correct if you have multiple grading ranges between one set of\begin{questions}
and\end{questions}
.