I need to convert all footnotes to endnotes, but I want numbered examples internal to the notes to be numbered with lowercase roman numerals, as is standard with linguex footnotes.
The linguex document has a note which says
Such style files must be accommodated to linguex.sty by making sure that \if@noftnote is set false at the beginning of each footnote (by saying \@noftnotefalse in the modified footnote definition); otherwise you will get the arabic style of example numberings (as being used in the main text) rather than the roman numbers (being used inside footnotes).
But I'm not sure exactly how to do that.
I tried:
\usepackage{endnotes}
\makeatletter
\let\footnote=\@noftnotefalse\footnote
\makeatother
\let\footnote=\endnote
Which indeed made the numbered examples in the endnotes have lowercase roman numerals, but it also made all of the examples in the main text have lowercase roman numerals as well (and seemed to create some weirdness with the actual numerical ordering in the main text).