Skip to content

font: use rsfs for spin operator#56

Merged
jeanwsr merged 3 commits intonominhanggai:masterfrom
yizeyi18:mathfont
Mar 10, 2025
Merged

font: use rsfs for spin operator#56
jeanwsr merged 3 commits intonominhanggai:masterfrom
yizeyi18:mathfont

Conversation

@yizeyi18
Copy link
Copy Markdown
Contributor

@yizeyi18 yizeyi18 commented Mar 8, 2025

S in the font rsfs(provided by macro package mathrsfs) looks more similar with szabo the book than the font provided by mathpazo; this PR subtitutes the macro package mathpazo to mathrsfs.
This PR origins from the issue #54 .

…milar to szabo the book. More missing character introduced also.
@jeanwsr
Copy link
Copy Markdown
Collaborator

jeanwsr commented Mar 8, 2025

@jeanwsr
Copy link
Copy Markdown
Collaborator

jeanwsr commented Mar 8, 2025

mathpazo本来没有用到吧,用的可能是\usepackage[scr=boondoxo, scrscaled=1]{mathalfa}
(https://ftp.yz.yamagata-u.ac.jp/pub/CTAN/macros/latex/contrib/mathalpha/doc/mathalpha-doc.pdf)

可以参考一下 https://tex.stackexchange.com/questions/532897/what-package-should-i-use-for-mathscrc .

@yizeyi18
Copy link
Copy Markdown
Contributor Author

yizeyi18 commented Mar 8, 2025

要安装一下字体。可能是叫 jknapltx?(https://ctan.org/pkg/mathrsfs

mathpazo本来没有用到吧,用的可能是\usepackage[scr=boondoxo, scrscaled=1]{mathalfa}

缺的应该只是mathrsfs.sty一个文档。考虑到mathalfa包没问题,我试试直接改它的字体?

@jeanwsr
Copy link
Copy Markdown
Collaborator

jeanwsr commented Mar 9, 2025

目前的编译产物还是有一些问题。首先由于rsfs没有小写字母,所以第七章的含花体g的公式有很大问题。或许我们可以恢复到默认使用boondoxo,只对\ts使用rsfs(这个可以实现吗)。

@yizeyi18
Copy link
Copy Markdown
Contributor Author

@jeanwsr 好像可以。qwen声称可以声明一个宏(而非绑定给\mathscr)来使用rsfs字体,然后用这个新声明的宏来定义\ts。我在我的texlive-20240312环境下用起来没有问题。

@jeanwsr
Copy link
Copy Markdown
Collaborator

jeanwsr commented Mar 10, 2025

奇怪,我本地也没问题但是github action上有LaTeX Font Warning: Font shape `U/rsfs/m/n' undefined问题。

@jeanwsr
Copy link
Copy Markdown
Collaborator

jeanwsr commented Mar 10, 2025

先合并吧,等下我再debug。

@jeanwsr jeanwsr changed the title font: use mathrsfs instead of mathpazo font: use rsfs for spin operator Mar 10, 2025
@jeanwsr jeanwsr merged commit 373f814 into nominhanggai:master Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants