6

如何在 Markdown 中使用 LaTeX

 2 years ago
source link: https://wiki-power.com/%E5%A6%82%E4%BD%95%E5%9C%A8Markdown%E4%B8%AD%E4%BD%BF%E7%94%A8LaTeX
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

如何在 Markdown 中使用 LaTeX

Markdown 原生支持使用 LaTeX 编写数学公式和符号。

字体样式#

  • 换行:\\
  • 空格:\
  • 居中:使用 $$ 包裹
  • 字体样式:加粗:\mathbf、斜体:\mathit
  • 字体大小:\tiny\scriptsize\small\normalsize\large\Large\huge\Huge
  • 颜色:\color{颜色值}{数/字/符}
  • 注释:\text{内容}

上 / 下标#

  • 上标:^
  • 下标:_
  • 如有嵌套,使用 {} 包含。

例: X3n2mX^{2m}_{3n}X3n2m​

上 / 下划线#

  • 上划线:\overline
  • 下划线:\underline

例:x2+a+b‾\overline{x^2+a+b}x2+a+b​

分数#

分数的表示:\frac{分子}{分母}

方程组#

方式一:\begin{array}{c} 表达式一\\表达式二... \end{array} 方式二:\begin{cases}…\end{cases}

开平方根#

格式:\sqrt[n]{x},其中 n 表示开根次数,x` 表示被开方项。

希腊字母#

希腊字母(大写)表达式希腊字母 (小写)表达式AAα\alphaBBβ\betaΓ\Gammaγ\gammaΔ\Deltaδ\deltaEEϵ\epsilonZZε\varepsilonHHη\etaΘ\Thetaθ\thetaIIι\iotaKKκ\kappaΛ\Lambdaλ\lambdaMMμ\muNNν\nuΞ\Xiξ\xiOOο\omicronΠ\Piπ\piPPρ\rhoΣ\Sigmaσ\sigmaTTτ\tauΥ\Upsilonυ\upsilonΦ\Phiϕ\phi−-φ\varphiXXχ\chiΨ\Psiψ\psiΩ\Omegaω\omega

运算符#

运算符表达式运算符表达式±\pm∅\emptyset×\times∈\in÷\div∉\notin∣\mid⊂\subset⋅\cdot⊃\supset∘\circ⊆\subseteq∗\ast⊇\supseteq⨀\bigodot⋂\bigcap⨂\bigotimes⋃\bigcup⨁\bigoplus⋁\bigvee≤\leq⋀\bigwedge≥\geq≠\neq≈\approx≡\equiv

微积分符号#

运算符表达式运算符表达式∮\oint∞\infty∇\nabla∫\int∑\sumlim\lim→\vec{}--

逻辑符号#

运算符表达式运算符表达式∵\because∴\therefore∀\forall∃\exists

参考与致谢#


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK