From 0dd73db60012de04479e82606fb0753cc31c67d8 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Mon, 16 Dec 2024 00:00:33 +0800 Subject: [PATCH] Bump to v4.0.0-beta.3 --- CHANGELOG.md | 5 ++++- build.lua | 27 ++++++++++++++------------- ustcthesis-doc.tex | 2 +- ustcthesis.cls | 4 ++-- 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3db50bd..e898073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 模板修改)。 @@ -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 diff --git a/build.lua b/build.lua index d04c28b..1ec87a3 100644 --- a/build.lua +++ b/build.lua @@ -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" @@ -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 diff --git a/ustcthesis-doc.tex b/ustcthesis-doc.tex index 336d702..1fed46a 100644 --- a/ustcthesis-doc.tex +++ b/ustcthesis-doc.tex @@ -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 diff --git a/ustcthesis.cls b/ustcthesis.cls index 6cb7bb8..2f41dc1 100644 --- a/ustcthesis.cls +++ b/ustcthesis.cls @@ -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]{%