热烈庆祝小众论坛支持算学公式输入输出

你试试,另外引用里的公式不显示的。就是用 包起来的文本。

\begin{align*} \eta_{\text{eM}}^2 &= \frac{5.56}{\bar{n}*{\text{ph}} F* {\text{ph}} g_c \bar{Q}<em>{k}} (1 + \frac{\delta}{\delta_1}\frac{1}{\delta-1}) \ \eta &= \sqrt{\eta</em> {\text{eM}}^2 + \eta_{T}^2 + \eta_{I}^2} \end{align*}

似乎是单行适用于一个 $ 包起来。

多行就两个 $$,但让它独立一行。

我当然不反对开 :joy:

%I=U/R%

I=U/R

是的。单刀是所谓的 inline formula;双刀是所谓的 display formula。

百分号也行啊

$ 是行内公式,例如在 1 \times 1 \neq 0 存在于一句话之中; $$……$$ 是行间公式,会另起新行。大概是这样 :joy:

$$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
$$
E^2 = p^2c^2 + m^2c^4
$$
$$
\Rightarrow q \quad \text{or} \quad q \Leftarrow
$$
\Rightarrow q \quad \text{or} \quad q \Leftarrow

E^2 = p^2c^2 + m^2c^4

有点随机 :dog:

确实这样。

似乎单行中使用单个 没问题,双 会随机

的确。顺便,$ $ 中的汉字被认为是公式了。

测试一下

也还好吧,正常情况下,很少有几率出现一行中两个 $ 的情况

测试。

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

我说昨天论坛怎么老看到在升级的提示。。。