Skip to content

Commit

Permalink
Bump to v3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed May 16, 2022
1 parent 1ab50de commit bb27361
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
23 changes: 13 additions & 10 deletions 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]

## [3.3.3] - 2022-05-17

### Added

- 新增选项 `reviewer` 选择是否在声明页显示“评审专家签名”([#334](https://github.com/ustctug/ustcthesis/issues/334))。
Expand All @@ -22,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 消除本科生封面的 overfull box 警告([#345](https://github.com/ustctug/ustcthesis/issues/345))。
- 修正本科生的关键词分隔符为“、”和“, ”([#354](https://github.com/ustctug/ustcthesis/issues/354))。

## [v3.3.2] - 2022-03-25
## [3.3.2] - 2022-03-25

### Added

Expand All @@ -42,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- 修复了载入 `natbib` 前设置 `cite-style` 无效的问题([#327](https://github.com/ustctug/ustcthesis/issues/327))。

## [v3.3.1] - 2021-12-10
## [3.3.1] - 2021-12-10

### Changed

Expand All @@ -69,7 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- 去掉了 `siunitx``inter-unit-product` 设置。

## [v3.3.0] - 2021-03-18
## [3.3.0] - 2021-03-18

### Added

Expand All @@ -92,7 +94,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 修正参考文献中期刊的页码前的空格([#264](https://github.com/ustctug/ustcthesis/issues/264))。


## [v3.2.1] - 2020-04-03
## [3.2.1] - 2020-04-03

### Added

Expand Down Expand Up @@ -295,12 +297,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 优化图注、算法的行距。
- 二级以下节标题编号下采用“1.”、“(1)”、“①”。

[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v3.3.2...HEAD
[v3.3.2]: https://github.com/ustctug/ustcthesis/compare/v3.3.1...v3.3.2
[v3.3.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.0...v3.3.1
[v3.3.0]: https://github.com/ustctug/ustcthesis/compare/v3.2.1...v3.3.0
[v3.2.1]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.2.1
[3.1.06]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.1.06
[Unreleased]: https://github.com/ustctug/ustcthesis/compare/v3.3.3...HEAD
[3.3.3]: https://github.com/ustctug/ustcthesis/compare/v3.3.2...v3.3.3
[3.3.2]: https://github.com/ustctug/ustcthesis/compare/v3.3.1...v3.3.2
[3.3.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.0...v3.3.1
[3.3.0]: https://github.com/ustctug/ustcthesis/compare/v3.2.1...v3.3.0
[3.2.1]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.2.1
[3.2]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.1.06
[3.1.06]: https://github.com/ustctug/ustcthesis/compare/v3.1.05...v3.1.06
[3.1.05]: https://github.com/ustctug/ustcthesis/compare/v3.1.04...v3.1.05
[3.1.04]: https://github.com/ustctug/ustcthesis/compare/v3.1.03...v3.1.04
Expand Down
25 changes: 10 additions & 15 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,32 @@ typesetopts = "-file-line-error -halt-on-error -interaction=nonstopmode"
lvtext = ".tex"

function update_tag(file, content, tagname, tagdate)
tagname = string.gsub(tagname, "^v", "")
local url = "https://github.com/ustctug/ustcthesis"
local date = string.gsub(tagdate, "%-", "/")

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

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

elseif string.match(file, "%-doc.tex") then
if string.match(content, "\\date{v[0-9.]+\\qquad %d%d%d%d%-%d%d%-%d%d}") then
content = string.gsub(content, "v[0-9.]+\\qquad %d%d%d%d%-%d%d%-%d%d",
tagname .. "\\qquad " .. tagdate)
end
content = string.gsub(content, "v[0-9.]+\\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/(.*)%.%.%.HEAD")

local previous = string.match(content, "/compare/v(.*)%.%.%.HEAD")
print(previous)
if tagname == previous then return content end
content = string.gsub(content,
"## %[Unreleased%]",
"## [Unreleased]\n\n## [" .. tagname .."] - " .. tagdate)
content = string.gsub(content,
previous .. "%.%.%.HEAD",
tagname .. "...HEAD\n[" .. tagname .. "]: " .. url .. "/compare/"
.. previous .. "..." .. tagname)
tagname .. "...HEAD\n[" .. tagname .. "]: " .. url .. "/compare/v"
.. previous .. "...v" .. tagname)
end
return content
end
4 changes: 2 additions & 2 deletions ustcsetup.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
% !TeX root = ./main.tex

\ustcsetup{
title = {中国科学技术大学\\学位论文模板示例文档 \ustcthesisversion},
title = {中国科学技术大学\\学位论文模板示例文档 v\ustcthesisversion},
title* = {An example of thesis template for University of Science
and Technology of China \ustcthesisversion},
and Technology of China v\ustcthesisversion},
author = {李泽平},
author* = {Li Zeping},
speciality = {数学与应用数学},
Expand Down
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{v3.3.2\qquad 2022-03-25}
\date{v3.3.3\qquad 2022-05-17}
\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{v3.3.2}
\ProvidesClass{ustcthesis}[2022/03/25 {\ustcthesisversion} USTC thesis template]
\newcommand\ustcthesisversion{3.3.3}
\ProvidesClass{ustcthesis}[2022/05/17 {\ustcthesisversion} USTC thesis template]

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

0 comments on commit bb27361

Please sign in to comment.