Skip to content

Commit 741fd23

Browse files
committed
Drop etoolbox
1 parent 84c7c4b commit 741fd23

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/tl_packages

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ bigfoot # perpage.sty for footmisc
1717
caption
1818
ctex
1919
enumitem
20-
etoolbox
2120
fancyhdr
2221
fontspec
2322
footmisc

ustcthesis.cls

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@
282282

283283
% 建议在模板开始处载入全部宏包,不要轻易改变加载顺序。
284284
% \pkg{hyperref} 一般在最后加载。
285-
\RequirePackage { etoolbox }
286285
\RequirePackage { amsmath }
287286
\RequirePackage { fontspec } [ 2017/03/31 ]
288287
\RequirePackage { geometry }
@@ -2922,10 +2921,13 @@
29222921
}
29232922
29242923
% 设置表格的默认字号
2925-
\patchcmd \@floatboxreset
2926-
{ \normalsize }
2927-
{ \__ustc_table_font: }
2928-
{ } { \msg_error:nnn { ustcthesis } { patch-failure } { \@floatboxreset } }
2924+
\cs_set_nopar:Npn \@floatboxreset
2925+
{
2926+
\reset@font
2927+
% \normalsize
2928+
\__ustc_table_font:
2929+
\@setminipage
2930+
}
29292931
29302932
\msg_new:nnn { ustcthesis } { patch-failure }
29312933
{ Failed~ to~ patch~ ' \token_to_str:N #1 '. }

0 commit comments

Comments
 (0)