Forgot password
 Register account
View 240|Reply 1

行间公式前后距离

[Copy link]

3211

Threads

7832

Posts

52

Reputation

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.

3211

Threads

7832

Posts

52

Reputation

Show all posts

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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:49 GMT+8

Powered by Discuz!

Processed in 0.010274 seconds, 22 queries