From 31ea67defedc37fa64364a823bcf13fff0995c08 Mon Sep 17 00:00:00 2001 From: Feng Kaiyu Date: Thu, 9 Mar 2023 21:02:25 +0800 Subject: [PATCH] fix: turn on AutoFakeBold and AutoFakeSlant in xeCJK. --- bithesis.dtx | 3 ++- templates/graduate-thesis/bithesis.cls | 2 +- templates/paper-translation/bithesis.cls | 2 +- templates/undergraduate-thesis-en/bithesis.cls | 2 +- templates/undergraduate-thesis/bithesis.cls | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bithesis.dtx b/bithesis.dtx index 8ce91eac..b4e731f0 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -2294,8 +2294,9 @@ % \end{macrocode} % % 抑制 fontspec 宏包关于字体的警告信息。 +% 手动开启伪粗体、伪斜体。 % \begin{macrocode} -\PassOptionsToPackage{quiet}{xeCJK} +\PassOptionsToPackage{quiet,AutoFakeBold,AutoFakeSlant}{xeCJK} % \end{macrocode} % 加载 ctexbook 模板类。 % \begin{macrocode} diff --git a/templates/graduate-thesis/bithesis.cls b/templates/graduate-thesis/bithesis.cls index 27fc7312..06cf1f82 100644 --- a/templates/graduate-thesis/bithesis.cls +++ b/templates/graduate-thesis/bithesis.cls @@ -414,7 +414,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } -\PassOptionsToPackage{quiet}{xeCJK} +\PassOptionsToPackage{quiet,AutoFakeBold,AutoFakeSlant}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} diff --git a/templates/paper-translation/bithesis.cls b/templates/paper-translation/bithesis.cls index 27fc7312..06cf1f82 100644 --- a/templates/paper-translation/bithesis.cls +++ b/templates/paper-translation/bithesis.cls @@ -414,7 +414,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } -\PassOptionsToPackage{quiet}{xeCJK} +\PassOptionsToPackage{quiet,AutoFakeBold,AutoFakeSlant}{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 27fc7312..06cf1f82 100644 --- a/templates/undergraduate-thesis-en/bithesis.cls +++ b/templates/undergraduate-thesis-en/bithesis.cls @@ -414,7 +414,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } -\PassOptionsToPackage{quiet}{xeCJK} +\PassOptionsToPackage{quiet,AutoFakeBold,AutoFakeSlant}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} diff --git a/templates/undergraduate-thesis/bithesis.cls b/templates/undergraduate-thesis/bithesis.cls index 27fc7312..06cf1f82 100644 --- a/templates/undergraduate-thesis/bithesis.cls +++ b/templates/undergraduate-thesis/bithesis.cls @@ -414,7 +414,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } -\PassOptionsToPackage{quiet}{xeCJK} +\PassOptionsToPackage{quiet,AutoFakeBold,AutoFakeSlant}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry}