![在 Exam Latex 中計算多個測試中的項目](https://rvso.com/image/420039/%E5%9C%A8%20Exam%20Latex%20%E4%B8%AD%E8%A8%88%E7%AE%97%E5%A4%9A%E5%80%8B%E6%B8%AC%E8%A9%A6%E4%B8%AD%E7%9A%84%E9%A0%85%E7%9B%AE.png)
我需要將多個測驗放在一本小冊子中,並且每個測驗後面都有一個簡短的統計數據(計算問題和總分)。然而,Tex 傾向於計算整本小冊子中的問題和分數總數。如何為每個測試提供單獨的統計數據?
\documentclass[11pt,oneside,final,leqno]{exam}
\usepackage{amsmath, amssymb, latexsym, amscd, amsthm}
\usepackage{tikz}
\usepackage[margin=1in]{geometry}
\begin{document}
\section{Test A }
\begin{questions}
\addpoints
\question[3] Amanda wrote down four numbers.
The mean of these numbers is 15, the median is
\question[3] The surface area of a sphere is directly proportional to the square of its
\question[4] Find all the pairs $(x,y)$ of real numbers such that
\[
\begin{cases}
x+y+\frac xy=13,\\
\frac{x(x+y)}y=36.
\end{cases}
\]
\rule{5cm}{.7pt}
\numquestions{} questions, \numpages{} pages (including the cover) for the total of \numpoints{} marks.
\end{questions}
% \combinedgradetable[v][questions]
\pagebreak
\section{Test B }
\begin{questions}
\addpoints
\question[2] The average age of 33 fifth$-$graders is 11. The average age of 55 of
\question[3] Ming and Catherine walked to the store together to buy some pencils. Ming bought
\question[3] The lengths of the sides of a triangle in inches are three consecutive
\question[3] If $x+y-2z=13$, $x+y+4z=10$, and $x-y+z=14$, find $x-y$.
\rule{5cm}{.7pt}
\numquestions{} questions, \numpages{} pages (including the cover) for the total of \numpoints{} marks.
\end{questions}
\newpage
\section{Test C }
\begin{questions}
\addpoints
\question[3]
On a map, a straight road measuring 600 m is represented by a line segment of length 7.5 cm.
\question[4] If $x,y$ are integers such that $-8\leq x\leq 7$ and $-1\leq y\leq 6$, find
\question[4] This question has two parts.
\rule{5cm}{.7pt}
\numquestions{} questions, \numpages{} pages (including the cover) for the total of \numpoints{} marks.
\end{questions}
\end{document}