在正文中引用时如何使用“第一章”而不是“第 1 章” 2024-5-26 • hyperref cross-referencing chapters labels 当我引用文本中的章节时,我想使用“第一章”而不是“第一章”。当我使用\ref{ch:label}它时,它只返回章节编号,当我使用\autoref{ch:label}它时将返回“第一章”。 我该怎么做才能获得“第一章”而不是“第1章”? 答案1 \thechapter只需按要求定义: \documentclass{report} \renewcommand\thechapter{\ifcase\value{chapter}\or One\or Two\or Three\else Many\fi} \begin{document} \chapter{Aaa\label{this}} xxxx \ref{this} \end{document} 答案2 你可以用这个包轻松实现这个fmtcount功能: \documentclass{report} \usepackage{lipsum} \usepackage{fmtcount} \renewcommand{\thechapter}{\Numberstring{chapter}} \begin{document} \chapter{Aaa\label{firstlbl}} \lipsum[11] xxxx Chapter \ref{firstlbl} \end{document} 相关内容 20.04 暂停问题 - 进入不确定状态 索尼 CD 和“Rootkit 丑闻” 自动调整tmux中的窗口宽度 公式中的换行符[重复] 覆盖一堆文件名[重复] 通过远程调用命令进行本地执行 从 .local/bin/pip3 中删除 pip3 使用 ImageMagick 并排运行两个动画 音频质量极差 avfoundation & soundflower 我如何安装 zukitwo?