脚注記号の改行を変更する \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}}

関連情報