Forgot password?
 Create new account
View 88|Reply 1

[MathJax] = 后面有 mo 设置了 lspace 就自动添加 rspace 属性

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2023-2-11 08:45:14 |Read mode
  1. \(=1\mmlToken{mo}[lspace=.2 rspace=.1]{d}x\)
Copy the Code

\(=1\mmlToken{mo}[lspace=.2 rspace=.1]{d}x\)
生成的MathML为
  1. <math xmlns="http://www.w3.org/1998/Math/MathML">
  2.   <mo>=</mo>
  3.   <mn>1</mn>
  4.   <mo lspace=".2" rspace=".1">d</mo>
  5.   <mi>x</mi>
  6. </math>
Copy the Code

把1去掉:
  1. \(=\mmlToken{mo}[lspace=.2 rspace=.1]{d}x\)
Copy the Code

\(=\mmlToken{mo}[lspace=.2 rspace=.1]{d}x\)
生成的MathML为
  1. <math xmlns="http://www.w3.org/1998/Math/MathML">
  2.   <mo rspace="0pt">=</mo>
  3.   <mo lspace=".2" rspace=".1">d</mo>
  4.   <mi>x</mi>
  5. </math>
Copy the Code

可见, 这里的 = 被自动加上了 rspace="0pt" 属性

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2023-2-11 08:49:31
是否和MathJax closed issue 2392有关?
I also implemented your Max(rspace,lspace) idea. So I think that should resolve the issues here.

手机版Mobile version|Leisure Math Forum

2025-4-20 22:25 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list