eplain provides a macro \numberedfootnote which, as might be inferred from the name, produces a raised number followed by the footnote text with the number increasing by one each time it is called.
\numberedfootnote is defined in eplain.tex at line 2997 as:
\def\numberedfootnote{%
\global\advance\footnotenumber by 1
\@eplainfootnote{$^{\number\footnotenumber}$}%
}%
I would like to be able to, on a document by document basis, control how the number is displayed. For example, because I usually use XeTeX, I might use the font's built-in superscript rather than switch into maths mode and so change:
$^{\number\footnotenumber}$
to
\sup \number\footnotenumber
or switch from \number to \romannumeral.
I simply do not understand the interactions of the macros in eplain to understand how I might be able to change this within a document. For example, if I try adding:
\def\numberedfootnote{%
\global\advance\footnotenumber by 1
\@eplainfootnote{ \romannumeral\footnotenumber}%
}%
The command is ignored as it is if I try \global\def. I therefore wondered if I needed something like \xdef but that simply gives me the warning:
Undefined control sequence.
l.36 \@
eplainfootnote{ \romannumeral\footnotenumber}%
?
Is there a simple command I could use to redefine this macro from within a document?