使用下面包含的 MWE 中的memoir
类和cleveref
包,我希望在声明\section
后标记的分区名称与\appendix
之前的名称相同:“section”。尽管如此,我得到的却是“appendix”。欢迎提供任何有关如何获得所需行为的提示。
\documentclass{memoir}
\usepackage{cleveref}
\begin{document}
\chapter{First Chap.}\label{firstch}
This is some intro with a reference to \cref{firstch}.
\section{First Chap. Section}\label{firstchapsec}
And now a reference to \cref{firstchapsec}. This is fine; I want the name "section".
\appendix
\chapter{First App.}\label{firstapp}
This is the app. with a reference to \cref{firstapp}.
\section{First App. Section}\label{firstappsec}
And now a reference to \cref{firstappsec}. I want to have "section" instead of "appendix".
\end{document}
答案1
要从 更改为appendix A.1
,section A.1
您可以在文档的序言中使用以下行:
\crefname{subappendix}{section}{sections}
类似地,您也可以使用以下行将更改appendix A
为chapter A
和appendix A.1.1
更改为:subsection A.1.1
\crefname{appendix}{chapter}{chapters}
\crefname{subsubappendix}{subsection}{subsections}