我怎样才能将每个部分的部分分数添加到问题 2 行下的最终表格中?

我怎样才能将每个部分的部分分数添加到问题 2 行下的最终表格中?

我怎样才能将每个部分的部分分数添加到问题 2 行下的最终表格中?

我想要一张像这样的表格:

在此处输入图片描述

\documentclass[addpoints]{exam}

\usepackage[italian]{babel}  

\makeatletter
\newcommand*{\ExamResetAfterFirstRun}{%
  \renewcommand*{\PgInfo@write}[1]{}%
  \renewcommand*{\label}[1]{\@bsphack\@esphack}%
}
\makeatother

\pointpoints{Punto}{Punti}
\bonuspointpoints{punto (bonus)}{punti (bonus)}






\newcommand{\makenonemptybox}[2]{%
  \par\nobreak\vspace{\ht\strutbox}\noindent
  \fbox{%
    \parbox[c][\dimexpr#1-2\fboxsep][t]{\dimexpr\linewidth-2\fboxsep}{
      \hrule width \hsize height 0pt
      #2
    }%
  }%
  \par\vspace{\ht\strutbox}
}




\begin{document}

\large 



\newcounter{copynum} % copy number, to be printed in the footer 
\newcounter{NumCopy} % how many copies do we want?
\setcounter{NumCopy}{1} % we want 3
\whiledo{\thecopynum<\theNumCopy}{%
  \setcounter{page}{1} % start numbering pages for the current copy at 1
  \addtocounter{copynum}{1} % the number of the current copy
  \setcounter{question}{1} % make questions start at 1 again
  \setcounter{part}{1}  % make parts start at 1 again
  \setcounter{numquestions}{0}
  \setcounter{numpoints}{0}
  \setcounter{numbonuspoints}{0}
  \setcounter{numparts}{0}
  \setcounter{numsubparts}{0}
  \setcounter{numsubsubparts}{0}
  \ifnum\value{copynum}>1 %
    \ExamResetAfterFirstRun
  \fi






 \begin{questions}



\question[3] question 

\question questions: 

\begin{parts}
\part[3]
bla bla
\part[3]
bla bla


\end{parts}


\end{questions}  





{ %\small
 { 
  \begin{center}
  \hqword{exercise}
  \hpword{points}
  \bhpword{Bonus Points:}
  \htword{\textbf{Tot}}
  \hsword{total points}
  \cellwidth{1.0em}
  \gradetable[h][questions]
  \end{center}
  \begin{center}
  \end{center}}
  }





}

\end{document}

相关内容