Forgot password?
 Create new account
View 111|Reply 1

行间公式前后距离

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2024-3-3 04:55:19 |Read mode
在TeX中,行间公式前后距离由\abovedisplayshortskip、\belowdisplayshortskip、\abovedisplayskip、\belowdisplayskip设置。

在MathJax中,是CSS margin,可以在MathJax config中的startup中的ready(){}中的MathJax.startup.defaultReady();后加一句:(这里假定用SVG)
  1. MathJax._.output.svg.Wrappers.math.SvgMath.styles['mjx-container[jax="SVG"][display="true"]'].margin="16px 0";
Copy the Code

就可以修改MathJax插入的CSS,把行间公式前后距离设为16px.

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2024-3-3 05:01:15
v3的
MathJax._.output.svg.Wrappers.math.SVGmath
升級到v4,名字改成了
MathJax._.output.svg.Wrappers.math.SvgMath

手机版Mobile version|Leisure Math Forum

2025-4-20 22:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list