使用 Mathjax 显示有理数

Displaying rational numbers using Mathjax

你知道为什么我写:

`1/2`

显示为分数(1大于2)。但是当我写:

\begin{align} 10x &= 5 \ x &= 1/2 \end{align}

它显示了 1/2(彼此相邻)。

(我使用 Mathjax)

第一种形式使用 AsciiMath 预处理器:

By default, the asciimath2jax preprocessor defines the back-tick (`) as the delimiters for mathematics in AsciiMath format.

http://docs.mathjax.org/en/latest/asciimath.html#asciimath-delimiters

后者使用了 LaTex 预处理器语法,因此你必须这样写:

 \begin{align} 10x &= 5 \ x &= \frac{1}{2} \end{align}

http://docs.mathjax.org/en/latest/tex.html#automatic-equation-numbering