Skip to content

Commit

Permalink
Merge branch 'mathscr-mathcal-issue'
Browse files Browse the repository at this point in the history
  • Loading branch information
xkwxdyy committed Apr 17, 2022
2 parents a0cb591 + 1ffaeb8 commit 61ae4a1
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]

This comment has been minimized.

Copy link
@zepinglee

zepinglee Apr 17, 2022

xits 最好还是用 XITS Math,同样也可以设置 StylisticSet = 1。STIX Two Math 的主要问题是很多人不太接受它的小写希腊字母字形。

This comment has been minimized.

Copy link
@tanukihee

tanukihee Apr 17, 2022

Member

别说希腊字母,我连拉丁字母都接受不了(

This comment has been minimized.

Copy link
@xkwxdyy

xkwxdyy Apr 17, 2022

Author Member

好的 我试试

This comment has been minimized.

Copy link
@xkwxdyy

xkwxdyy Apr 17, 2022

Author Member

但是

\setmathfont { XITSMath-Regular.otf }
    [ BoldFont = XITSMath-Bold.otf ]
\setmathfont{ XITSMath-Regular.otf }[range={scr,bfscr},StylisticSet=01]

两者的效果还是反过来了,我不知道如何处理

This comment has been minimized.

Copy link
@xkwxdyy

xkwxdyy Apr 17, 2022

Author Member

搞定了

\setmathfont { XITSMath-Regular.otf }
  [ BoldFont = XITSMath-Bold.otf ]
\setmathfont{ XITSMath-Regular.otf }[range={cal,bfcal},StylisticSet=01]

我重新更新一下

This comment has been minimized.

Copy link
@zepinglee

zepinglee Apr 18, 2022

别说希腊字母,我连拉丁字母都接受不了(

为啥?拉丁字母也是 Times 风格的呀。

This comment has been minimized.

Copy link
@tanukihee

tanukihee Apr 18, 2022

Member
\documentclass{article}
\def\foo{the quick brown fox jumps over a lazy dog}
\usepackage{fontspec}
\newfontfamily\tnr{Times New Roman}
\newfontfamily\tg{Tex Gyre Termes}
\newfontfamily\xits{XITS}
\newfontfamily\stixone{STIX}
\newfontfamily\stixtwo{STIX Two Text}
\usepackage{newtxtext}
\begin{document}
{\tnr\foo}

\foo

{\tg\foo}

{\tg\foo}

{\xits\foo}

{\stixone\foo}

{\stixtwo\foo}
\end{document}

image

stix 2 text 更加「text」,视觉字号更小,x 高更高,字怀更大,细线更大,是给更加小的字号使用的

This comment has been minimized.

Copy link
@zepinglee

zepinglee Apr 18, 2022

嗯,确实。

我前面想说的是 STIX Two Math 的小写希腊字母的 angle of contrast 跟拉丁字母是反的。
Screen Shot 2022-04-18 at 21 01 03

This comment has been minimized.

Copy link
@tanukihee

tanukihee Apr 18, 2022

Member

不过其实 stix two 的希腊字母才是「正统」的希腊字母,反倒可以接受(毕竟工科不会经常碰到希腊字母

}

\cs_new_protected:Npn \__whu_set_math_font_termes:
Expand Down

0 comments on commit 61ae4a1

Please sign in to comment.