미주 패키지와 함께 폴리글로시아의 \greeknumeral 사용

미주 패키지와 함께 폴리글로시아의 \greeknumeral 사용

미주에 그리스 숫자로 번호를 매기고 싶습니다. 이를 위해 polyglossia패키지를 로드하고 해당 명령을 둘러싸는 명령을 만들었습니다 \greeknumeral.

나는 이 모든 것이 각주에서는 원하는 대로 정확하게 작동하지만 미주에서는 당황스러울 정도로 비협조적이라는 것을 발견했습니다. 특히 XeLaTeX는 \@xendnote해당 정의와 일치하지 않는 방식으로 사용된다고 불평합니다. 그러나 나는 \endnote[num]{text}명령 버전을 전혀 사용하지 않기 때문에 \greeknumerals가 어떤 용도 로 \@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}

관련 정보