Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 of 11 tasks
HenryZhuHR opened this issue Apr 17, 2022 · 5 comments
Closed
3 of 11 tasks

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

HenryZhuHR opened this issue Apr 17, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@HenryZhuHR
Copy link

HenryZhuHR commented Apr 17, 2022

检查

  • 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • Windows 10
    • Windows 8/8.1
    • Windows 7
    • 更早版本的 Windows
    • macOS
    • Linux(请附发行版)
  • TeX 发行版

    • TeX Live 2021
    • MiKTeX
    • CTeX 套装 2.9.2.164
    • 更早版本的 CTeX 套装
  • whu-thesis 版本
    v0.6d

描述问题

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

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

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

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

@xkwxdyy
Copy link
Member

xkwxdyy commented Apr 17, 2022

\mathsrc 打错了,应该是 \mathscr

@xkwxdyy xkwxdyy self-assigned this Apr 17, 2022
@xkwxdyy xkwxdyy added the bug Something isn't working label Apr 17, 2022
@xkwxdyy
Copy link
Member

xkwxdyy commented Apr 17, 2022

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

@HenryZhuHR
Copy link
Author

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

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

@iNoak
Copy link

iNoak commented Feb 28, 2023

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

@sikouhjw
Copy link

sikouhjw commented Mar 1, 2023

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

参考

whu-thesis/whu-thesis.cls

Lines 637 to 642 in 6f19c2e

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

在导言区使用

\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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants