最近准备写个比较长的文章,mac自带的pages感觉有些厚重了,打算用markdown来写。macdown还是很值得推荐的一款编辑器。
公式的编辑花了些时间来找,最后发现只是默认配置没有打开。在Preferences中选中 “Tex-like math syntax”即可:
例子-1: 行内公式:$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$
可见: Γ(n)=(n−1)!∀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
(a≠0)
, there are two solutions to
(ax2+bx+c=0)
and they are:
x=−b±b2−4ac‾‾‾‾‾‾‾‾√2a
x˙y˙z˙=σ(y−x)=ρx−y−xz=−βz+xy