在 Markdown 中使用 LaTeX

本文最后更新于 2025年10月23日 星期四 14:53

字体

命令 样式
\mathbf Boldface \(\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathbf{abcdefghijklmnopqrstuvwxyz}\)
\mathsf Sans serif \(\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathsf{abcdefghijklmnopqrstuvwxyz}\)
\mathcal Calligraphic \(\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathcal{abcdefghijklmnopqrstuvwxyz}\)
\mathbb\Bbb Blackboard bold \(\Bbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\Bbb{abcdefghijklmnopqrstuvwxyz}\)
\mathtt\texttt Typewriter \(\mathtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathtt{abcdefghijklmnopqrstuvwxyz}\)
\mathrm\textup Roman \(\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathrm{abcdefghijklmnopqrstuvwxyz}\)
\mathscr Script \(\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathscr{abcdefghijklmnopqrstuvwxyz}\)
\mathfrak Fraktur \(\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\) \(\mathfrak{abcdefghijklmnopqrstuvwxyz}\)

字母符号

\(\aleph\) \aleph \(\beth\) \beth
\(\daleth\) \daleth \(\gimel\) \gimel
\(\backepsilon\) \backepsilon \(\eth\) \eth
\(\Im\) \Im \(\Re\) \re
\(\imath\) \imath \(\jmath\) \jmath
\(\Bbbk\) \Bbbk \(\ell\) \ell
\(\Finv\) \Finv \(\Game\) \Game
\(\hslash\) \hslash \(\wp\) \wp
\(\prime\) \prime \(\backprime\) \backprime

上下划线

\(\widehat{abc}\) \widehat{abc}
\(\widetilde{abc}\) \widetilde{abc}
\(\overbrace{abc}\) \overbrace{abc}
\(\underbrace{abc}\) \underbrace{abc}
\(\overset{\LARGE{\frown}}{AB}\) \overset{\LARGE{\frown}}{AB}
\(\acute{a}\) \acute{a}
\(\check{a}\) \check{a}
\(\grave{a}\) \grave{a}
\(\breve{a}\) \breve{a}
\(\tilde{a}\) \tilde{a}

大型运算符

\(\prod\) \prod
\(\coprod\) \coprod
\(\biguplus\) \biguplus
\(\bigoplus\) \bigoplus
\(\bigotimes\) \bigotimes
\(\bigodot\) \bigodot
\(\bigvee\) \bigvee
\(\bigwedge\) \bigwedge
\(\bigsqcup\) \bigsqcup

运算符

\(\equiv\) \equiv
\(\sim\) \sim \(\simeq\) \simeq
\(\approx\) \approx \(\thickapprox\) \thickapprox
\(\approxeq\) \approxeq \(\cong\) \cong
\(\nless\) \nless \(\ngtr\) \ngtr
\(\nleq\) \nleq \(\ngeq\) \ngeq
\(\nleqslant\) \nleqslant \(\ngeqslant\) \ngeqslant
\(\leqq\) \leqq \(\geqq\) \geqq
\(\nleqq\) \nleqq \(\ngeqq\) \ngeqq
\(\lessapprox\) \lessapprox \(\gtrapprox\) \gtrapprox
\(\varnothing\) \varnothing \(\emptyset\) \emptyset
\(\subset​\) \subset​ \(\supset\) \supset
\(\subseteq​\) \subseteq \(\supseteq\) \supseteq
\(\subseteqq​\) \subseteqq \(\supseteqq\) \supseteqq
\(\nsupseteq\) \nsupseteq
\(\nsupseteqq\) \nsupseteqq
\(\propto\) \propto \(\varpropto\) \varpropto
\(\parallel\) \parallel \(\nparallel\) \nparallel
\(\perp\) \perp
\(\measuredangle\) \measuredangle \(\sphericalangle\) \sphericalangle
\(\surd\) \surd \(\complement\) \complement

箭头

\(\uparrow\) \uparrow \(\downarrow\) \downarrow \(\updownarrow\) \updownarrow
\(\Uparrow\) \Uparrow \(\Downarrow\) \Downarrow \(\Updownarrow\) \Updownarrow
\(\upuparrows\) \upuparrows \(\downdownarrows\) \downdownarrows
\(\upharpoonleft\) \upharpoonleft \(\downharpoonleft\) \downharpoonleft
\(\upharpoonright\) \upharpoonright \(\downharpoonright\) \downharpoonright
\(\nwarrow\) \nwarrow \(\nearrow\) \nearrow
\(\swarrow\) \swarrow \(\searrow\) \searrow
\(\mapsto\) \mapsto \(\longmapsto\) \longmapsto
\(\leadsto\) \leadsto \(\multimap\) \multimap
\(\leftrightharpoons\) \leftrightharpoons \(\rightleftharpoons\) \rightleftharpoons

特殊符号

\(\sharp\) \sharp \(\flat\) \flat
\(\natural\) \natural \(\star\) \star
\(\ast\) \ast* \(\bigstar\) \bigstar
\(\spadesuit\) \spadesuit \(\heartsuit\) \heartsuit
\(\diamondsuit\) \diamondsuit \(\clubsuit\) \clubsuit
\(\diamond\) \diamond
\(\Diamond\lozenge\) \Diamond\lozenge \(\blacklozenge\) \blacklozenge
\(\square\) \square \(\blacksquare\) \blacksquare
\(\triangle\) \triangle \(\blacktriangle\) \blacktriangle
\(\triangledown\) \triangledown \(\blacktriangledown\) \blacktriangledown
\(\vartriangle\) \vartriangle \(\circledS\) \circledS
\(\ulcorner\) \ulcorner \(\urcorner\) \urcorner
\(\llcorner\) \llcorner \(\lrcorner\) \lrcorner
\(\diagup\) \diagup \(\diagdown\) \diagdown
\(\setminus\) \setminus
\(\dagger\) \dagger

上下标记

\[ {2\choose 1}, \binom{2}{1} \]

1
{2\choose 1}, \binom{2}{1}

矩阵与表格

\[ \begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix}, \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, \begin{Bmatrix} 1 & 0 \\ 0 & 1 \end{Bmatrix}, \begin{vmatrix} 1 & 0 \\ 0 & 1 \end{vmatrix}, \begin{Vmatrix} 1 & 0 \\ 0 & 1 \end{Vmatrix} \]

分别为 {matrix}, {pmatrix}, {pmatrix}, {Bmatrix}, {vmatrix}, {Vmatrix} 环境。

\[ \begin{array}{|c|lll|} & a & b & c \\ \hline A & x & y & z \\ \end{array} \]

1
2
3
4
5
\begin{array}{|c|lll|}
& a & b & c \\
\hline
A & x & y & z \\
\end{array}

其他

\[ A\stackrel{r}{\sim}B \]

1
A\stackrel{r}{\sim}B

\[ \begin{CD} A @>a>> B \\ @VbVV @AAcA \\ C @= D \end{CD} \]

1
2
3
4
5
\begin{CD}
A @>a>> B \\
@VbVV @AAcA \\
C @= D
\end{CD}

\[ \begin{CD} A @>a>b> B \\ @VlVrV @AlArA \\ C @<a<b< D \end{CD} \]

1
2
3
4
5
\begin{CD}
A @>a>b> B \\
@VlVrV @AlArA \\
C @<a<b< D
\end{CD}

在 Markdown 中使用 LaTeX
https://blog.gtbcamp.cn/article/latex-in-markdown/
作者
Great Thunder Brother
发布于
2023年3月19日
更新于
2025年10月23日
许可协议