# Consecutive numbering of problems in successive sections.

Djones9976 djones9976 at aol.com
Sun Jul 19 22:37:35 CEST 2020

I am working on a textbook in quantum mechanics and would like to include problems in each section.   How can I program for consecutive numbering.  The command sequence I am using now is as follows:
\section*{Problems}\begin{enumerate}\setcounter{enumi}{4}\item First problem;\item Second problem.\end{enumerate}
This works fine except that I have to change the setcounter{enumi}{} command every time I start a new problem list, which becomes very tedious every time I go back to an earlier section and add a problem.  Is there a way I can make the numbers update automatically.
Thank you.
D. W. Jones
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200719/c59cd0ff/attachment.html>