<div style="color:black;font: 12pt Arial, Helvetica, sans-serif;">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:
<div><br>
</div>
<div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\section*{Problems}</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\begin{enumerate}</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\setcounter{enumi}{4}</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\item First problem;</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\item Second problem.</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">\end{enumerate}</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;"><br>
</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">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.</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;"><br>
</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">Thank you.</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;"><br>
</div>
<div class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Arial;">D. W. Jones</div>
</div>
</div>