Skip to content
Snippets Groups Projects
Commit 0586e046 authored by atXY's avatar atXY
Browse files

fix: 修复定理类环境在共享计数器时的 cleveref 引用名问题 (#234)

- 跟进 2024 届本科毕业论文规定
parent 6ced18af
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,19 @@
## [未发布]
### 新增
- 增加 `macoffice` 字体配置 - [#164],[#169]
- 感谢 [@liudongmiao]!
### 修复
- 修复定理类环境在共享计数器时的 `cleveref` 引用名问题 - [#234]
### 杂项
- 跟进 2024 届本科毕业论文规定
## [1.3.2] - 2023-12-05
### 变动
......@@ -101,7 +111,7 @@
### 杂项
- 跟进 2023 本科毕业论文规定
- 跟进 2023 本科毕业论文规定
- 跟进新版南大 TeX 网站
## [1.1.1] - 2022-12-04
......@@ -617,6 +627,7 @@
[#229]: https://github.com/nju-lug/NJUThesis/discussions/229
[#230]: https://github.com/nju-lug/NJUThesis/issues/230
[#232]: https://github.com/nju-lug/NJUThesis/issues/232
[#234]: https://github.com/nju-lug/NJUThesis/issues/234
[CTeX-org/ctex-kit#678]: https://github.com/CTeX-org/ctex-kit/pull/678
......
......@@ -46,4 +46,4 @@ version.
-----
Copyright (C) 2021 - 2023 by NJU LUG.
Copyright (C) 2021 - 2024 by NJU LUG.
......@@ -174,7 +174,7 @@
% abstract 类用于设置摘要样式
\njusetup[abstract]{
% toc-entry = false,
toc-entry = false,
% 摘要是否显示在目录条目中
%
% underline = false,
......@@ -186,7 +186,7 @@
% 目录自身是否显示在目录条目中
\njusetup{
% tableofcontents/toc-entry = false,
tableofcontents/toc-entry = false,
% 关闭本项相当于同时关闭三个选项
%
% listoffigures/toc-entry = false,
......
......@@ -2,7 +2,7 @@
% !TeX program = XeLaTeX
% !TeX encoding = UTF-8
%
% Copyright (C) 2021 - 2023
% Copyright (C) 2021 - 2024
% by Nanjing University Linux User Group
% <git+nju-lug-email-3104-issue-@yaoge123.cn>
%
......@@ -49,7 +49,7 @@
\preamble
Copyright (C) 2021 - 2023
Copyright (C) 2021 - 2024
by Nanjing University Linux User Group
<git+nju-lug-email-3104-issue-@yaoge123.cn>
......@@ -232,7 +232,7 @@ To produce the documentation run the original source files ending with
% 用户组维护的,用于处理本校学生毕业论文排版需求的 \LaTeX 模板。
%
% 本模板使用的本科生毕业论文模板格式依据
% 《关于启动南京大学2023届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-2023},
% 《关于启动南京大学2024届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-2024},
% 研究生学位论文格式依据研究生院提供的材料包\cite{nju-graduate-2023}。
% 博士后出站报告格式要求与博士学位论文一致\cite{nju-postdoc-2022},
% 封面、摘要的设计参考了部分既有报告。
......@@ -2406,11 +2406,11 @@ To produce the documentation run the original source files ending with
% \newblock \textit{信息与文献\quad 参考文献著录规则: GB/T 7714--2015} [S].
% \newblock 北京: 中国标准出版社, 2015
%
% \bibitem{nju-bachelor-2023}
% \bibitem{nju-bachelor-2024}
% 南京大学本科生院.
% \newblock \textit{关于启动南京大学2022届本科毕业论文(设计)工作的通知} [EB/OL].
% \newblock (2022-12-19)
% \urlprefix\url{https://jw.nju.edu.cn/29/d8/c26263a600536/page.htm}
% \newblock \textit{关于启动南京大学2024届本科毕业论文(设计)工作的通知} [EB/OL].
% \newblock (2023-12-19)
% \urlprefix\url{https://jw.nju.edu.cn/db/23/c26263a645923/page.htm}
%
% \bibitem{nju-graduate-2023}
% 南京大学研究生院.
......@@ -4235,10 +4235,14 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% 隐藏 |does not contain script "CJK"| 警告。
% \begin{macrocode}
{ quiet } { xeCJK },
% { quiet } { xeCJK },
{ no-math } { fontspec },
{ perpage } { footmisc },
{ capitalise, nameinlink, noabbrev } { cleveref }
{ capitalise, nameinlink, noabbrev } { cleveref },
% \end{macrocode}
% \pkg{ntheorem} 依赖 \pkg{amsthm} 和 \pkg{thmmarks} 实现 QED 符号等功能。
% \begin{macrocode}
{ amsmath, thmmarks, noconfig } { ntheorem }
}
{ \PassOptionsToPackage #1 }
% \end{macrocode}
......@@ -4296,23 +4300,18 @@ To produce the documentation run the original source files ending with
booktabs,
caption,
graphicx,
}
\@@_loadpkg_nthm:
% \end{macrocode}
% 按以下顺序加载两个关于引用的包。
% \pkg{hyperref} 覆写了大量命令,因此需要在其他包最后载入。
% 仅有 \pkg{cleveref} 需要在 \pkg{hyperref} 后载入,否则会报错。
% \begin{macrocode}
hyperref
}
\@@_loadpkg_cref:
\RequirePackage { hyperref }
% \end{macrocode}
%
% \pkg{ntheorem} 依赖 \pkg{amsthm} 和 \pkg{thmmarks} 实现 QED 符号等功能。
% \changes{v1.3}{2024/01/16}{调整 \pkg{cleveref} 到 \pkg{ntheorem} 后载入。}
% \pkg{cleveref} 需要在 \pkg{ntheorem} 和 \pkg{hyperref} 后载入。
% \begin{macrocode}
\bool_if:NT \g_@@_opt_load_nthm_bool
{
\PassOptionsToPackage { amsmath, thmmarks, noconfig } { ntheorem }
\RequirePackage { ntheorem }
}
\@@_loadpkg_cref:
% \end{macrocode}
%
% 在双面模式下,使用 \pkg{emptypage} 清除空白页的页眉、页脚和页码。
......@@ -5465,10 +5464,9 @@ To produce the documentation run the original source files ending with
% \begin{macro}{\@@_bookmark_pdf_nosec:nn,\@@_bookmark_pdf:nn}
% 封装 \pkg{hyperref} 的 PDF 书签命令。
% \begin{macrocode}
\cs_new:Npn \@@_bookmark_pdf_nosec:nn #1#2
{ \pdfbookmark [0] {#1} {#2} }
\cs_new:Npn \@@_bookmark_pdf:nn #1#2
{ \phantomsection \@@_bookmark_pdf_nosec:nn {#1} {#2} }
\cs_new:Npn \@@_bookmark_pdf_nosec:nn { \pdfbookmark [0] }
\cs_new:Npn \@@_bookmark_pdf:nn
{ \phantomsection \@@_bookmark_pdf_nosec:nn }
% \end{macrocode}
% \end{macro}
%
......@@ -5833,7 +5831,7 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% 修改 \pkg{cleveref} 的标签名称。
% \begin{macrocode}
\clist_map_inline:nn { figure, table, appendix, proof }
\clist_map_inline:nn { figure, table, appendix }
{ \@@_cref_name:n {#1} }
}
% \end{macrocode}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment