在macdown裏編輯公式

最近準備寫個比較長的文章,mac自帶的pages感覺有些厚重了,打算用markdown來寫。macdown還是很值得推薦的一款編輯器。

公式的編輯花了些時間來找,最後發現只是默認配置沒有打開。在Preferences中選中 “Tex-like math syntax”即可:

公式編輯開關

例子-1: 行內公式:$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$

可見:Γ(n)=(n1)!n

例子-2:

When $\\( a \ne 0 )$, there are two solutions to $\\(ax^2 + bx + c = 0)$ and they are:
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$

$$
\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned}
$$

When (a0) , there are two solutions to (ax2+bx+c=0) and they are:

x=b±b24ac2a

x˙y˙z˙=σ(yx)=ρxyxz=βz+xy
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章