\documentclass[a4paper,12pt,dvipsnames*]{report}
\input{inputs/preamble}
\title{
Hacking the use of the \texttt{enotez} package
}
\author{
{Óscar Pereira}\footnote{\texttt{\{https://, oscar@\}randomwalk.eu}.}
}
\date{November 2022}
% Uncomment on final version, to transform footnotes in starred chapters (if
% any), into properly processed endnotes. See
% https://randomwalk.eu/LaTeX/enotez-cum-appendices-and-starred-chapters.
\let\fn\nn
% --- END PREAMBLE ---
\begin{document}
\maketitle
\tableofcontents
\chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
\label{cha:acks}
Some text.\fn{And an endnote for acknowledgements.}
\chapter*{Foreword}
\addcontentsline{toc}{chapter}{Foreword}
\label{cha:foreword}
Some text.\fn{And an endnote for foreword.}
\chapter{Introduction}
\label{cha:intro}
Some text.\fn{And an endnote for the introduction.}
\chapter{Middle Chapter}
\label{cha:middle}
Some text.\nn{And an endnote for middle chapter.}
\chapter{Conclusion}
\label{cha:conclusion}
Some text.\nn{And an endnote for the concluding chapter.}
\chapter*{Epilogue}
\addcontentsline{toc}{chapter}{Epilogue}
\label{cha:epilogue}
Some text.\fn{And an endnote for epilogue.}
\chapter*{Post Scriptum}
\addcontentsline{toc}{chapter}{Post Scriptum}
\label{cha:postscriptum}
Some text.\fn{And an endnote for post scriptum.}
\appendix
\chapter{First Annex}
Some text.\nn{And an endnote for the First Annex.}
\chapter{Second Annex}
Some text.\nn{And an endnote for the Second Annex.}
\clearpage
\phantomsection
\printendnotes
\end{document}
% vim: spell spelllang=en