The document I'm writing using report
class has 2 unnumbered chapters. The sections of the 2nd chapter are numbered following the numbering of the sections of the 1st chapter, like this:
MY FIRST UNNUMBERED CHAPTER
1 First Section
2 Second Section
3 Third Section
MY SECOND UNNUMBERED CHAPTER
4 First Section
5 Second Section
I want it to reset the section numbering every time a new unnumbered chapter is created:
MY FIRST UNNUMBERED CHAPTER
1 First Section
2 Second Section
3 Third Section
MY SECOND UNNUMBERED CHAPTER
1 First Section
2 Second Section
For this, I tried:
\@addtoreset{section}{chapter*}
, it compiled, but sections were not correctly numbered and PDF bookmarks went crazy.\setcounter{section}{0}
, it correctly numbered the sections, but the PDF bookmarks of the sections of the 2nd chapter points to the first chapter.
So, how to reset the section numbers between unnumbered chapters without breaking the PDF bookmarks?