使用Markdown编写数学等式

2018-04-16  本文已影响131人  星海之眸

Math equations

  1. by align

try to use this code:

$$
\begin{align}
h(x) =& \frac{1}{\int_xt(x)\mathrm{d}x} \tag{1}\\
f(x) =& \frac{1}{\int_x\eta(x)\mathrm{d}x}g(x)\tag{2}
\end{align}
$$

and it will look like this below:


公式1

or like this code

$$
\begin{align}
a &= b + c \tag{3}\\
  &= d + e + f\tag{4}
\end{align}
$$

and we will get equations below:


公式2
  1. by eqnarray
    try this code:
$$
\begin{eqnarray}
a & = & b + c \\
& = & d + e + f + g + h + i
+ j + k + l\\
&& +\: m + n + o \\
& = & p + q + r + s
\end{eqnarray}
$$

and we will get things like this:


公式3

Some other things

上一篇下一篇

猜你喜欢

热点阅读