Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
0586e046
Commit
0586e046
authored
1 year ago
by
atXY
Browse files
Options
Downloads
Patches
Plain Diff
fix: 修复定理类环境在共享计数器时的 cleveref 引用名问题 (#234)
- 跟进 2024 届本科毕业论文规定
parent
6ced18af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+12
-1
12 additions, 1 deletion
CHANGELOG.md
README-CTAN.md
+1
-1
1 addition, 1 deletion
README-CTAN.md
docs/njuthesis-setup.def
+2
-2
2 additions, 2 deletions
docs/njuthesis-setup.def
source/njuthesis.dtx
+23
-25
23 additions, 25 deletions
source/njuthesis.dtx
with
38 additions
and
29 deletions
CHANGELOG.md
+
12
−
1
View file @
0586e046
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
README-CTAN.md
+
1
−
1
View file @
0586e046
...
...
@@ -46,4 +46,4 @@ version.
-----
Copyright (C) 2021 - 202
3
by NJU LUG.
Copyright (C) 2021 - 202
4
by NJU LUG.
This diff is collapsed.
Click to expand it.
docs/njuthesis-setup.def
+
2
−
2
View file @
0586e046
...
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.
source/njuthesis.dtx
+
23
−
25
View file @
0586e046
...
...
@@ -2,7 +2,7 @@
% !TeX program = XeLaTeX
% !TeX encoding = UTF-8
%
% Copyright (C) 2021 - 202
3
% Copyright (C) 2021 - 202
4
% by Nanjing University Linux User Group
% <git+nju-lug-email-3104-issue-@yaoge123.cn>
%
...
...
@@ -49,7 +49,7 @@
\preamble
Copyright (C) 2021 - 202
3
Copyright (C) 2021 - 202
4
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 模板。
%
% 本模板使用的本科生毕业论文模板格式依据
% 《关于启动南京大学202
3
届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-202
3
},
% 《关于启动南京大学202
4
届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-202
4
},
% 研究生学位论文格式依据研究生院提供的材料包\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-202
3
}
% \bibitem{nju-bachelor-202
4
}
% 南京大学本科生院.
% \newblock \textit{关于启动南京大学202
2
届本科毕业论文(设计)工作的通知} [EB/OL].
% \newblock (202
2
-12-19)
% \urlprefix\url{https://jw.nju.edu.cn/
29/d8
/c26263a6
00536
/page.htm}
% \newblock \textit{关于启动南京大学202
4
届本科毕业论文(设计)工作的通知} [EB/OL].
% \newblock (202
3
-12-19)
% \urlprefix\url{https://jw.nju.edu.cn/
db/23
/c26263a6
45923
/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}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment