Forgot password?
 Register account
View 233|Reply 1

行间公式前后距离

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2024-3-3 04:55 |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.

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

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

Mobile version|Discuz Math Forum

2025-6-5 01:22 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit