banana-space / btex

MIT License
39 stars 3 forks source link

切换字体 #10

Closed ice1000 closed 1 year ago

ice1000 commented 1 year ago

可能依赖于 https://github.com/KaTeX/KaTeX/issues/123

Trebor-Huang commented 1 year ago

字体不是btex管辖的范畴,你需要修改CSS得到。局部修改字体可以靠直接输出html

ice1000 commented 1 year ago

最好能间接控制 katex

abccsss commented 1 year ago

btex 只是输出 html,换字体用 css 实现很容易,但不是 btex 的任务。

ice1000 commented 1 year ago

btex 只是输出 html,换字体用 css 实现很容易,但不是 btex 的任务。

我的意思是比如 \usepackage{newpxmath} 这样的命令。

ice1000 commented 1 year ago

如果改 css 能解决 https://github.com/KaTeX/KaTeX/issues/123 的话那自然再好不过了

abccsss commented 1 year ago

如果改 css 能解决 KaTeX/KaTeX#123 的话那自然再好不过了

btex 不追求使用 LaTeX 字体和宏包。我在个人网站上使用

.katex, .katex .mathnormal {
    font-family:"IBM Plex Sans", KaTeX_Main, serif !important;
}

效果已经不错,当然还能调得更细致一些。

ice1000 commented 1 year ago

niubi