|
8 | 8 | \RequirePackage { expl3 } |
9 | 9 | \RequirePackage { xparse } |
10 | 10 | \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} |
12 | 12 |
|
13 | 13 |
|
14 | 14 | \bool_new:N \g__whuproposal_bachelor_type_bool % 判断开题报告类型 |
|
286 | 286 | month .int_set:N = \g__whuproposal_month_int, |
287 | 287 | % 日 |
288 | 288 | day .int_set:N = \g__whuproposal_day_int, |
| 289 | + show-date .bool_set:N = \g__whuproposal_show_date_bool, |
289 | 290 | } |
290 | 291 | \keys_set:nn { whu-proposal } |
291 | 292 | { |
|
300 | 301 | year = { \int_use:N \c_sys_year_int }, |
301 | 302 | month = { \int_use:N \c_sys_month_int }, |
302 | 303 | day = { \int_use:N \c_sys_day_int }, |
| 304 | + show-date = true |
303 | 305 | } |
304 | 306 |
|
305 | 307 | % 封面 |
|
347 | 349 | \node [ anchor = south ] ( date ) at ( [shift = {(0em, 2.5em)}]current~page~text~area.south ) |
348 | 350 | { |
349 | 351 | \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 } |
351 | 354 | % \zhdigits { \int_use:N \g__whuproposal_year_int } |
352 | 355 | \, 年 \, |
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 } |
354 | 359 | % \zhnumber { \int_use:N \g__whuproposal_month_int } |
355 | 360 | \, 月 |
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 } |
357 | 364 | % \zhnumber { \int_use:N \g__whuproposal_day_int } |
358 | 365 | \, 日 |
359 | 366 | }; |
|
0 commit comments