From 08448466a4c989981f3c09e9b5f1188e25ad6f85 Mon Sep 17 00:00:00 2001 From: Feng Kaiyu Date: Sun, 19 Feb 2023 21:59:00 +0800 Subject: [PATCH] fix: suppress fontspec warning. --- bithesis.dtx | 6 +++++- templates/graduate-thesis/bithesis.cls | 1 + templates/paper-translation/bithesis.cls | 1 + templates/undergraduate-thesis-en/bithesis.cls | 1 + templates/undergraduate-thesis/bithesis.cls | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bithesis.dtx b/bithesis.dtx index cbc462de..e058c64e 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -2286,6 +2286,10 @@ } % \end{macrocode} % +% 抑制 fontspec 宏包关于字体的警告信息。 +% \begin{macrocode} +\PassOptionsToPackage{quiet}{xeCJK} +% \end{macrocode} % 加载 ctexbook 模板类。 % \begin{macrocode} \ProcessOptions\relax @@ -6192,7 +6196,7 @@ footskip=0.7cm% 页脚 1.8cm % \ProvidesPackage{dtx-style} \RequirePackage{hypdoc} \RequirePackage{ifthen} -\RequirePackage{fontspec} +\RequirePackage[quiet]{fontspec} \RequirePackage{amsmath} \RequirePackage{unicode-math} \RequirePackage[UTF8,scheme=chinese,heading,sub3section]{ctex} diff --git a/templates/graduate-thesis/bithesis.cls b/templates/graduate-thesis/bithesis.cls index 8229059d..eda433b1 100644 --- a/templates/graduate-thesis/bithesis.cls +++ b/templates/graduate-thesis/bithesis.cls @@ -411,6 +411,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } +\PassOptionsToPackage{quiet}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} diff --git a/templates/paper-translation/bithesis.cls b/templates/paper-translation/bithesis.cls index 8229059d..eda433b1 100644 --- a/templates/paper-translation/bithesis.cls +++ b/templates/paper-translation/bithesis.cls @@ -411,6 +411,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } +\PassOptionsToPackage{quiet}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} diff --git a/templates/undergraduate-thesis-en/bithesis.cls b/templates/undergraduate-thesis-en/bithesis.cls index 8229059d..eda433b1 100644 --- a/templates/undergraduate-thesis-en/bithesis.cls +++ b/templates/undergraduate-thesis-en/bithesis.cls @@ -411,6 +411,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } +\PassOptionsToPackage{quiet}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} diff --git a/templates/undergraduate-thesis/bithesis.cls b/templates/undergraduate-thesis/bithesis.cls index 8229059d..eda433b1 100644 --- a/templates/undergraduate-thesis/bithesis.cls +++ b/templates/undergraduate-thesis/bithesis.cls @@ -411,6 +411,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } +\PassOptionsToPackage{quiet}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry}