File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed
Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ Changelog 维护应保持最新版本在文件上面的原则,日期格式按
2929- 预发布版本使用形如 "` [1.0.2-rc.1] - 2021-06-11 ` " 作为二级标题,
3030- 正式发布版本使用形如 "` [1.0.1] - 2020-07-25 ` " 作为二级标题。
3131
32+ ## [ 1.3.6] - 2021-11-01
33+
34+ ### Changed
35+ - 更新注释
36+ - 更新文档
37+ - 更新封面和题名页
38+
3239## [ 1.3.5] - 2021-10-31
3340
3441### Changed
Original file line number Diff line number Diff line change 1717%
1818% \iffalse
1919% <*driver>
20- \ProvidesFile {sustechthesis.dtx}[2021/10/31 1.3.5 Southern University of Science and Technology Thesis Template]
20+ \ProvidesFile {sustechthesis.dtx}[2021/11/01 1.3.6 Southern University of Science and Technology Thesis Template]
2121\documentclass {ltxdoc }
2222\usepackage {dtx-style }
2323\EnableCrossrefs
961961% \begin{macrocode}
962962% <cls>\NeedsTeXFormat{LaTeX2e}[2017/04/15]
963963% <cls>\ProvidesClass{sustechthesis}
964- % <cls>[2021/10/31 1.3.5 Southern University of Science and Technology Thesis Template]
964+ % <cls>[2021/11/01 1.3.6 Southern University of Science and Technology Thesis Template]
965965% \end{macrocode}
966966%
967967% 报错
10111011\hyphenation {Thu-Thesis SUSTech-Thesis}
10121012\def\thuthesis {ThuThesis}
10131013\def\sustechthesis {SUSTechThesis}
1014- \def\version {1.3.5 }
1014+ \def\version {1.3.6 }
10151015\RequirePackage {kvdefinekeys}
10161016\RequirePackage {kvsetkeys}
10171017\RequirePackage {kvoptions}
Original file line number Diff line number Diff line change 1+ import os
2+ import re
3+
4+ filename = "sustechthesis.dtx"
5+ new_version = "1.3.6"
6+ new_date = "2021/11/01"
7+
8+ with open (filename , "r" , encoding = "utf-8" ) as f1 :
9+ with open ("{filename}.bak" , "w" , encoding = "utf-8" ) as f2 :
10+ for line in f1 :
11+ if "Southern University of Science and Technology Thesis Template" in line :
12+ line = re .sub ("\d\.\d\.\d" , new_version , line )
13+ line = re .sub ("\d{4}/\d{2}/\d{2}" , new_date , line )
14+ f2 .write (line )
15+ elif "\\ def\\ version" in line :
16+ line = re .sub ("\d\.\d\.\d" , new_version , line )
17+ f2 .write (line )
18+ else :
19+ f2 .write (line )
20+ os .remove (filename )
21+ os .rename ("{filename}.bak" , filename )
You can’t perform that action at this time.
0 commit comments