Let's say I have endnotes running with alpha structure: a, b, c, d, e, ...
Normally, I can run endnotes at every chapter, and reset the counter...
\documentclass{report}
\usepackage{endnotes}
\renewcommand*{\theendnote}{\alph{endnote}}
\begin{document}
\chapter{First}
Testing.\endnote{First test.}
\theendnotes
\setcounter{endnote}{0}
\chapter{Next}
Again.\endnote{Second test.}
\theendnotes
\end{document}
How would I run 1+ chapters within a part and then have \theendnotes print the endnotes, by chapter?
Would this require a more sophisticated counter ... an array counter \newcounter{endnotecounter}[chapter]
???
Maybe something like this?
\documentclass{report}
\usepackage{endnotes}
\renewcommand*{\theendnote}{\alph{endnote}}
\begin{document}
\part{Part I}
\chapter{First}
Testing.\endnote{First test.}
\setcounter{endnote}{0} % this needs to be cached so next chapter isn't purged
\chapter{Next}
Again.\endnote{Second test.}
NOTES for Part I:
\theendnotesbychapterinpart
\end{document}