-
-
Notifications
You must be signed in to change notification settings - Fork 144
Description
欢迎您对Yet Another LaTeX Template for NPU Thesis提出建议,非常感谢您对本项目的贡献!
在留下您的建议时,辛苦您同步提供如下信息:
- 代码版本(Code version)(留空则默认最新):
- 操作系统 (OS):Windows
- Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):Texlive 2022版
- Tex 编译器 (Tex compiler, eg. XeTeX): XeTeX
你的建议是否和一个已知问题有关 (Is your feature request related to a problem? Please describe.)
简洁、精准的概括您的问题(A clear and concise description of what the problem is. Ex. I'm always frustrated when [...])
我在写论文时存在引用章节的需要,例如“结合第2章对应内容”。在使用\autoref时(章节命名随意编写),有以下代码:
结合\autoref{chapter:xxxx}对应内容
编译后显示:
结合chapter2对应内容
在我印象里中文论文中引用时正常应该写成类似“第2章”这种格式?
告诉我们你想要的解决方案(Describe the solution you'd like)
简介而精准的告诉我们你想要怎么样 (A clear and concise description of what you want to happen.)
如上,我猜应该变成类似“第2章”这种形式?
目前我的解决方法是在.cls文件中对应位置新增一行即可。原定义位置:
\def\equationautorefname#1#2\null{式#1(#2\null)} %
\def\sectionautorefname#1#2\null{#2\null{ }节} %
\def\subsectionautorefname#1#2\null{#2\null{ }小节} %
新增一行后:
\def\equationautorefname#1#2\null{式#1(#2\null)} %
\def\chapterautorefname#1\null{第#1\null{ }章} %
\def\sectionautorefname#1#2\null{#2\null{ }节} %
\def\subsectionautorefname#1#2\null{#2\null{ }小节} %
告诉我们你想到的其他替代方案(Describe alternatives you've considered)
简介而精准的告诉我们其他替代方案 (A clear and concise description of any alternative solutions or features you've considered.)
暂无,或者使用者避免在此处使用\autoref而使用\ref
其他信息(Additional context)
添加有关这个建议的其他信息,例如截图(Add any other context or screenshots about the feature request here.)
无