Skip to content

Commit

Permalink
Bump to v4.0.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Dec 15, 2024
1 parent 6e21f03 commit 0dd73db
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.0-beta.3] - 2024-12-15

### Added

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

[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.2...HEAD
[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.3...HEAD
[4.0.0-beta.3]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.2...v4.0.0-beta.3
[4.0.0-beta.2]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.1...v4.0.0-beta.2
[4.0.0-beta.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.5...v4.0.0-beta.1
[3.3.5]: https://github.com/ustctug/ustcthesis/compare/v3.3.4...v3.3.5
Expand Down
27 changes: 14 additions & 13 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ checkengines = {"xetex"}
stdengine = "xetex"

checkconfigs = {
"build",
"test/config-crossref",
"test/config-nomencl",
"test/config-bibtex",
"test/config-biblatex",
"build",
"test/config-crossref",
"test/config-nomencl",
"test/config-bibtex",
"test/config-biblatex",
}

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

content = string.gsub(content,
"Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
"Copyright (C) %1-" .. os.date("%Y"))
"Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
"Copyright (C) %1-" .. os.date("%Y"))

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

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

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

elseif string.match(file, "CHANGELOG.md") then
local previous = string.match(content, "/compare/v(.*)%.%.%.HEAD")
local previous = string.match(content, "/compare/v([0-9a-z.-]+)%.%.%.HEAD")
if tagname == previous then return content end
content = string.gsub(content,
"## %[Unreleased%]",
"## [Unreleased]\n\n## [" .. tagname .."] - " .. tagdate)
"## [Unreleased]\n\n## [" .. tagname .. "] - " .. tagdate)

content = string.gsub(content,
previous .. "%.%.%.HEAD",
previous:gsub("%.", "%%."):gsub("%-", "%%-") .. "%.%.%.HEAD",
tagname .. "...HEAD\n[" .. tagname .. "]: " .. url .. "/compare/v"
.. previous .. "...v" .. tagname)
.. previous .. "...v" .. tagname)
end
return content
end
2 changes: 1 addition & 1 deletion ustcthesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
\title{\cls{ustcthesis} 使用说明}
\author{Zeping Lee\thanks{zepinglee AT gmail.com} \and
seisman\thanks{seisman.info AT gmail.com} }
\date{v4.0.0-beta.2\qquad 2024-11-18}
\date{v4.0.0-beta.3\qquad 2024-12-15}
\maketitle


Expand Down
4 changes: 2 additions & 2 deletions ustcthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
%

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

% 报错和警告
\newcommand\ustc@error[1]{%
Expand Down

0 comments on commit 0dd73db

Please sign in to comment.