From 68dee2c7e4f759386f9db7f40e669b2a3104e98d Mon Sep 17 00:00:00 2001 From: Yu Cong Date: Fri, 30 May 2025 11:50:59 +0800 Subject: [PATCH] fix italic/bold CJK font warnings --- main.tex | 2 +- myctex.sty | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tex b/main.tex index d862db3..38b6a78 100644 --- a/main.tex +++ b/main.tex @@ -21,7 +21,7 @@ $MATH$ \section{is this bold $MATH \Z$?} \section{这是bold $\text{你好abc}\R$?} \begin{theorem}[sbada] - aaa + aaa 中文 \end{theorem} \begin{equation} diff --git a/myctex.sty b/myctex.sty index c376c12..2eb3f9c 100644 --- a/myctex.sty +++ b/myctex.sty @@ -12,14 +12,14 @@ % Now use the conditional \ifmyctex@sans -\setCJKmainfont{Source Han Sans SC} +\setCJKmainfont{Source Han Sans SC}[BoldFont=*, ItalicFont=*] \setCJKsansfont{Source Han Sans SC} \setCJKmonofont{Source Han Sans SC} \usepackage[fira]{fontsetup} \usepackage{FiraMono} \else -\setCJKmainfont{Source Han Serif SC} +\setCJKmainfont{Source Han Serif SC}[BoldFont=*, ItalicFont=*] \setCJKsansfont{Source Han Serif SC} \setCJKmonofont{Source Han Serif SC} \RequirePackage[charter]{mathdesign} % math font only for serif mode