I'm trying to setup my article with notes such that:
- Notes are not shown at the bottom of the page
- Notes are shown at the end of the article (no need to show them after each section or so)
- I can refer multiple times to the same note
This is typical code:
Some text\footnote{\label{l1}First footnote}
bla bla\footnote{other footnote} bla bla blaaaa, bla bla\cref{l1}
The \cref should create a superscript number that is the same as the number created for the first \footnote.
For the first two points, I was using the endnotes package, like this:
\usepackage{endnotes}
\let\footnote=\endnote
...
\theendnotes
And for the last point, I use cleveref, like this:
\usepackage{cleveref}
\crefformat{footnote}{#2\footnotemark[#1]#3}
However, while it does work separately, it doesn't work together, I'm getting these warnings:
LaTeX Warning: cref reference format for label type `' undefined on input line ...
And instead of displaying the right number, \cref puts '??'.
Whether I load cleveref before endnotes or the other way around (cleveref suggests I should load it later, as endnotes doesn't specifically support cleveref) doesn't matter.
Is there any way I can make them work together, or is there an other way to achieve my goal?
