From 23d6be7aedf830a33ef97e1fd199c24326ba75d6 Mon Sep 17 00:00:00 2001 From: chnja Date: Tue, 7 Jan 2025 22:23:25 +0800 Subject: [PATCH] elegant --- whu-thesis.cls | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/whu-thesis.cls b/whu-thesis.cls index bdcd2d3..9440a56 100644 --- a/whu-thesis.cls +++ b/whu-thesis.cls @@ -63,12 +63,7 @@ %tag 用户设置命令接口 \NewDocumentCommand \whusetup { m } - { - \keys_set:nn { whu } {#1} - \tl_new:N \l__whu_info_header_title_tl - \tl_set_eq:NN \l__whu_info_header_title_tl \l__whu_info_title_tl - \tl_replace_all:Nnn \l__whu_info_header_title_tl { \\ } { } - } + { \keys_set:nn { whu } {#1} } \NewDocumentCommand \whumodule { m } { \ExplSyntaxOn @@ -1017,6 +1012,11 @@ %region 页眉页脚样式 +\ctex_after_end_preamble:n { + \tl_new:N \l__whu_info_header_title_tl + \tl_set_eq:NN \l__whu_info_header_title_tl \l__whu_info_title_tl + \tl_remove_all:Nn \l__whu_info_header_title_tl { \\ } +} %tag 本科 \fancypagestyle { bachelor-frontmatter } {