whutug / whu-thesis

:memo: 武汉大学毕业论文 LaTeX 模版 2024
LaTeX Project Public License v1.3c
908 stars 200 forks source link

关于 `\mathcal{}` 公式的问题 #125

Closed HenryZhuHR closed 2 years ago

HenryZhuHR commented 2 years ago

检查

编译环境

描述问题

关于 \mathcal{} 公式渲染的问题:

\begin{equation}
  \mathcal{L}
\end{equation}

可是渲染出来的是类似\mathscr{L}的花体,如下图: mathsrc

该情况在 overleaf 和本地编译都如此,如果希望使用下图的 \mathcal{L} 应该怎么解决 mathcal

xkwxdyy commented 2 years ago

\mathsrc 打错了,应该是 \mathscr

xkwxdyy commented 2 years ago

在 0.6e 发行版中已修复,请测试一下看有没有问题

HenryZhuHR commented 2 years ago

在 0.6e 发行版中已修复,请测试一下看有没有问题

正常了,\mathscr\mathcal 都正确了

iNoak commented 1 year ago

你好,我正在使用老版本的模板,能否指导一下怎么替换成上述的花体?谢谢。

sikouhjw commented 1 year ago

你好,我正在使用老版本的模板,能否指导一下怎么替换成上述的花体?谢谢。

参考 https://github.com/whutug/whu-thesis/blob/6f19c2e0d34bbfc752f86a7ea505154a185ff595/whu-thesis.cls#L637-L642 在导言区使用

\ExplSyntaxOn
\cs_set_protected:Npn \__whu_set_math_font_xits: 
  {
    \setmathfont { XITSMath-Regular.otf } 
      [ BoldFont = XITSMath-Bold.otf ] 
    \setmathfont{ XITSMath-Regular.otf }[range={cal,bfcal},StylisticSet=01] 
  }
\ExplSyntaxOff