![脚注記号の改行を変更する \ref](https://rvso.com/image/370285/%E8%84%9A%E6%B3%A8%E8%A8%98%E5%8F%B7%E3%81%AE%E6%94%B9%E8%A1%8C%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%20%5Cref.png)
私は 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}}