[已解决] Mathjax3.0 如何渲染删除线

| Web Design | 1k+ Reads

代码:

$$\enclose{horizontalstrike} { Input anything you want to delete. }$$

但是效果会看起来全部粘在一起,就像这样:

$$\enclose{horizontalstrike} { Input anything you want to delete. }$$

你需要做的是,在每个空格位置增加\;

$$\enclose{horizontalstrike} { Input\;anything\;you\;want\;to\;delete. }$$

效果:

$$\enclose{horizontalstrike} { Input\;anything\;you\;want\;to\;delete. }$$

 

使用例:

$${\color{red} \enclose{horizontalstrike}{(x^\mu)'=0}} 

效果:

$${\color{red} \enclose{horizontalstrike}{(x^\mu)'=0}} \;   \;  (x^n)'=nx^{n-1}$$

This article was last edited at