Skip to content

Commit

Permalink
add show-date
Browse files Browse the repository at this point in the history
  • Loading branch information
xkwxdyy committed Dec 4, 2024
1 parent e68351b commit 5aae6ac
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 29 deletions.
56 changes: 32 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,37 @@
Github:https://github.com/whutug/whu-proposal
Gitee:https://gitee.com/xkwxdyy/whu-proposal


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

### Added

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


## [v0.2] - 2023-05-22
## [v0.8] - 2023-09-26

### Added

- 增加“数学与统计学院研究生学位论文开题报告管理实施细则”

- 增加上传系统的说明
- 增加对 `\cite``\parencite` 的处理
- 增加 `biblatex` 包的预设键值

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

### Fixed
## [v0.7] - 2023-09-07

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

### Changed

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

### Added

- 增加 `Overleaf` 模版链接

## [v0.6] - 2023-07-30

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

### Fixed

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



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


## [v0.6] - 2023-07-30
## [v0.4] - 2023-06-13

### Added

- 增加 `Overleaf` 模版链接


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

### Fixed

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


## [v0.7] - 2023-09-07
## [v0.3] - 2023-06-08

### Fixed

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

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


## [v0.8] - 2023-09-26
## [v0.2] - 2023-05-22

### Added

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


## [v0.1] - 2023-05-21

### Added

- 新增硕博开题报告模版
- 合并本科生模版
3 changes: 2 additions & 1 deletion whu-proposal-main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
research_area = { 算子理论 } ,
supervisor = { 导师姓名 } ,
supervisor_title = { 教授 } ,
year = { 2023 }, % 年份不填写时默认为编译时的年份
% year = { 2023 }, % 年份不填写时默认为编译时的年份
% month = { 5 }, % 月份不填写时默认为编译时的月份
% day = { 21 }, % 日期不填写时默认为编译时的日期
show-date = false
}


Expand Down
15 changes: 11 additions & 4 deletions whu-proposal.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\RequirePackage { expl3 }
\RequirePackage { xparse }
\RequirePackage { l3keys2e }
\ProvidesExplClass {whu-proposal} {2023-09-26} {v0.8} {LaTeX template for thesis proposal for students in Wuhan University}
\ProvidesExplClass {whu-proposal} {2024-12-04} {v0.9} {LaTeX template for thesis proposal for students in Wuhan University}


\bool_new:N \g__whuproposal_bachelor_type_bool % 判断开题报告类型
Expand Down Expand Up @@ -286,6 +286,7 @@
month .int_set:N = \g__whuproposal_month_int,
%
day .int_set:N = \g__whuproposal_day_int,
show-date .bool_set:N = \g__whuproposal_show_date_bool,
}
\keys_set:nn { whu-proposal }
{
Expand All @@ -300,6 +301,7 @@
year = { \int_use:N \c_sys_year_int },
month = { \int_use:N \c_sys_month_int },
day = { \int_use:N \c_sys_day_int },
show-date = true
}

% 封面
Expand Down Expand Up @@ -347,13 +349,18 @@
\node [ anchor = south ] ( date ) at ( [shift = {(0em, 2.5em)}]current~page~text~area.south )
{
\zihao{3} \fangsong
\int_use:N \g__whuproposal_year_int
\bool_if:NT \g__whuproposal_show_date_bool
{ \int_use:N \g__whuproposal_year_int }
% \zhdigits { \int_use:N \g__whuproposal_year_int }
\,\,
\int_use:N \g__whuproposal_month_int
\bool_if:NTF \g__whuproposal_show_date_bool
{ \int_use:N \g__whuproposal_month_int }
{ \quad }
% \zhnumber { \int_use:N \g__whuproposal_month_int }
\,
\int_use:N \g__whuproposal_day_int
\bool_if:NTF \g__whuproposal_show_date_bool
{ \int_use:N \g__whuproposal_day_int }
{ \quad }
% \zhnumber { \int_use:N \g__whuproposal_day_int }
\,
};
Expand Down

0 comments on commit 5aae6ac

Please sign in to comment.