The following minimal example demonstrates my situation:
\documentclass{article}
\usepackage{calculator}
\newcommand{\pts}{0}
\begin{document}
\ADD{\pts}{3}{\pts}\pts
\ADD{\pts}{3}{\pts}\pts
\ADD{\pts}{3}{\pts}\pts
\begin{enumerate}
\item \ADD{\pts}{3}{\pts}\pts
\item \ADD{\pts}{3}{\pts}\pts
\end{enumerate}
\pts
\end{document}
Ideally I would like to have the counter \pts
to increase through and after the application of the enumeration environment (or any environment in fact). The package document does state:
But these commands act as declarations, so that its scope is local in environments and groups.
Is there a way around this? Is there a way to keep a counter running through a document, that one can add (or other arithmetic operations as needs be, which the calculator package does do wonderfully).
total
sum counter?