MathJax左对齐渲染 [英] MathJax left align on render

查看:234
本文介绍了MathJax左对齐渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何左对齐所有MathJax方程渲染中" .设置displayAlign: "left"时,方程式将首先居中,然后在0.5s之后向左移动.所以基本上,它会向左闪烁,这在视觉上是不愉快的.

How do I left-align all MathJax equation "on-render". When you set displayAlign: "left", the equations would first be centered, then after 0.5s, they move to the left. So basically, it flashes to the left, which is visually unpleasant.

有没有一种方法可以使其显示在渲染器的左侧?这是我现在的代码.

Is there a way to make it appear on the left on render? This is the code I have now.

<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>

推荐答案

您看到的Flash是由于快速预览模式(chtml-preview.js)所致,该模式使用v2.5中引入的CommonHTML输出.为了提高速度(包括缺乏对齐),该模式故意不完整.

The flash that you are seeing is due to the fast preview mode (chtml-preview.js), which uses the CommonHTML output introduced in v2.5. That mode is intentionally incomplete for better speed, which includes lack of alignment.

禁用快速预览是解决问题的直接方法.

Disabling the fast preview is the straight forward way of resolving the problem.

(CommonHTML输出将在即将发布的v2.6版本中完成功能.)

(The CommonHTML output will become feature complete in the upcoming v2.6 release.)

这篇关于MathJax左对齐渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆