Skip to content

Commit

Permalink
Add date at the end of acknowledgements
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Mar 23, 2022
1 parent e38a17d commit 71fa39a
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 本科生的目录中去掉摘要(2021 年 11 月新版)。
- 调整本科生的章节顺序(2021 年 11 月新版)。
- 本科生的目录中加入致谢(2021 年 11 月新版)。
- 本科生致谢的末尾增加日期(2021 年 11 月新版)。

### Fixed

Expand Down
28 changes: 23 additions & 5 deletions test/testfiles-crossref/main-bachelor-arabic.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ Completed box being shipped out [7]
....\special{color pop}
..\glue 8.2511
..\glue(\lineskip) 0.0
..\vbox(700.50723+0.0)x417.11752, glue set 631.66887fil
..\vbox(700.50723+0.0)x417.11752, glue set 587.5086fil
...\write-{}
...\write-{}
...\write1{\@writefile{toc}{\protect \contentsline {chapter}{致谢}{\thepage }{\ET
Expand Down Expand Up @@ -2157,7 +2157,7 @@ C.}
...\glue 18.06749
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\hbox(9.32283+2.20422)x417.11752, glue set 329.79129fil
...\hbox(9.32283+2.20422)x417.11752, glue set 340.55951fil
....\hbox(0.0+0.0)x24.09
....\TU/FandolSong(0)/m/n/12.045 致
....\glue 0.0 plus 0.61353
Expand All @@ -2173,12 +2173,30 @@ C.}
....\kern -0.00047
....\kern -0.18753
....\kern 0.18753
....\glue 7.75697 minus 6.02249
....\glue 3.01125 plus 1.50562 minus 1.00374
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
....\glue(\rightskip) 0.0
...\glue -2.20422
...\glue(\baselineskip) 19.87827
...\hbox(0.0+0.0)x0.0
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 12.78375
...\hbox(9.29874+2.04764)x417.11752, glue set 353.88129fil
....\glue(\leftskip) 0.0 plus 1.0fil
....\hbox(0.0+0.0)x0.0
....\TU/texgyretermes(0)/m/n/12.045 2016
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 年
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/texgyretermes(0)/m/n/12.045 5
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 月
....\kern -0.00017
....\kern 0.00017
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0
...\glue -2.04764
...\glue 0.0 plus 1.0fil
...\glue 0.0
...\glue 0.0 plus 0.0001fil
Expand Down
28 changes: 23 additions & 5 deletions test/testfiles-crossref/main-bachelor-english.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,7 @@ Completed box being shipped out [7]
....\special{color pop}
..\glue 8.2511
..\glue(\lineskip) 0.0
..\vbox(700.50723+0.0)x417.11752, glue set 631.84953fil
..\vbox(700.50723+0.0)x417.11752, glue set 587.68927fil
...\write-{}
...\write-{}
...\write1{\@writefile{toc}{\protect \contentsline {chapter}{Acknowledgements}{\thepage \ETC.}
Expand All @@ -2135,7 +2135,7 @@ Completed box being shipped out [7]
...\glue 18.06749
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\hbox(9.32283+2.20422)x417.11752, glue set 329.79129fil
...\hbox(9.32283+2.20422)x417.11752, glue set 340.55951fil
....\hbox(0.0+0.0)x24.09
....\TU/FandolSong(0)/m/n/12.045 致
....\glue 0.0 plus 0.61353
Expand All @@ -2151,12 +2151,30 @@ Completed box being shipped out [7]
....\kern -0.00047
....\kern -0.18753
....\kern 0.18753
....\glue 7.75697 minus 6.02249
....\glue 3.01125 plus 1.50562 minus 1.00374
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
....\glue(\rightskip) 0.0
...\glue -2.20422
...\glue(\baselineskip) 19.87827
...\hbox(0.0+0.0)x0.0
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 12.78375
...\hbox(9.29874+2.04764)x417.11752, glue set 353.88129fil
....\glue(\leftskip) 0.0 plus 1.0fil
....\hbox(0.0+0.0)x0.0
....\TU/texgyretermes(0)/m/n/12.045 2016
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 年
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/texgyretermes(0)/m/n/12.045 5
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 月
....\kern -0.00017
....\kern 0.00017
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0
...\glue -2.04764
...\glue 0.0 plus 1.0fil
...\glue 0.0
...\glue 0.0 plus 0.0001fil
Expand Down
28 changes: 23 additions & 5 deletions test/testfiles-crossref/main-bachelor.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ Completed box being shipped out [7]
....\special{color pop}
..\glue 8.2511
..\glue(\lineskip) 0.0
..\vbox(700.50723+0.0)x417.11752, glue set 631.66887fil
..\vbox(700.50723+0.0)x417.11752, glue set 587.5086fil
...\write-{}
...\write-{}
...\write1{\@writefile{toc}{\protect \contentsline {chapter}{致谢}{\thepage }{\ET
Expand Down Expand Up @@ -2177,7 +2177,7 @@ C.}
...\glue 18.06749
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\hbox(9.32283+2.20422)x417.11752, glue set 329.79129fil
...\hbox(9.32283+2.20422)x417.11752, glue set 340.55951fil
....\hbox(0.0+0.0)x24.09
....\TU/FandolSong(0)/m/n/12.045 致
....\glue 0.0 plus 0.61353
Expand All @@ -2193,12 +2193,30 @@ C.}
....\kern -0.00047
....\kern -0.18753
....\kern 0.18753
....\glue 7.75697 minus 6.02249
....\glue 3.01125 plus 1.50562 minus 1.00374
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
....\glue(\rightskip) 0.0
...\glue -2.20422
...\glue(\baselineskip) 19.87827
...\hbox(0.0+0.0)x0.0
...\glue(\parskip) 0.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 12.78375
...\hbox(9.29874+2.04764)x417.11752, glue set 353.88129fil
....\glue(\leftskip) 0.0 plus 1.0fil
....\hbox(0.0+0.0)x0.0
....\TU/texgyretermes(0)/m/n/12.045 2016
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 年
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/texgyretermes(0)/m/n/12.045 5
....\glue 3.01125 plus 1.50562 minus 1.00374
....\TU/FandolSong(0)/m/n/12.045 月
....\kern -0.00017
....\kern 0.00017
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0
...\glue -2.04764
...\glue 0.0 plus 1.0fil
...\glue 0.0
...\glue 0.0 plus 0.0001fil
Expand Down
13 changes: 12 additions & 1 deletion ustcthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1742,9 +1742,11 @@
July\or August\or September\or October\or November\or December%
\fi
}
\newcommand\ustc@date@format@zh@short[3]{\number#1 年 \number#2 月}
\newcommand\ustc@date@format@en[3]{\ustc@date@month{#2} \number#3, #1}
\newcommand\ustc@date@zh@small{\ustc@format@date{\ustc@date@format@zh@small}{\ustc@date}}
\newcommand\ustc@date@zh@big{\ustc@format@date{\ustc@date@format@zh@big}{\ustc@date}}
\newcommand\ustc@date@zh@short{\ustc@format@date{\ustc@date@format@zh@short}{\ustc@date}}
\newcommand\ustc@date@en{\ustc@format@date{\ustc@date@format@en}{\ustc@date}}

% 版本 v3.2 开始使用 \cs{ustcsetup} 设置接口,
Expand Down Expand Up @@ -3032,7 +3034,16 @@
\newenvironment{acknowledgements}{%
\@mainmatterfalse
\chapter{\ustc@acknowledgements@name}%
}{}
}{
\ifustc@degree@bachelor
\par
\null\par
\begingroup
\raggedleft
\ustc@date@zh@short\par
\endgroup
\fi
}


% 兼容旧版本中“acknowledgments”的拼法。
Expand Down

0 comments on commit 71fa39a

Please sign in to comment.