2

I am using the enotez package and would like to be able to call \printendnotes regardless of if there are actually any endnotes. In the case that there are no endnotes I would either like the \AtEveryEndnotesList hook to not be evaluated or a way to add content to the hook that would only be used conditionally on there being any endnotes. I would also like to avoid printing the section title in the case of no notes.

\documentclass{article}
\usepackage{enotez}
\AtEveryEndnotesList{I do not want to see this}
\begin{document}
\printendnotes
\end{document}
StrongBad
  • 20,495

0 Answers0