I am preparing an anthology that reprints and discusses over a hundred third-party poems. Much of the commentary will be in the main matter, but the more tangential comments will take the form of endnotes. The back matter needs to contain two separate lists, one that provides the endnotes and another that provides the reprint permissions/acknowledgments, in the same order in which the poems appear in the main matter. (I do not want to use footnotes.)
I could, of course, manually compile a monolithic permissions list in the back matter. But the order of the poems might change a lot as I write the main matter, and I don't want to have to manually re-order the permissions list. Is there a relatively simple way I can include the permission text near poem itself, with an endnote-like macro, and have LaTeX automatically generate two endnote-like lists in the back matter, one for the comments and the other for the permissions?
I'm using the memoir class, so any solution would need to be compatible with that.
Here's a MWE:
\documentclass{memoir}
\makepagenote
\begin{document}
\chapter{Poems about animals}
John Smith wrote the following poem, Fuzzies'', about ferrets: \pagenote{This note discusses some trivia about the poem.} % comment \pagenote{Fuzzies'' is reprinted with permission of…} % permission
\chapter{Poems about vehicles}
Mary Smith once published a poem about her car:
\pagenote{This note discusses some trivia about the poem.} % comment
\pagenote{``My Honda'' is reprinted with permission of…} % permission
\backmatter\printpagenotes
\end{document}
In the above example, memoir outputs a single back matter chapter called "Notes" which contains all the \pagenotes:
However, what I want are two separate back matter chapters, one for "comment" \pagenotes and one for "permission" \pagenotes:



\efloatseparatorto allow multiple "floats" per page. See pages 8-9 of the endfloat manual. – John Kormylo Sep 21 '23 at 17:19reledmac. But you might get away with it by using different endnotes packages for each of your needs (see https://tex.stackexchange.com/a/669532/105447 for alternatives). – gusbrs Sep 22 '23 at 10:24