Skip to content

Commit 0dd73db

Browse files
committed
Bump to v4.0.0-beta.3
1 parent 6e21f03 commit 0dd73db

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.0.0-beta.3] - 2024-12-15
11+
1012
### Added
1113

1214
- 新增“插图和附表清单” `\listoffiguresandtables`(研究生院 2024-12-05 Word 模板修改)。
@@ -346,7 +348,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
346348
- 优化图注、算法的行距。
347349
- 二级以下节标题编号下采用“1.”、“(1)”、“①”。
348350

349-
[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.2...HEAD
351+
[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.3...HEAD
352+
[4.0.0-beta.3]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.2...v4.0.0-beta.3
350353
[4.0.0-beta.2]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.1...v4.0.0-beta.2
351354
[4.0.0-beta.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.5...v4.0.0-beta.1
352355
[3.3.5]: https://github.com/ustctug/ustcthesis/compare/v3.3.4...v3.3.5

build.lua

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ checkengines = {"xetex"}
1414
stdengine = "xetex"
1515

1616
checkconfigs = {
17-
"build",
18-
"test/config-crossref",
19-
"test/config-nomencl",
20-
"test/config-bibtex",
21-
"test/config-biblatex",
17+
"build",
18+
"test/config-crossref",
19+
"test/config-nomencl",
20+
"test/config-bibtex",
21+
"test/config-biblatex",
2222
}
2323

2424
typesetexe = "xelatex"
@@ -35,30 +35,31 @@ function update_tag(file, content, tagname, tagdate)
3535
local date = string.gsub(tagdate, "%-", "/")
3636

3737
content = string.gsub(content,
38-
"Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
39-
"Copyright (C) %1-" .. os.date("%Y"))
38+
"Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
39+
"Copyright (C) %1-" .. os.date("%Y"))
4040

4141
if string.match(file, "%.cls$") then
42-
content = string.gsub(content, "\\newcommand\\ustcthesisversion{[0-9.]+",
42+
content = string.gsub(content, "\\newcommand\\ustcthesisversion{[0-9a-z.-]+",
4343
"\\newcommand\\ustcthesisversion{" .. tagname)
4444

4545
content = string.gsub(content, "\\ProvidesClass{ustcthesis}%[%d%d%d%d/%d%d/%d%d",
4646
"\\ProvidesClass{ustcthesis}[" .. date)
4747

4848
elseif string.match(file, "%-doc.tex") then
49-
content = string.gsub(content, "v[0-9.]+\\qquad %d%d%d%d%-%d%d%-%d%d",
49+
content = string.gsub(content, "v[0-9a-z.-]+\\qquad %d%d%d%d%-%d%d%-%d%d",
5050
"v" .. tagname .. "\\qquad " .. tagdate)
5151

5252
elseif string.match(file, "CHANGELOG.md") then
53-
local previous = string.match(content, "/compare/v(.*)%.%.%.HEAD")
53+
local previous = string.match(content, "/compare/v([0-9a-z.-]+)%.%.%.HEAD")
5454
if tagname == previous then return content end
5555
content = string.gsub(content,
5656
"## %[Unreleased%]",
57-
"## [Unreleased]\n\n## [" .. tagname .."] - " .. tagdate)
57+
"## [Unreleased]\n\n## [" .. tagname .. "] - " .. tagdate)
58+
5859
content = string.gsub(content,
59-
previous .. "%.%.%.HEAD",
60+
previous:gsub("%.", "%%."):gsub("%-", "%%-") .. "%.%.%.HEAD",
6061
tagname .. "...HEAD\n[" .. tagname .. "]: " .. url .. "/compare/v"
61-
.. previous .. "...v" .. tagname)
62+
.. previous .. "...v" .. tagname)
6263
end
6364
return content
6465
end

ustcthesis-doc.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
\title{\cls{ustcthesis} 使用说明}
114114
\author{Zeping Lee\thanks{zepinglee AT gmail.com} \and
115115
seisman\thanks{seisman.info AT gmail.com} }
116-
\date{v4.0.0-beta.2\qquad 2024-11-18}
116+
\date{v4.0.0-beta.3\qquad 2024-12-15}
117117
\maketitle
118118

119119

ustcthesis.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
%
1212

1313
\NeedsTeXFormat{LaTeX2e}[2017/04/15]
14-
\newcommand\ustcthesisversion{4.0.0-beta.2}
15-
\ProvidesClass{ustcthesis}[2024/11/18 v\ustcthesisversion\space USTC thesis template]
14+
\newcommand\ustcthesisversion{4.0.0-beta.3}
15+
\ProvidesClass{ustcthesis}[2024/12/15 v\ustcthesisversion\space USTC thesis template]
1616

1717
% 报错和警告
1818
\newcommand\ustc@error[1]{%

0 commit comments

Comments
 (0)