Forgot password?
 Create new account
View 936|Reply 1

请教:如何修改discuz中的公式字体

[Copy link]

3

Threads

5

Posts

43

Credits

Credits
43

Show all posts

石头 Posted at 2019-3-16 09:46:01 |Read mode
我在配置自己站点的时候,本论坛的热心网友给了我方法和如下代码:
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\(","\)"] ],
      processEscapes: true  
    },
    TeX: {
      equationNumbers: { autoNumber: "AMS" },
      Macros: {
        du: '^\circ',
        vv: '\overrightarrow',
        bm: '\boldsymbol',
      }
    },
    "HTML-CSS": {
      linebreaks: {automatic: true}
    },
      menuSettings: {
        zoom: "Double-Click"
    }
  });
</script>

<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
这个代码显示的公式效果如下:
854339da81cb39db9b1cb54ad7160924aa183051.jpg
我希望显示下面这样的公式效果:
d353db1c8701a18be01cc053992f07082938febb.jpg

请问该如何修改代码,谢谢

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 2024-9-29 14:09:39
石头 发表于 2019-3-16 01:46
我希望显示下面这样的公式效果:

MathJax 版本 2 提供以下字体:

MathJax TeX(默认)
STIX General
Asana Math
Neo Euler
Gyre Pagella
Gyre Termes
Latin Modern

docs.mathjax.org/en/latest/output/fonts.html

但 MathJax v3 仅支持一种字体,即 MathJax TeX 字体。

手机版Mobile version|Leisure Math Forum

2025-4-20 11:42 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list