关于MathJax的彻底重写
MathJax的彻底重写
从v2升级到v3,官方团队直接把2的代码彻底重写了,官方明文:
MathJax v3 is a complete rewrite of MathJax from the ground up (see What’s New in MathJax v3.0), and so its internal structure is quite different from that of version 2. That means MathJax v3 is not a drop-in replacement for MathJax v2, and upgrading to version 3 takes some adjustment to your web pages. |
---|
因此会出现一些不太兼容的问题,好处是效率提高了60% ~ 80%,这点还是很好的。
MathJax常见问题
无法换行
v3很多多行公式开始变得没法换行了。
double反斜杠
WordPress uses \ as a special character, and it is often stripped out of WordPress posts (depending on what editor you are using). As an escape character, it can prevent the normal action of the character that follows it, so to get an explicit backslash into your post, you need to double it. That is why you need an extra backslash (because the first two equal a single backslash in the output). You probably should double the second one as well, but apparently that is not required. |
---|
“WordPress使用\
作为特殊字符,并且它经常被从WordPress帖子中剥离出来(取决于您使用的编辑器)。”
使用\displaylines
使用{align}
或者{aligned}
这种方式当然也有优点, 就是方便公式的对齐, 因为对齐时候必须要在多行公式的环境里面.