From 5c0f54819ae1afbc6b71ba6bf233a144420a6453 Mon Sep 17 00:00:00 2001 From: syvshc Date: Thu, 5 May 2022 14:01:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E7=8B=AC=E4=BD=BF=E7=94=A8=20newtxmath=20=E5=AE=8F?= =?UTF-8?q?=E5=8C=85=E6=97=B6=E7=9A=84=20op,=20\mathrm/bf/it=20=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E4=BD=93=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #196 --- elegantbook.cls | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/elegantbook.cls b/elegantbook.cls index b0c05f2..4c2b7a6 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -238,7 +238,19 @@ \RequirePackage{anyfontsize} \ifdefstring{\ELEGANT@math}{newtx}{ + \let\oldencodingdefault\encodingdefault + \let\oldrmdefault\rmdefault + \let\oldsfdefault\sfdefault + \let\oldttdefault\ttdefault + \RequirePackage[T1]{fontenc} + \renewcommand{\rmdefault}{ntxtlf} + \renewcommand{\sfdefault}{qhv} + \renewcommand{\ttdefault}{ntxtt} \RequirePackage{newtxmath} + \let\encodingdefault\oldencodingdefault + \let\rmdefault\oldrmdefault + \let\sfdefault\oldsfdefault + \let\ttdefault\oldttdefault \let\Bbbk\relax \RequirePackage{esint} %%% use yhmath pkg, uncomment following code