你试试,另外引用里的公式不显示的。就是用
包起来的文本。
似乎是单行适用于一个 $ 包起来。
多行就两个 $$,但让它独立一行。
我当然不反对开
%I=U/R%
I=U/R
是的。单刀是所谓的 inline formula;双刀是所谓的 display formula。
百分号也行啊
单 $
是行内公式,例如在 1 \times 1 \neq 0 存在于一句话之中; $$……$$
是行间公式,会另起新行。大概是这样
$$E^2 = p^2c^2 + m^2c^4$$
$$E^2 = p^2c^2 + m^2c^4$$
\uparrow 这个怎么没变。
那就是 asciimath 了。它的语法简单一点。$1/2$
跟 %1/2%
不一样: 1/2, 1/2 。
$$
E^2 = p^2c^2 + m^2c^4
$$
$$
\Rightarrow q \quad \text{or} \quad q \Leftarrow
$$
E^2 = p^2c^2 + m^2c^4
有点随机
确实这样。
似乎单行中使用单个 没问题,双 会随机
的确。顺便,$ $
中的汉字被认为是公式了。
测试一下
也还好吧,正常情况下,很少有几率出现一行中两个 $ 的情况
测试。
$$
E^2 = p^2c^2 + m^2c^4
$$
$$E^2 = p^2c^2 + m^2c^4$$
$$E^2 = p^2c^2 + m^2c^4$$
\(x^2 + y^2 = z^2\)
(x^2 + y^2 = z^2)
\[ x^n + y^n = z^n \]
[ x^n + y^n = z^n ]
\begin{math}E=mc^2\end{math}
\begin{math}E=mc^2\end{math}
\begin{displaymath}
\sqrt{x^2+1}
\end{displaymath}
\begin{displaymath}
\sqrt{x^2+1}
\end{displaymath}
\begin{equation}
E=m
\end{equation}
\begin{equation}
E=m
\end{equation}
\$20 \$40
$20 $40
这也不是问题。
这是官网的插件介绍。下面的文字讨论了它跟老插件的区别。具体地说,在新插件里,只有 $
与 $$
能用。
What about the old plugin?
There is a plugin maintained by @Kasper/ @masda70 called Discourse MathJax . This plugin is a ground up re-write to support the new markdown it engine. The main differences are:
- It is much stricter about block and inline syntax, only $ and $$ blocks are supported
- It embeds MathJax or KaTeX renderer so you do not need to use a CDN
- It only loads the math renderer if it detects equations on the page.
- It surgically applies renderer as opposed to performing full page scans.
- It is well specified using specs
我说昨天论坛怎么老看到在升级的提示。。。