각주 기호 변경 \ref

각주 기호 변경 \ref

저는 XeLaTex와 Memoir 클래스를 사용하고 있습니다. 각주 기호를 다음과 같이 재정의했습니다.

\renewcommand{\thefootnote}{{\ding{\numexpr171+\value{footnote}}}}

그러나 각주에 레이블을 넣으면 \ref 번호가 깨집니다. 아래 MWE를 참조하세요. "1페이지 각주 2 참조" 대신 "1페이지 각주 1 참조"라고 표시되어야 합니다. perpage 패키지와 옵션도 사용하고 있는데, 유무에 관계없이 오류가 발생합니다.

올바른 방법은 무엇입니까? 도움을 주시면 감사하겠습니다.

\documentclass[11pt]{memoir}
\usepackage{pifont} %Need circled numbers for Chinese style footnote 
\usepackage{perpage} %Renumber footnote on each new page
\usepackage{layouts} %To check page layout

%%% Book Layout %%%
\setstocksize{5in}{4in}
\settrimmedsize{5in}{4in}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{3in}{3in}{*}
\setulmargins{1in}{*}{*}
\setlrmargins{0.5in}{*}{*}
\setmarginnotes{0pt}{0pt}{0pt}
\checkandfixthelayout

%%% Footnote rule %%%
\MakePerPage{footnote}
\renewcommand{\thefootnote}{{\ding{\numexpr171+\value{footnote}}}}

\begin{document}

This is the first line\footnote{This is the first footnote.\label{ftn:first}}.

This is the second line\footnote{See page \pageref{ftn:first} footnote \ref{ftn:first}.}.

\end{document} 

여기에 이미지 설명을 입력하세요

답변1

\makeatletter
\newcommand{\@fnding}[1]{\ding{\number\numexpr#1+171\relax}}
\newcommand{\fnding}[1]{\expandafter\@fnding\csname c@#1\endcsname}
\makeatother
\renewcommand{\thefootnote}{\fnding{footnote}}

관련 정보