1. 程式人生 > 其它 >markdown 數學公式語法對照

markdown 數學公式語法對照

目錄

建議參考這三個官方資源。


希臘字母表

名稱 code 大寫 code 小寫
alpha $\Alpha$ \(\Alpha\) $\alpha$ \(\alpha\)
beta $\Beta$ \(\Beta\) $\beta$ \(\beta\)
gamma $\Gamma$ \(\Gamma\) $\gamma$ \(\gamma\)
delta $\Delta$ \(\Delta\) $\delta$ \(\delta\)
epsilon $\Epsilon$ \(\Epsilon\) $\epsilon$ \(\epsilon\)
zeta $\Zeta$ \(\Zeta\) $\zeta$ \(\zeta\)
eta $\Eta$ \(\Eta\) $\eta$ \(\eta\)
theta $\Theta$ \(\Theta\) $\theta$ \(\theta\)
iota $\Iota$ \(\Iota\) $\iota$ \(\iota\)
kappa $\Kappa$ \(\Kappa\) $\kappa$ \(\kappa\)
lambda $\Lambda$ \(\Lambda\) $\lambda$
\(\lambda\)
mu $\Mu$ \(\Mu\) $\mu$ \(\mu\)
nu $\Nu$ \(\Nu\) $\nu$ \(\nu\)
xi $\Xi$ \(\Xi\) $\xi$ \(\xi\)
omicron $\Omicron$ \(\Omicron\) $\omicron$ \(\omicron\)
pi $\Pi$ \(\Pi\) $\pi$ \(\pi\)
rho $\Rho$ \(\Rho\) $\rho$ \(\rho\)
sigma $\Sigma$ \(\Sigma\) $\sigma$ \(\sigma\)
tau $\Tau$
\(\Tau\) $\tau$ \(\tau\)
upsilon $\Upsilon$ \(\Upsilon\) $\upsilon$ \(\upsilon\)
phi $\Phi$ \(\Phi\) $\phi$ \(\phi\)
chi $\Chi$ \(\Chi\) $\chi$ \(\chi\)
psi $\Psi$ \(\Psi\) $\psi$ \(\psi\)
omega $\Omega$ \(\Omega\) $\omega$ \(\omega\)

微分

語法 示例
$\nabla$ \(\nabla {x}\)
$\mathrm{d} x$ \(\mathrm{d} x\)
$\dot y$ \(\dot y\)
$\ddot {y}$ \(\ddot y\)
$\partial x$ \(\partial x\)

分數

\frac{abc}{xyz} \(\frac{abc}{xyz}\)

對齊

需要對齊的內容以\begin{align}\end{aligned}包圍,在需要對齊的符號(如等號)前加&來標記,用\\來換行。