如何更改 \ref 的默认输出

如何更改 \ref 的默认输出

这是我的工作的一个最小示例:

\documentclass[12pt,oneside,openany,openbib]{book} 
\usepackage[total={5in, 8in}]{geometry} 
\usepackage{xeCJK}
\usepackage[ruled]{bigfoot}
\usepackage{tabularx}
\newcounter{footalt}
\def\thefootalt{\fnsymbol{footalt}}
\usepackage[hang]{footmisc}  
\renewcommand {\thefootnote}{\alph{footnote}}
\MakeSortedPerPage{footnote}
\DeclareNewFootnote{A}[arabic]
\DeclareNewFootnote[para]{B}[alph]
\DeclareNewFootnote[para]{C}[roman]
\DeclareNewFootnote[para]{D}[Alph]
\DeclareNewFootnote[para]{E}[Roman]
\DeclareNewFootnote[para]{F}[fnsymbol]
\MakeSortedPerPage{footnoteB}
\MakeSortedPerPage{footnoteC}
\MakeSortedPerPage{footnoteD}
\MakeSortedPerPage{footnoteE}
\MakeSortedPerPage{footnoteF}

\setlength{\footnotemargin}{5mm}
\usepackage{endnotes,chngcntr}
\let\footnote=\endnote

\makeatletter         %<-- these lines add the page numbering
\long\def\@endnotetext#1{%
    \if@enotesopen \else \@openenotes \fi
    \immediate\write\@enotes{\@doanenote{\ [pg \thepage] \@theenmark}}
    %\immediate\write\@enotes{\@doanenote{\@theenmark}}
    \begingroup
    \def\next{#1}
    \newlinechar='40
    \immediate\write\@enotes{\meaning\next}%
    \endgroup
    \immediate\write\@enotes{\@endanenote}}
\makeatother

\renewcommand{\notesname}{Footnotes of Chapter \thechapter} %<-- this is for the title of the footnotes at the end of the chapter
\counterwithin*{endnote}{chapter} %<-- this restarts the numbering of the footnotes for each chapter, requires the package "chngcntr"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

    \mainmatter
    \part{part 1}
    \chapter{chapter 1}

    Testing FFFF\footnote{\label{001}footnote 1 ootnote 1\footnoteB{footnote 2\footnoteC{footnote 3\footnoteD{footnote 4 footnote 4 footnote 4 footnote 4 } footnote 3 footnote 3 footnote 3 } footnote 2 footnote 2 } footnote 1 ootnote 1 ootnote 1 } Testing Testing Testing Testing Testing Testing Testing ``Cf. \ref{001}" Testing 
\newpage
\begingroup
\parindent 0pt
\parskip 2ex
\def\enotesize{\normalsize}
\theendnotes %<---- this prints all the footnotes together
\endgroup


\end{document}

在本工作中,我[pg \thepage]为每个章节的脚注添加了新的脚注标记形式,结果如下:

在此处输入图片描述

但从此以后,当我使用 \ref 将标签添加到脚注时,添加的信息会相应显示。显示如下:

在此处输入图片描述

有什么方法可以让我忽略使用 \ref 时添加的新信息?

相关内容