Skip to content

Commit 5aae6ac

Browse files
committed
add show-date
1 parent e68351b commit 5aae6ac

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed

CHANGELOG.md

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,37 @@
55
Github:https://github.com/whutug/whu-proposal
66
Gitee:https://gitee.com/xkwxdyy/whu-proposal
77

8-
9-
## [v0.1] - 2023-05-21
8+
## [v0.9] - 2024-12-04
109

1110
### Added
1211

13-
- 新增硕博开题报告模版
14-
- 合并本科生模版
12+
- 增加 `show-date` 键值控制日期的显示
1513

1614

17-
## [v0.2] - 2023-05-22
15+
## [v0.8] - 2023-09-26
1816

1917
### Added
2018

21-
- 增加“数学与统计学院研究生学位论文开题报告管理实施细则”
22-
19+
- 增加上传系统的说明
20+
- 增加对 `\cite``\parencite` 的处理
21+
- 增加 `biblatex` 包的预设键值
2322

24-
## [v0.3] - 2023-06-08
2523

26-
### Fixed
24+
## [v0.7] - 2023-09-07
2725

28-
- 修复不同版本 TeXLive 造成的 lastpage 的问题
2926

27+
### Changed
3028

31-
## [v0.4] - 2023-06-13
29+
- 微调框的间距,防止垂直方向离文字太近
3230

33-
### Added
3431

35-
- 增加 `Overleaf` 模版链接
3632

33+
## [v0.6] - 2023-07-30
3734

38-
## [v0.4] - 2023-06-25
3935

4036
### Fixed
4137

42-
- 修复最后两页的框的问题
38+
- 修复个人信息填写空白时的编译不停止的问题
4339

4440

4541

@@ -50,26 +46,38 @@ Gitee:https://gitee.com/xkwxdyy/whu-proposal
5046
- 兼容 TeXLive 2021
5147

5248

53-
## [v0.6] - 2023-07-30
49+
## [v0.4] - 2023-06-13
50+
51+
### Added
52+
53+
- 增加 `Overleaf` 模版链接
5454

5555

56+
## [v0.4] - 2023-06-25
57+
5658
### Fixed
5759

58-
- 修复个人信息填写空白时的编译不停止的问题
60+
- 修复最后两页的框的问题
5961

6062

61-
## [v0.7] - 2023-09-07
63+
## [v0.3] - 2023-06-08
6264

65+
### Fixed
6366

64-
### Changed
67+
- 修复不同版本 TeXLive 造成的 lastpage 的问题
6568

66-
- 微调框的间距,防止垂直方向离文字太近
6769

6870

69-
## [v0.8] - 2023-09-26
71+
## [v0.2] - 2023-05-22
7072

7173
### Added
7274

73-
- 增加上传系统的说明
74-
- 增加对 `\cite``\parencite` 的处理
75-
- 增加 `biblatex` 包的预设键值
75+
- 增加“数学与统计学院研究生学位论文开题报告管理实施细则”
76+
77+
78+
## [v0.1] - 2023-05-21
79+
80+
### Added
81+
82+
- 新增硕博开题报告模版
83+
- 合并本科生模版

whu-proposal-main.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
research_area = { 算子理论 } ,
3131
supervisor = { 导师姓名 } ,
3232
supervisor_title = { 教授 } ,
33-
year = { 2023 }, % 年份不填写时默认为编译时的年份
33+
% year = { 2023 }, % 年份不填写时默认为编译时的年份
3434
% month = { 5 }, % 月份不填写时默认为编译时的月份
3535
% day = { 21 }, % 日期不填写时默认为编译时的日期
36+
show-date = false
3637
}
3738

3839

whu-proposal.cls

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\RequirePackage { expl3 }
99
\RequirePackage { xparse }
1010
\RequirePackage { l3keys2e }
11-
\ProvidesExplClass {whu-proposal} {2023-09-26} {v0.8} {LaTeX template for thesis proposal for students in Wuhan University}
11+
\ProvidesExplClass {whu-proposal} {2024-12-04} {v0.9} {LaTeX template for thesis proposal for students in Wuhan University}
1212

1313

1414
\bool_new:N \g__whuproposal_bachelor_type_bool % 判断开题报告类型
@@ -286,6 +286,7 @@
286286
month .int_set:N = \g__whuproposal_month_int,
287287
%
288288
day .int_set:N = \g__whuproposal_day_int,
289+
show-date .bool_set:N = \g__whuproposal_show_date_bool,
289290
}
290291
\keys_set:nn { whu-proposal }
291292
{
@@ -300,6 +301,7 @@
300301
year = { \int_use:N \c_sys_year_int },
301302
month = { \int_use:N \c_sys_month_int },
302303
day = { \int_use:N \c_sys_day_int },
304+
show-date = true
303305
}
304306

305307
% 封面
@@ -347,13 +349,18 @@
347349
\node [ anchor = south ] ( date ) at ( [shift = {(0em, 2.5em)}]current~page~text~area.south )
348350
{
349351
\zihao{3} \fangsong
350-
\int_use:N \g__whuproposal_year_int
352+
\bool_if:NT \g__whuproposal_show_date_bool
353+
{ \int_use:N \g__whuproposal_year_int }
351354
% \zhdigits { \int_use:N \g__whuproposal_year_int }
352355
\,\,
353-
\int_use:N \g__whuproposal_month_int
356+
\bool_if:NTF \g__whuproposal_show_date_bool
357+
{ \int_use:N \g__whuproposal_month_int }
358+
{ \quad }
354359
% \zhnumber { \int_use:N \g__whuproposal_month_int }
355360
\,
356-
\int_use:N \g__whuproposal_day_int
361+
\bool_if:NTF \g__whuproposal_show_date_bool
362+
{ \int_use:N \g__whuproposal_day_int }
363+
{ \quad }
357364
% \zhnumber { \int_use:N \g__whuproposal_day_int }
358365
\,
359366
};

0 commit comments

Comments
 (0)