Skip to content

Commit

Permalink
- 修复\mathcal\mathscr 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xkwxdyy committed Apr 17, 2022
1 parent 24ca203 commit 1ffaeb8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

* 添加 `none` 的字体设置。[#72]

## v0.6e

### Fixed

- 修复`\mathcal``\mathscr` 的问题 ([#125](https://github.com/whutug/whu-thesis/issues/125))

## v0.6d

### 删除
Expand Down
10 changes: 7 additions & 3 deletions whu-thesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
\ProvidesExplClass{whu-thesis}{2021/05/20}{0.6d}
{Wuhan University Thesis Template}

% TODO 引擎处理修改为英文
\msg_new:nnn { whu-thesis } { 引擎不支持 }
{
whu-thesis ~ 不支持 ~ #1 ~ 引擎。\\\\
Expand Down Expand Up @@ -95,6 +96,7 @@
}
\ProcessKeysOptions { whu / option }

% TODO 直接改为 keys_set
\tl_if_eq:NnT \g__whu_option_type_tl { master }
{
\keys_define:nn { whu / option }
Expand All @@ -119,7 +121,7 @@
\clist_gput_right:Nn \g__whu_option_to_class_clist
{ punct = \g__whu_option_punct_tl }
}
% 判断是否有 chinese-jfm,若有则使用 chinese-jfm


\sys_if_engine_xetex:T { \RequirePackage { etoolbox } }
% 在载入文档类之前引入 etoolbox
Expand Down Expand Up @@ -634,8 +636,10 @@
% 数学字体
\cs_new_protected:Npn \__whu_set_math_font_xits:
{
\setmathfont { XITSMath-Regular.otf }
[ BoldFont = XITSMath-Bold.otf ]
% \setmathfont { XITSMath-Regular.otf }
% [ BoldFont = XITSMath-Bold.otf ]
\setmathfont{STIXTwoMath-Regular.otf}
\setmathfont{STIXTwoMath-Regular.otf}[range={scr,bfscr},StylisticSet=01]
}

\cs_new_protected:Npn \__whu_set_math_font_termes:
Expand Down

0 comments on commit 1ffaeb8

Please sign in to comment.