Dejemos que \numquestions\ no cuenten las preguntas adicionales

Dejemos que \numquestions\ no cuenten las preguntas adicionales

Me gustaría usar \numquestions y \numparts sin que cuenten las preguntas adicionales y -parts tal como lo hace \numpoints. ¿Cómo puedo conseguir esto?

Para usar un ejemplo; Quiero que diga lo siguiente "Este examen contiene 2 preguntas y una pregunta adicional."

\documentclass[addpoints]{exam}

\begin{document}
This exams contains \numquestions\ questions and a bonusquestion.

    \begin{questions}
    \question[100]
    Is this the first question?
    \question[100]
    Is this the second question?
    \bonusquestion[100]
    Does this question count?
    \end{questions}
    
\end{document}

Respuesta1

Usando el paquete totcounty los comandos \qquestiony \bbonusquestionen lugar de \questiony \bonusquestion.

a

\documentclass[addpoints]{exam}
    
%****************************** added <<<<<<<<<<<<<<<<<<
\usepackage{totcount}
\newtotcounter{q}
\setcounter{q}{0}
\newtotcounter{b}
\setcounter{b}{0}
\newcommand{\qquestion}[0]{\stepcounter{q}\question}
\newcommand{\bbonusquestion}[0]{\stepcounter{b}\bonusquestion}
%****************************** 
    
\begin{document}
    
This exams contains \total{q}\ question(s) and \total{b}\ bonusquestion(s).
    
    \begin{questions}
        \qquestion[100]
        Is this the first question?
        \qquestion[100]
        Is this the second question?
        \bbonusquestion[100]
        Does this question count?
        \bbonusquestion[100]
        Does this question count?       
    \end{questions}
    
\end{document}

Inspirado encuente el número de preguntas por separado...

información relacionada