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

支持自定义 math font #109

Open
skyzh opened this issue May 29, 2022 · 3 comments
Open

支持自定义 math font #109

skyzh opened this issue May 29, 2022 · 3 comments
Milestone

Comments

@skyzh
Copy link
Member

skyzh commented May 29, 2022

默认的 math font 不包含 \Join 这个数学符号:

image

需要手动设置 XITSMath 才能正常显示。

\setmathfont{XITSMath-Regular}
[    Extension = .otf,
      BoldFont = XITSMath-Bold,
]

如果能像 SJTUThesis 一样添加一个 math-font 文档选项,可以大大方便字体切换 🤣

math-font=auto|termes|stixtwo|xits|pagella|cambria|newcm|lm|none
@LogCreative
Copy link
Contributor

LogCreative commented May 29, 2022

示例文档中使用了 unicode-math 宏包,由于目前 math-font 还没做(主要是 beamer 字体切换还没有特别好的参照,在做了),有时候会导致一些字体变化(比如 \mathbb{R})或缺失(比如本例的 \Join)。目前我认为如果遇到一些字体缺失,当前的状态可以考虑直接删掉 unicode-math,毕竟跟传统公式输入不太一样。

@LogCreative LogCreative added this to the v3 milestone May 29, 2022
@LogCreative LogCreative modified the milestones: v3, v4 Nov 26, 2022
@AlexaraWu
Copy link

一个建议:可以尝试创建一个新类 sjtubeamer.cls 来实现诸如 math-font 字体切换等功能,Beamer 主题样式还是使用 beamer*theme*.sty 的形式来编写。这样功能归功能,样式归样式。可能还可以共用 SJTUTeX 的部分代码。

@LogCreative
Copy link
Contributor

实际上我在尝试搞一个新的幻灯片包:https://github.com/LogCreative/presenter
这个包不再用 frame 环境,接口也方便使用一些,但是还在早期开发阶段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants