Forgot password
 Register account
View 136|Reply 1

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

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2023-2-11 08:45 |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" 属性

3211

Threads

7832

Posts

52

Reputation

Show all posts

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

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 06:03 GMT+8

Powered by Discuz!

Processed in 0.010812 seconds, 22 queries