polyglossia の \greeknumeral を endnotes パッケージで使用する

polyglossia の \greeknumeral を endnotes パッケージで使用する

ギリシャ数字で文末脚注に番号を付けたいです。これを実行するには、polyglossiaパッケージをロードし、そのコマンドをラップするコマンドを作成しました\greeknumeral

これは脚注では望みどおりに機能しますが、文末脚注では不可解なほど非協力的です。具体的には、XeLaTeX は が定義と一致しない方法で使用されていると警告します。ただし、私はこのコマンドのバージョンをまったく\@xendnote使用していないため、 sの何が使用目的に該当するのかはわかりません。\endnote[num]{text}\greeknumeral\@xendnote

何が間違っているのかについてのヒントや、ギリシャ数字でエンドノートを機能させる方法についての提案があれば、ぜひ教えてください。私の最小限の(機能しない)例を以下に示します。

%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{endnotes,polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{greek}
\newfontfamily{\greekfont}[Script=Greek]{CMU Serif}

\renewcommand\thefootnote{\greek{footnote}}%greek numerals - works fine  
\renewcommand\theendnote{\greek{endnote}}%greek numerals - doesn't work

\makeatletter
\def\greek#1{\expandafter\@greek\csname c@#1\endcsname} %in analogy with \roman
\def\@greek#1{\greekfont\greeknumeral #1}
\makeatother

\begin{document}
Lorem ipsum dolor sit amet,\endnote{en1}...
\theendnotes
\end{document}

関連情報