-->

MathJax左对齐上渲染(MathJax left align on render)

2019-10-23 07:13发布

我如何左对齐所有MathJax方程“上渲染”。 当您设置displayAlign: "left" ,公式将首先为中心,再经过0.5秒,他们向左移动。 所以基本上,它闪烁的左边,这是视觉上不舒服。

有没有一种方法,使之出现在上呈现左边? 这是我现在的代码。

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  config: ["MMLorHTML.js"],
  jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML", "output/CommonHTML"],
  extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js", "CHTML-preview.js"],
  TeX: {
    extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  },
  displayAlign: "left"
});
</script>
<script src="//cdn.mathjax.org/mathjax/latest/MathJax.js"></script>

Answer 1:

您看到的闪光是由于快速预览模式( chtml-preview.js ),它使用在V2.5引入了CommonHTML输出。 该模式是为了更好的速度,这包括缺乏取向的有意不完整的。

禁用快速预览解决问题的直接的方式。

(该CommonHTML输出将成为功能完整的在即将到来的V2.6版本。)



文章来源: MathJax left align on render