KaTeX doc
前前言
文章转载自【KaTeX 数学公式大全】,有些许修改。
前言
由于在洛谷,有很多人对于 \(\KaTeX\) 和 \(\LaTeX\) 之间的关系并不清楚,导致很多人去搜 \(\LaTeX\) 的资料,然后发现有许多指令无法在洛谷运行。
但是事实上,\(\KaTeX\) 才是洛谷上的 \(\LaTeX\) 的渲染机制。因此只有 \(\KaTeX\) 支持的指令才能正常使用。在 \(\KaTeX\) 官网,其实有两张支持表,这里搬运过来以便于大家能够正确使用指令。
这张表应该涵盖了纯 \(\KaTeX\) 所有的功能。当然,\(\LaTeX\) 公式大全亦可作为部分参考。下面是搬运部分。
受支持的功能
本文是一个 \(\KaTeX\) 支持的 \(\TeX\) 公式清单,按照逻辑分类。
有一个类似的支持表,按照字典序排列,包含了所有支持和不受支持的公式。
声调
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(a'\) a' |
\(\tilde{a}\) \tilde{a} |
\(\mathring{g}\) \mathring{g} |
\(a''\) a'' |
\(\widetilde{ac}\) \widetilde{ac} |
\(\overgroup{AB}\) \overgroup{AB} |
\(a^{\prime}\) a^{\prime} |
\(\utilde{AB}\) \utilde{AB} |
\(\undergroup{AB}\) \undergroup{AB} |
\(\acute{a}\) \acute{a} |
\(\vec{F}\) \vec{F} |
\(\Overrightarrow{AB}\) \Overrightarrow{AB} |
\(\bar{y}\) \bar{y} |
\(\overleftarrow{AB}\) \overleftarrow{AB} |
\(\overrightarrow{AB}\) \overrightarrow{AB} |
\(\breve{a}\) \breve{a} |
\(\underleftarrow{AB}\) \underleftarrow{AB} |
\(\underrightarrow{AB}\) \underrightarrow{AB} |
\(\check{a}\) \check{a} |
\(\overleftharpoon{ac}\) \overleftharpoon{ac} |
\(\overrightharpoon{ac}\) \overrightharpoon{ac} |
\(\dot{a}\) \dot{a} |
\(\overleftrightarrow{AB}\) \overleftrightarrow{AB} |
\(\overbrace{AB}\) \overbrace{AB} |
\(\ddot{a}\) \ddot{a} |
\(\underleftrightarrow{AB}\) \underleftrightarrow{AB} |
\(\underbrace{AB}\) \underbrace{AB} |
\(\dddot{a}\) \dddot{a} |
\(\overline{AB}\) \overline{AB} |
\(\overlinesegment{AB}\) \overlinesegment{AB} |
\(\ddddot{a}\) \ddddot{a} |
\(\underline{AB}\) \underline{AB} |
\(\underlinesegment{AB}\) \underlinesegment{AB} |
\(\grave{a}\) \grave{a} |
\(\widecheck{ac}\) \widecheck{ac} |
\(\underbar{X}\) \underbar{X} |
\(\hat{\theta}\) \hat{\theta} |
\(\widehat{ac}\) \widehat{ac} |
用于 \text{...} 环境下的音调符号
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\text{'{a}}\) '{a} |
\(\text{\~{a}}\) \~{a} |
\(\text{\.{a}}\) \.{a} |
\(\text{\H{a}}\) \H{a} |
\(\text{\`{a}}\) `{a} |
\(\text{\={a}}\) \={a} |
\(\text{\"{a}}\) \"{a} |
\(\text{\v{a}}\) \v{a} |
\(\text{\^{a}}\) \^{a} |
\(\text{\u{a}}\) \u{a} |
\(\text{\r{a}}\) \r{a} |
另请参阅[字母及 \(\text{Unicode}\) ](#字母及 \(\text{Unicode}\))章节。
定界符
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\((~)\) (~) |
\(\lparen~\rparen\) \lparen~\rparen |
\(\lceil~\rceil\) \lceil~\rceil |
\(\uparrow\) \uparrow |
\([~]\) [~] |
\(\lbrack~\rbrack\) \lbrack~\rbrack |
\(\lfloor~\rfloor\) \lfloor~\rfloor |
\(\downarrow\) \downarrow |
\(\{~\}\) \{~\} |
\(\lbrace~\rbrace\) \lbrace~\rbrace |
\(\lmoustache~\rmoustache\) \lmoustache~\rmoustache |
\(\updownarrow\) \updownarrow |
\(\langle~\rangle\) \langle~\rangle |
\(\lgroup~\rgroup\) \lgroup~\rgroup |
\(\backslash\) \backslash |
\(\Uparrow\) \Uparrow |
\(\vert\) | |
\(\vert\) \vert |
\(\ulcorner~\urcorner\) \ulcorner~\urcorner |
\(\Downarrow\) \Downarrow |
\(\Vert\) \| |
\(\Vert\) \Vert |
\(\llcorner~\lrcorner\) \llcorner~\lrcorner |
\(\Updownarrow\) \Updownarrow |
\(\lvert~\rvert\) \lvert~\rvert |
\(\lVert~\rVert\) \lVert~\rVert |
\left. |
\right. |
\(\lang~\rang\) \lang~\rang |
\(\lt~\gt\) \lt~\gt |
\(\llbracket~\rrbracket\) \llbracket~\rrbracket |
\(\lBrace~\rBrace\) \lBrace~\rBrace |
\(\rm Unicode\) 版本:\(⌈~⌉~⌊~⌋~⎰~⎱~⟮~⟯~┌~┐~└~┘~⟦~⟧\) ⌈~⌉~⌊~⌋~⎰~⎱~⟮~⟯~┌~┐~└~┘~⟦~⟧。
定界符大小
\(\left(\LARGE{AB}\right)\) \left(\LARGE{AB}\right)
\(( \big( \Big( \bigg( \Bigg(\) ( \big( \Big( \bigg( \Bigg(
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 |
|---|---|---|---|---|
\left |
\big |
\bigl |
\bigm |
\bigr |
\middle |
\Big |
\Bigl |
\Bigm |
\Bigr |
\right |
\bigg |
\biggl |
\biggm |
\biggr |
\Bigg |
\Biggl |
\Biggm |
\Biggr |
环境
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
| \(\begin{matrix} a & b \\ c & d \end{matrix}\) | \begin{matrix} a & b \\ c & d \end{matrix} |
\(\begin{array}{cc} a & b \\ c & d \end{array}\) | \begin{array}{cc} a & b \\ c & d \end{array} |
| \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}\) | \begin{pmatrix} a & b \\ c & d \end{pmatrix} |
\(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\) | \begin{bmatrix} a & b \\ c & d \end{bmatrix} |
| \(\begin{vmatrix} a & b \\ c & d \end{vmatrix}\) | \begin{vmatrix} a & b \\ c & d \end{vmatrix} |
\(\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}\) | \begin{Vmatrix} a & b \\ c & d \end{Vmatrix} |
| \(\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}\) | \begin{Bmatrix} a & b \\ c & d \end{Bmatrix} |
\(\def\arraystretch{1.5}\begin{array}{c:c:c} a & b & c \\ \hline d & e & f \\ \hdashline g & h & i \end{array}\) | \def\arraystretch{1.5}\begin{array}{c:c:c} a & b & c \\ \hline d & e & f \\ \hdashline g & h & i \end{array} |
| \(x = \begin{cases} a &\text{if } b \\ c &\text{if } d \end{cases}\) | x = \begin{cases} a &\text{if } b \\ c &\text{if } d \end{cases} |
\(\begin{rcases} a &\text{if } b \\ c &\text{if } d \end{rcases}⇒…\) | \begin{rcases} a &\text{if } b \\ c &\text{if } d \end{rcases}⇒… |
| \(\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\) | \begin{smallmatrix} a & b \\ c & d \end{smallmatrix} |
\(\sum_{\begin{subarray}{l} i\in\Lambda\\ 0<j<n\end{subarray}}\) | \sum_{\begin{subarray}{l} i\in\Lambda\\ 0<j<n\end{subarray}} |
以下是 display-mode only.
\begin{equation}\begin{split} a &= b + c \\ &= e + f \end{split}\end{equation}
\begin{align} a &= b + c \\ d + e &= f \end{align}
\begin{gather} a = b \\ e = b + c \end{gather}
\begin{alignat}{2} 10 &x + &3 &y = 2 \\ 3 &x + &13 &y = 4 \end{alignat}
\begin{CD} A @>a>> B \\ @VbVV @AAcA \\ C @= D \end{CD}
其他环境
| 环境 | 与之前的区别 |
|---|---|
darray, dcases, drcases |
添加 displaystyle |
matrix*, pmatrix*, bmatrix*, Bmatrix*, vmatrix*, Vmatrix* |
take an optional argument to set column alignment, as in \begin{matrix*}[r] |
equation*, gather*, align*, alignat* |
have no automatic numbering. Alternatively, you can use \nonumber or \notag to omit the numbering for a specific row of the equation. |
gathered, aligned, alignedat |
do not need to be in display mode. have no automatic numbering. must be inside math delimiters in order to be rendered by the auto-render extension. |
Acceptable line separators include: \\, \cr, \\[distance], and \cr[distance]. Distance can be written with any of the KaTeX units.
The {array} environment supports | and : vertical separators.
The {array} environment does not yet support \cline or \multicolumn.
\tag can be applied to individual rows of top-level environments
(align, align*, alignat, alignat*, gather, gather*).
HTML
The following "raw HTML" features are potentially dangerous for untrusted
inputs, so they are disabled by default, and attempting to use them produces
the command names in red (which you can configure via the errorColor
option). To fully trust your LaTeX input, you need to pass
an option of trust: true; you can also enable just some of the commands
or for just some URLs via the trust option.
| \(\href{https://katex.org/}{\KaTeX}\) | \href{https://katex.org/}{\KaTeX} |
| \(\url{https://katex.org/}\) | \url{https://katex.org/} |
| \(\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://katex.org/img/khan-academy.png}\) | \includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://katex.org/img/khan-academy.png} |
\(\htmlId{bar}{x}\) …<span id="bar" class="enclosing">…x…</span>… |
\htmlId{bar}{x} |
\(\htmlClass{foo}{x}\) …<span class="enclosing foo">…x…</span>… |
\htmlClass{foo}{x} |
\(\htmlStyle{color: red;}{x}\) …<span style="color: red;" class="enclosing">…x…</span>… |
\htmlStyle{color: red;}{x} |
\(\htmlData{foo=a, bar=b}{x}\) …<span data-foo="a" data-bar="b" class="enclosing">…x…</span>… |
\htmlData{foo=a, bar=b}{x} |
\includegraphics supports height, width, totalheight, and alt in its first argument. height is required.
HTML extension (\html-prefixed) commands are non-standard, so loosening strict option for htmlExtension is required.
字母及 \(\text{Unicode}\)
希腊字母
直接输入:
\(Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω\)
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
\(α β γ δ ϵ ζ η θ ι κ λ μ ν ξ o π ρ σ τ υ ϕ χ ψ ω ε ϑ ϖ ϱ ς φ ϝ\)
α β γ δ ϵ ζ η θ ι κ λ μ ν ξ o π ρ σ τ υ ϕ χ ψ ω ε ϑ ϖ ϱ ς φ ϝ
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\Alpha\) \Alpha |
\(\Beta\) \Beta |
\(\Gamma\) \Gamma |
\(\Delta\) \Delta |
\(\Epsilon\) \Epsilon |
\(\Zeta\) \Zeta |
\(\Eta\) \Eta |
\(\Theta\) \Theta |
\(\Iota\) \Iota |
\(\Kappa\) \Kappa |
\(\Lambda\) \Lambda |
\(\Mu\) \Mu |
\(\Nu\) \Nu |
\(\Xi\) \Xi |
\(\Omicron\) \Omicron |
\(\Pi\) \Pi |
\(\Rho\) \Rho |
\(\Sigma\) \Sigma |
\(\Tau\) \Tau |
\(\Upsilon\) \Upsilon |
\(\Phi\) \Phi |
\(\Chi\) \Chi |
\(\Psi\) \Psi |
\(\Omega\) \Omega |
\(\varGamma\) \varGamma |
\(\varDelta\) \varDelta |
\(\varTheta\) \varTheta |
\(\varLambda\) \varLambda |
\(\varXi\) \varXi |
\(\varPi\) \varPi |
\(\varSigma\) \varSigma |
\(\varUpsilon\) \varUpsilon |
\(\varPhi\) \varPhi |
\(\varPsi\) \varPsi |
\(\varOmega\) \varOmega |
|
\(\alpha\) \alpha |
\(\beta\) \beta |
\(\gamma\) \gamma |
\(\delta\) \delta |
\(\epsilon\) \epsilon |
\(\zeta\) \zeta |
\(\eta\) \eta |
\(\theta\) \theta |
\(\iota\) \iota |
\(\kappa\) \kappa |
\(\lambda\) \lambda |
\(\mu\) \mu |
\(\nu\) \nu |
\(\xi\) \xi |
\(\omicron\) \omicron |
\(\pi\) \pi |
\(\rho\) \rho |
\(\sigma\) \sigma |
\(\tau\) \tau |
\(\upsilon\) \upsilon |
\(\phi\) \phi |
\(\chi\) \chi |
\(\psi\) \psi |
\(\omega\) \omega |
\(\varepsilon\) \varepsilon |
\(\varkappa\) \varkappa |
\(\vartheta\) \vartheta |
\(\thetasym\) \thetasym |
\(\varpi\) \varpi |
\(\varrho\) \varrho |
\(\varsigma\) \varsigma |
\(\varphi\) \varphi |
\(\digamma\) \digamma |
其他字母
| Column 1 | Column 2 | Column 3 | Column 4 | Column 5 |
|---|---|---|---|---|
\(\imath\) \imath |
\(\nabla\) \nabla |
\(\Im\) \Im |
\(\Reals\) \Reals |
\(\text{\OE}\) \text{\OE} |
\(\jmath\) \jmath |
\(\partial\) \partial |
\(\image\) \image |
\(\wp\) \wp |
\(\text{\o}\) \text{\o} |
\(\aleph\) \aleph |
\(\Game\) \Game |
\(\Bbbk\) \Bbbk |
\(\weierp\) \weierp |
\(\text{\O}\) \text{\O} |
\(\alef\) \alef |
\(\Finv\) \Finv |
\(\N\) \N |
\(\Z\) \Z |
\(\text{\ss}\) \text{\ss} |
\(\alefsym\) \alefsym |
\(\cnums\) \cnums |
\(\natnums\) \natnums |
\(\text{\aa}\) \text{\aa} |
\(\text{\i}\) \text{\i} |
\(\beth\) \beth |
\(\Complex\) \Complex |
\(\R\) \R |
\(\text{\AA}\) \text{\AA} |
\(\text{\j}\) \text{\j} |
\(\gimel\) \gimel |
\(\ell\) \ell |
\(\Re\) \Re |
\(\text{\ae}\) \text{\ae} |
|
\(\daleth\) \daleth |
\(\hbar\) \hbar |
\(\real\) \real |
\(\text{\AE}\) \text{\AE} |
|
\(\eth\) \eth |
\(\hslash\) \hslash |
\(\reals\) \reals |
\(\text{\oe}\) \text{\oe} |
直接输入:
\(∂ ∇ ℑ Ⅎ ℵ ℶ ℷ ℸ ⅁ ℏ ð − ∗\) ∂ ∇ ℑ Ⅎ ℵ ℶ ℷ ℸ ⅁ ℏ ð − ∗
\(ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôöùúûüýþÿ\)
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôöùúûüýþÿ
\(1₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ⁺⁻⁼⁽⁾⁰¹²³⁴⁵⁶⁷⁸⁹ᵃᵇᶜᵈᵉᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻᵝᵞᵟᵠᵡ\)
1₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ⁺⁻⁼⁽⁾⁰¹²³⁴⁵⁶⁷⁸⁹ᵃᵇᶜᵈᵉᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻᵝᵞᵟᵠᵡ
Math-mode Unicode (sub|super)script characters will render as if you had written regular characters in a subscript or superscript. For instance, A²⁺³ will render the same as A^{2+3}.
\(\bold{Unicode}\) 数学字母符号
粗体:
\(𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌𝐍𝐎𝐏𝐐𝐑𝐒𝐓𝐔𝐕𝐖𝐗𝐘𝐙\) 𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌𝐍𝐎𝐏𝐐𝐑𝐒𝐓𝐔𝐕𝐖𝐗𝐘𝐙
\(𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗\) 𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗
双线体:
\(𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐~𝕜\) 𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐~𝕜
意大利斜体:
\(𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻𝐼𝐽𝐾𝐿𝑀𝑁𝑂𝑃𝑄𝑅𝑆𝑇𝑈𝑉𝑊𝑋𝑌𝑍\) 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻𝐼𝐽𝐾𝐿𝑀𝑁𝑂𝑃𝑄𝑅𝑆𝑇𝑈𝑉𝑊𝑋𝑌𝑍
\(𝑎𝑏𝑐𝑑𝑒𝑓𝑔𝑖𝑗𝑘𝑙𝑚𝑛𝑜𝑝𝑞𝑟𝑠𝑡𝑢𝑣𝑤𝑥𝑦𝑧\) 𝑎𝑏𝑐𝑑𝑒𝑓𝑔𝑖𝑗𝑘𝑙𝑚𝑛𝑜𝑝𝑞𝑟𝑠𝑡𝑢𝑣𝑤𝑥𝑦𝑧
粗意大利斜体:
\(𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶𝑷𝑸𝑹𝑺𝑻𝑼𝑽𝑾𝑿𝒀𝒁\) 𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶𝑷𝑸𝑹𝑺𝑻𝑼𝑽𝑾𝑿𝒀𝒁
\(𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛\) 𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛
手写体:
\(𝒜𝒞𝒟𝒢𝒥𝒦𝒩𝒪𝒫𝒬𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵\) 𝒜𝒞𝒟𝒢𝒥𝒦𝒩𝒪𝒫𝒬𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵
花体:
\(𝔄𝔅𝔇𝔈𝔉𝔊𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔𝔖𝔗𝔘𝔙𝔚𝔛𝔜\) 𝔄𝔅𝔇𝔈𝔉𝔊𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔𝔖𝔗𝔘𝔙𝔚𝔛𝔜
\(𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷\) 𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷
无衬线字体:
\(𝖠𝖡𝖢𝖣𝖤𝖥𝖦𝖧𝖨𝖩𝖪𝖫𝖬𝖭𝖮𝖯𝖰𝖱𝖲𝖳𝖴𝖵𝖶𝖷𝖸𝖹\) 𝖠𝖡𝖢𝖣𝖤𝖥𝖦𝖧𝖨𝖩𝖪𝖫𝖬𝖭𝖮𝖯𝖰𝖱𝖲𝖳𝖴𝖵𝖶𝖷𝖸𝖹
\(𝖺𝖻𝖼𝖽𝖾𝖿𝗀𝗁𝗂𝗃𝗄𝗅𝗆𝗇𝗈𝗉𝗊𝗋𝗌𝗍𝗎𝗏𝗐𝗑𝗒𝗓𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫\) 𝖺𝖻𝖼𝖽𝖾𝖿𝗀𝗁𝗂𝗃𝗄𝗅𝗆𝗇𝗈𝗉𝗊𝗋𝗌𝗍𝗎𝗏𝗐𝗑𝗒𝗓𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫
无衬线粗体:
\(𝗔𝗕𝗖𝗗𝗘𝗙𝗚𝗛𝗜𝗝𝗞𝗟𝗠𝗡𝗢𝗣𝗤𝗥𝗦𝗧𝗨𝗩𝗪𝗫𝗬𝗭\) 𝗔𝗕𝗖𝗗𝗘𝗙𝗚𝗛𝗜𝗝𝗞𝗟𝗠𝗡𝗢𝗣𝗤𝗥𝗦𝗧𝗨𝗩𝗪𝗫𝗬𝗭
\(𝗮𝗯𝗰𝗱𝗲𝗳𝗴𝗵𝗶𝗷𝗸𝗹𝗺𝗻𝗼𝗽𝗾𝗿𝘀𝘁𝘂𝘃𝘄𝘅𝘆𝘇𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵\) 𝗮𝗯𝗰𝗱𝗲𝗳𝗴𝗵𝗶𝗷𝗸𝗹𝗺𝗻𝗼𝗽𝗾𝗿𝘀𝘁𝘂𝘃𝘄𝘅𝘆𝘇𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵
无衬线斜体:
\(𝘈𝘉𝘊𝘋𝘌𝘍𝘎𝘏𝘐𝘑𝘒𝘓𝘔𝘕𝘖𝘗𝘘𝘙𝘚𝘛𝘜𝘝𝘞𝘟𝘠𝘡\) 𝘈𝘉𝘊𝘋𝘌𝘍𝘎𝘏𝘐𝘑𝘒𝘓𝘔𝘕𝘖𝘗𝘘𝘙𝘚𝘛𝘜𝘝𝘞𝘟𝘠𝘡
\(𝘢𝘣𝘤𝘥𝘦𝘧𝘨𝘩𝘪𝘫𝘬𝘭𝘮𝘯𝘰𝘱𝘲𝘳𝘴𝘵𝘶𝘷𝘸𝘹𝘺𝘻\) 𝘢𝘣𝘤𝘥𝘦𝘧𝘨𝘩𝘪𝘫𝘬𝘭𝘮𝘯𝘰𝘱𝘲𝘳𝘴𝘵𝘶𝘷𝘸𝘹𝘺𝘻
Monospace:
\(𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉\) 𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉
\(𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿\) 𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿
\(\bold{Unicode}\)
上面列出的字母可以在任何 \(\KaTeX\) 模式下正确渲染。
此外,文本模式始终接受 \(\text{Brahmic}\),\(\text{Georgian}\),中文,日文和韩文的字形。但是,这些字形将从系统字体(而不是 \(\KaTeX\) 提供的字体)中呈现,因此它们的版式可能会发生冲突。您可以为 \(\text{CSS}\) 类 \(^{[4]}\) .latin-fallback,.cyrillic-fallback,.brahmic-fallback,.georgian-fallback,.cjk-fallback 和 .hangul-fallback 中提供规则,以为这些语言提供后备字体。这些字形的使用可能会引起小的垂直对齐问题:\(\KaTeX\) 列出了符号、大多数拉丁字母、希腊和西里尔字母的详细大小度量值,但其他接受的字形则被视为与当前 \(\KaTeX\) 字体中的字母 \(\text{M}\) 一样高。(因此很多时候 \(\KaTeX\) 用字母 \(M\) 作为参考大小——编者注)
如果 \(\KaTeX\) 呈现模式的设置中,\(\text{strict}\) 设置为了 \(\text{false}\) 或 \(\text{warn}\)(默认),则 \(\KaTeX\) 将在文本和数学模式下接受所有 \(\text{Unicode}\) 字母。所有无法识别的字符将被视为它们以文本模式显示。这样可能会遇到使用系统字体以及使用不正确的垂直对齐方式的问题。
对于波斯语中的复合字符,我们正在开发为用户提供的插件。(虽然你可能不会使用它——编者注)
\([4]:\) 因为没怎么写过 \(\rm CSS\),所以可能说明上有一些问题。
布局
标注
| Column 1 | Column 2 |
|---|---|
\(\cancel{5}\) \cancel{5} |
\(\overbrace{a+b+c}^{\text{note}}\) \overbrace{a+b+c}^{\text{note}} |
\(\bcancel{5}\) \bcancel{5} |
\(\underbrace{a+b+c}_{\text{note}}\) \underbrace{a+b+c}_{\text{note}} |
\(\xcancel{ABC}\) \xcancel{ABC} |
\(\not =\) \not = |
\(\sout{abc}\) \sout{abc} |
\(\boxed{\pi=\frac c d}\) \boxed{\pi=\frac c d} |
\(a_{\angl n}\) $a_{\angl n} |
\(a_\angln\) a_\angln |
\(\phase{-78^\circ}\)\phase{-78^\circ} |
\tag{hi} x+y^{2x}
\tag*{hi} x+y^{2x}
换行指令
\(\KaTeX 0.10.0+\) 将在 inline math 环境中于关系或二元运算符(例如 = 或 +)之后自动插入换行符。你可以通过 \nobreak 或将公式放在一对大括号中来阻止自动换行,例如 {F = ma}。\allowbreak 将允许在关系或运算符以外的其他位置自动换行。
硬换行符是 \\ 和 \newline。\(^{[5]}\)
在 display math 环境中,\(\KaTeX\) 不会自动插入换行符。但是当渲染选项 strict 设置为 true 时,它将忽略显示数学模式并且插入硬换行。
\([5]:\) 软换行换行不换段,硬换行换行也换段。简单来说,\(\KaTeX\) 有时会自动换行,但换行之后仍在同一段,也就是软换行。而硬换行之后,两部分内容就分离了。
垂直布局
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(x_n\) x_n |
\(\stackrel{!}{=}\) \stackrel{!}{=} |
\(a \atop b\) a \atop b |
\(e^x\) e^x |
\(\overset{!}{=}\) \overset{!}{=} |
|
\(_u^o\) _u^o |
\(\underset{!}{=}\) \underset{!}{=} |
\(a+\left(\vcenter{\frac{\frac a b}c}\right)\) a+\left(\vcenter{\hbox{$\frac{\frac a b}c$}}\right) |
a\raisebox{0.25em}{$b$}c
\sum_{\substack{0<i<m\\0<j<n}}
\raisebox 和 hbox 将参数转为了文本模式。在参数内嵌套 $...$ 转回数学模式。
\vcenter 可以独立于 \hbox 使用,如果渲染选项 strict 设置为 false,此时省略 $...$。
重叠和间距
| Column 1 | Column 2 |
|---|---|
\({=}\mathllap{/\,}\) {=}\mathllap{/\,} |
\(\left(x^{\smash{2}}\right)\) \left(x^{\smash{2}}\right) |
\(\mathrlap{\,/}{=}\) \mathrlap{\,/}{=} |
\(\sqrt{\smash[b]{y}}\) \sqrt{\smash[b]{y}} |
\(\sum_{\mathclap{1\le i\le j\le n}} x_{ij}\) \sum_{\mathclap{1\le i\le j\le n}} x_{ij}
\(\KaTeX\) 同样支持 \llap\(^{[6]}\),\rlap 和 \clap,但是它们仅能用于文本模式,不能用于数学模式。
\([6]:\) 这里解释一下这个命令的用处:当我们使用巨运算符时,它的上标/下标可能过长,比如 \(\sum\limits_{1\le i\le j \le k \le n}i\times j \times k\),这样 i*j*k 离运算符较远。但是当我们用了这些指令,就可以自动缩小这个距离。
\sum\limits_{\mathclap{1\le i\le j \le k \le n}}i\times j \times k
间隔
| Function | Produces | Function | Produces |
|---|---|---|---|
\, |
3/18 em space | \kern{distance} |
space, width = distance |
\thinspace |
3/18 em space | \mkern{distance} |
space, width = distance |
\> |
4/18 em space | \mskip{distance} |
space, width = distance |
\: |
4/18 em space | \hskip{distance} |
space, width = distance |
\medspace |
4/18 em space | \hspace{distance} |
space, width = distance |
\; |
5/18 em space | \hspace*{distance} |
space, width = distance |
\thickspace |
5/18 em space | \phantom{content} |
space the width and height of content |
\enspace |
1/2 em space | \hphantom{content} |
space the width of content |
\quad |
1 em space | \vphantom{content} |
a strut the height of content |
\qquad |
2 em space | \! |
– 3/18 em space |
~ |
non-breaking space | \negthinspace |
– 3/18 em space |
\<space> |
space | \negmedspace |
– 4/18 em space |
\nobreakspace |
non-breaking space | \negthickspace |
– 5/18 em space |
\space |
space | \mathstrut |
\vphantom{(} |
备注
distance 参数可以接受所有 \(\KaTeX\) 单位。
\kern,\mkern,\mskip 和 \hspace 都可以直接加上距离参数,例如,\kern1em 可以生成一个宽度为 \(\rm 1em\) 的空格。
\mkern 和 \mskip 在文本模式下不起作用,并且两者都将为 mu 以外的任何单位显示警告。
逻辑与集合符号
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\forall\) \forall |
\(\complement\) \complement |
\(\therefore\) \therefore |
\(\emptyset\) \emptyset |
\(\exists\) \exists |
\(\subset\) \subset |
\(\because\) \because |
\(\empty\) \empty |
\(\exist\) \exist |
\(\supset\) \supset |
\(\mapsto\) \mapsto |
\(\varnothing\) \varnothing |
\(\nexists\) \nexists |
\(\mid\) \mid |
\(\to\) \to |
\(\implies\) \implies |
\(\in\) \in |
\(\land\) \land |
\(\gets\) \gets |
\(\impliedby\) \impliedby |
\(\isin\) \isin |
\(\lor\) \lor |
\(\leftrightarrow\) \leftrightarrow |
\(\iff\) \iff |
\(\notin\) \notin |
\(\ni\) \ni |
\(\notni\) \notni |
\(\neg\) \neg 或者 \lnot |
\(\Set{x | x<\frac12}\) Set{x | x<\frac12} \(\set{x | x<5}\) \set{x | x < 5}
直接输入:\(∀∴∁∵∃∣∈∋⊂⊃∧∨↦→←↔¬ℂℍℕℙℚℝ\) ∀∴∁∵∃∣∈∋⊂⊃∧∨↦→←↔¬ℂℍℕℙℚℝ。
宏\(^{[8]}\)
| Column 1 | Column 2 |
|---|---|
| \(\def\foo{x^2} \foo + \foo\) | \def\foo{x^2} \foo + \foo |
| \(\gdef\foo#1{#1^2} \foo{y} + \foo{y}\) | \gdef\foo#1{#1^2} \foo{y} + \foo{y} |
\edef\macroname#1#2…{definition to be expanded} |
|
\xdef\macroname#1#2…{definition to be expanded} |
|
\let\foo=\bar |
|
\futurelet\foo\bar x |
|
\global\def\macroname#1#2…{definition} |
|
\newcommand\macroname[numargs]{definition} |
|
\renewcommand\macroname[numargs]{definition} |
|
\providecommand\macroname[numargs]{definition} |
你同样可以在 \(\KaTeX\) 的渲染选项中定义宏。
宏最多接受九个参数:#1, #2, ..., #9。
\gdef, \xdef, \global\def, \global\edef, \global\let, \global\futurelet 定义的宏将在数学表达式之间保留。
KaTeX has no \par, so all macros are long by default and \long will be ignored.
合法的指令名称包括:
\char \mathchoice \TextOrMath \@ifstar \@ifnextchar \@firstoftwo \@secondoftwo \relax \expandafter \noexpand
@ 是命令的有效字符,就像你使用了 \makeatletter 指令。\(^{[9]}\)
\([8]:\) 宏定义类似于 \(\rm C++\) 中的 \define,可以简化代码,也可以嵌套。
\([9]:\) 解释一下 \makeatletter 指令:因为部分原因,我们在 \(\TeX\) 中无法使用 @ 作为指令名称,除非使用这个指令。而 \(\KaTeX\) 中的 @ 则不需要,所以说“就像你使用了 \makeatletter 指令”。
运算符
巨型运算符
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\sum\) \sum |
\(\prod\) \prod |
\(\bigotimes\) \bigotimes |
\(\bigvee\) \bigvee |
\(\int\) \int |
\(\coprod\) \coprod |
\(\bigoplus\) \bigoplus |
\(\bigwedge\) \bigwedge |
\(\iint\) \iint |
\(\intop\) \intop |
\(\bigodot\) \bigodot |
\(\bigcap\) \bigcap |
\(\iiint\) \iiint |
\(\smallint\) \smallint |
\(\biguplus\) \biguplus |
\(\bigcup\) \bigcup |
\(\oint\) \oint |
\(\oiint\) \oiint |
\(\oiiint\) \oiiint |
\(\bigsqcup\) \bigsqcup |
直接输入:\(∫∬∭∮∏∐∑⋀⋁⋂⋃⨀⨁⨂⨄⨆\) ∫∬∭∮∏∐∑⋀⋁⋂⋃⨀⨁⨂⨄⨆
二元运算符
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(+\) + |
\(\cdot\) \cdot |
\(\gtrdot\) \gtrdot |
\(x \pmod a\) x \pmod a |
\(-\) - |
\(\cdotp\) \cdotp |
\(\intercal\) \intercal |
\(x \pod a\) x \pod a |
\(/\) / |
\(\centerdot\) \centerdot |
\(\land\) \land |
\(\rhd\) \rhd |
\(*\) * |
\(\circ\) \circ |
\(\leftthreetimes\) \leftthreetimes |
\(\rightthreetimes\) \rightthreetimes |
\(\amalg\) \amalg |
\(\circledast\) \circledast |
\(\ldotp\) \ldotp |
\(\rtimes\) \rtimes |
\(\And\) \And |
\(\circledcirc\) \circledcirc |
\(\lor\) \lor |
\(\setminus\) \setminus |
\(\ast\) \ast |
\(\circleddash\) \circleddash |
\(\lessdot\) \lessdot |
\(\smallsetminus\) \smallsetminus |
\(\barwedge\) \barwedge |
\(\Cup\) \Cup |
\(\lhd\) \lhd |
\(\sqcap\) \sqcap |
\(\bigcirc\) \bigcirc |
\(\cup\) \cup |
\(\ltimes\) \ltimes |
\(\sqcup\) \sqcup |
\(\bmod\) \bmod |
\(\curlyvee\) \curlyvee |
\(x \mod a\) x\mod a |
\(\times\) \times |
\(\boxdot\) \boxdot |
\(\curlywedge\) \curlywedge |
\(\mp\) \mp |
\(\unlhd\) \unlhd |
\(\boxminus\) \boxminus |
\(\div\) \div |
\(\odot\) \odot |
\(\unrhd\) \unrhd |
\(\boxplus\) \boxplus |
\(\divideontimes\) \divideontimes |
\(\ominus\) \ominus |
\(\uplus\) \uplus |
\(\boxtimes\) \boxtimes |
\(\dotplus\) \dotplus |
\(\oplus\) \oplus |
\(\vee\) \vee |
\(\bullet\) \bullet |
\(\doublebarwedge\) \doublebarwedge |
\(\otimes\) \otimes |
\(\veebar\) \veebar |
\(\Cap\) \Cap |
\(\doublecap\) \doublecap |
\(\oslash\) \oslash |
\(\wedge\) \wedge |
\(\cap\) \cap |
\(\doublecup\) \doublecup |
\(\pm\) \pm 或 \plusmn |
\(\wr\) \wr |
直接输入:\(+−/∗⋅±×÷∓∔∧∨∩∪≀⊎⊓⊔⊕⊖⊗⊘⊙⊚⊛⊝\) +−/∗⋅±×÷∓∔∧∨∩∪≀⊎⊓⊔⊕⊖⊗⊘⊙⊚⊛⊝
分数和二项式
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(\frac{a}{b}\) \frac{a}{b} |
\(\tfrac{a}{b}\) \tfrac{a}{b} |
\(\genfrac ( ] {2pt}{1}a{a+1}\) \genfrac ( ] {2pt}{1}a{a+1} |
\({a \over b}\) {a \over b} |
\(\dfrac{a}{b}\) \dfrac{a}{b} |
\({a \above{2pt} b+1}\) {a \above{2pt} b+1} |
\(a/b\) a/b |
\(\cfrac{a}{1 + \cfrac{1}{b}}\) \cfrac{a}{1 + \cfrac{1}{b}} |
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(\binom{n}{k}\) \binom{n}{k} |
\(\dbinom{n}{k}\) \dbinom{n}{k} |
\({n\brace k}\) {n\brace k} |
\({n \choose k}\) {n \choose k} |
\(\tbinom{n}{k}\) \tbinom{n}{k} |
\({n\brack k}\) {n\brack k} |
数学运算符
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\arcsin\) \arcsin |
\(\cosec\) \cosec |
\(\deg\) \deg |
\(\sec\) \sec |
\(\arccos\) \arccos |
\(\cosh\) \cosh |
\(\dim\) \dim |
\(\sin\) \sin |
\(\arctan\) \arctan |
\(\cot\) \cot |
\(\exp\) \exp |
\(\sinh\) \sinh |
\(\arctg\) \arctg |
\(\cotg\) \cotg |
\(\hom\) \hom |
\(\sh\) \sh |
\(\arcctg\) \arcctg |
\(\coth\) \coth |
\(\ker\) \ker |
\(\tan\) \tan |
\(\arg\) \arg |
\(\csc\) \csc |
\(\lg\) \lg |
\(\tanh\) \tanh |
\(\ch\) \ch |
\(\ctg\) \ctg |
\(\ln\) \ln |
\(\tg\) \tg |
\(\cos\) \cos |
\(\cth\) \cth |
\(\log\) \log |
\(\th\) \th |
\(\operatorname{f}\) \operatorname{f} |
|||
\(\argmax\) \argmax |
\(\injlim\) \injlim |
\(\min\) \min |
\(\varinjlim\) \varinjlim |
\(\argmin\) \argmin |
\(\lim\) \lim |
\(\plim\) \plim |
\(\varliminf\) \varliminf |
\(\det\) \det |
\(\liminf\) \liminf |
\(\Pr\) \Pr |
\(\varlimsup\) \varlimsup |
\(\gcd\) \gcd |
\(\limsup\) \limsup |
\(\projlim\) \projlim |
\(\varprojlim\) \varprojlim |
\(\inf\) \inf |
\(\max\) \max |
\(\sup\) \sup |
|
\(\operatorname*{f}\) \operatorname*{f} |
\(\operatornamewithlimits{f}\) \operatornamewithlimits{f} |
表中底部六行的函数可以接受 \limits”,参数显示在右侧的公式可以使用 \limits 强行显示在上下侧,如 \(\sum\limits_{i=1}^{n}\) \sum\limits_{i=1}^{n}。
根号
\(\sqrt{x}\) \sqrt{x}
\(\sqrt[3]{x}\) \sqrt[3]{x}
关系
\(\stackrel{!}{=}\) \stackrel{!}{=}
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(=\) = |
\(\doteqdot\) \doteqdot |
\(\lessapprox\) \lessapprox |
\(\smile\) \smile |
\(<\) < |
\(\eqcirc\) \eqcirc |
\(\lesseqgtr\) \lesseqgtr |
\(\sqsubset\) \sqsubset |
\(>\) > |
\(\eqcolon\) \eqcolon or \minuscolon |
\(\lesseqqgtr\) \lesseqqgtr |
\(\sqsubseteq\) \sqsubseteq |
\(:\) : |
\(\Eqcolon\) \Eqcolon or \minuscoloncolon |
\(\lessgtr\) \lessgtr |
\(\sqsupset\) \sqsupset |
\(\approx\) \approx |
\(\eqqcolon\) \eqqcolon or \equalscolon |
\(\lesssim\) \lesssim |
\(\sqsupseteq\) \sqsupseteq |
\(\approxcolon\) \approxcolon |
\(\Eqqcolon\) \Eqqcolon or \equalscoloncolon |
\(\ll\) \ll |
\(\Subset\) \Subset |
\(\approxcoloncolon\) \approxcoloncolon |
\(\eqsim\) \eqsim |
\(\lll\) \lll |
\(\subset\) \subset or \sub |
\(\approxeq\) \approxeq |
\(\eqslantgtr\) \eqslantgtr |
\(\llless\) \llless |
\(\subseteq\) \subseteq or \sube |
\(\asymp\) \asymp |
\(\eqslantless\) \eqslantless |
\(\lt\) \lt |
\(\subseteqq\) \subseteqq |
\(\backepsilon\) \backepsilon |
\(\equiv\) \equiv |
\(\mid\) \mid |
\(\succ\) \succ |
\(\backsim\) \backsim |
\(\fallingdotseq\) \fallingdotseq |
\(\models\) \models |
\(\succapprox\) \succapprox |
\(\backsimeq\) \backsimeq |
\(\frown\) \frown |
\(\multimap\) \multimap |
\(\succcurlyeq\) \succcurlyeq |
\(\between\) \between |
\(\ge\) \ge |
\(\origof\) \origof |
\(\succeq\) \succeq |
\(\bowtie\) \bowtie |
\(\geq\) \geq |
\(\owns\) \owns |
\(\succsim\) \succsim |
\(\bumpeq\) \bumpeq |
\(\geqq\) \geqq |
\(\parallel\) \parallel |
\(\Supset\) \Supset |
\(\Bumpeq\) \Bumpeq |
\(\geqslant\) \geqslant |
\(\perp\) \perp |
\(\supset\) \supset |
\(\circeq\) \circeq |
\(\gg\) \gg |
\(\pitchfork\) \pitchfork |
\(\supseteq\) \supseteq or \supe |
\(\colonapprox\) \colonapprox |
\(\ggg\) \ggg |
\(\prec\) \prec |
\(\supseteqq\) \supseteqq |
\(\Colonapprox\) \Colonapprox or \coloncolonapprox |
\(\gggtr\) \gggtr |
\(\precapprox\) \precapprox |
\(\thickapprox\) \thickapprox |
\(\coloneq\) \coloneq or \colonminus |
\(\gt\) \gt |
\(\preccurlyeq\) \preccurlyeq |
\(\thicksim\) \thicksim |
\(\Coloneq\) \Coloneq or \coloncolonminus |
\(\gtrapprox\) \gtrapprox |
\(\preceq\) \preceq |
\(\trianglelefteq\) \trianglelefteq |
\(\coloneqq\) \coloneqq or \colonequals |
\(\gtreqless\) \gtreqless |
\(\precsim\) \precsim |
\(\triangleq\) \triangleq |
\(\Coloneqq\) \Coloneqq or \coloncolonequals |
\(\gtreqqless\) \gtreqqless |
\(\propto\) \propto |
\(\trianglerighteq\) \trianglerighteq |
\(\colonsim\) \colonsim |
\(\gtrless\) \gtrless |
\(\risingdotseq\) \risingdotseq |
\(\varpropto\) \varpropto |
\(\Colonsim\) \Colonsim or \coloncolonsim |
\(\gtrsim\) \gtrsim |
\(\shortmid\) \shortmid |
\(\vartriangle\) \vartriangle |
\(\cong\) \cong |
\(\imageof\) \imageof |
\(\shortparallel\) \shortparallel |
\(\vartriangleleft\) \vartriangleleft |
\(\curlyeqprec\) \curlyeqprec |
\(\in\) \in or \isin |
\(\sim\) \sim |
\(\vartriangleright\) \vartriangleright |
\(\curlyeqsucc\) \curlyeqsucc |
\(\Join\) \Join |
\(\simcolon\) \simcolon |
\(\vcentcolon\) \vcentcolon or \ratio |
\(\dashv\) \dashv |
\(\le\) \le |
\(\simcoloncolon\) \simcoloncolon |
\(\vdash\) \vdash |
\(\dblcolon\) \dblcolon or\coloncolon |
\(\leq\) \leq |
\(\simeq\) \simeq |
\(\vDash\) \vDash |
\(\doteq\) \doteq |
\(\leqq\) \leqq |
\(\smallfrown\) \smallfrown |
\(\Vdash\) \Vdash |
\(\Doteq\) \Doteq |
\(\leqslant\) \leqslant |
\(\smallsmile\) \smallsmile |
\(\Vvdash\) \Vvdash |
直接输入:
\(∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≫≬≳≷≺≻≼≽≾≿⊂⊃⊆⊇⊏⊐⊑⊒⊢⊣⊩⊪⊸⋈⋍⋐⋑⋔⋙⋛⋞⋟⌢⌣⩾⪆⪌⪕⪖⪯⪰⪷⪸⫅⫆≲⩽⪅≶⋚⪋⟂⊨⊶⊷≔≕⩴\)
∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≫≬≳≷≺≻≼≽≾≿⊂⊃⊆⊇⊏⊐⊑⊒⊢⊣⊩⊪⊸⋈⋍⋐⋑⋔⋙⋛⋞⋟⌢⌣⩾⪆⪌⪕⪖⪯⪰⪷⪸⫅⫆≲⩽⪅≶⋚⪋⟂⊨⊶⊷≔≕⩴
非关系
\(\not =\) \not =
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
\(\gnapprox\) \gnapprox |
\(\ngeqslant\) \ngeqslant |
\(\nsubseteq\) \nsubseteq |
\(\precneqq\) \precneqq |
\(\gneq\) \gneq |
\(\ngtr\) \ngtr |
\(\nsubseteqq\) \nsubseteqq |
\(\precnsim\) \precnsim |
\(\gneqq\) \gneqq |
\(\nleq\) \nleq |
\(\nsucc\) \nsucc |
\(\subsetneq\) \subsetneq |
\(\gnsim\) \gnsim |
\(\nleqq\) \nleqq |
\(\nsucceq\) \nsucceq |
\(\subsetneqq\) \subsetneqq |
\(\gvertneqq\) \gvertneqq |
\(\nleqslant\) \nleqslant |
\(\nsupseteq\) \nsupseteq |
\(\succnapprox\) \succnapprox |
\(\lnapprox\) \lnapprox |
\(\nless\) \nless |
\(\nsupseteqq\) \nsupseteqq |
\(\succneqq\) \succneqq |
\(\lneq\) \lneq |
\(\nmid\) \nmid |
\(\ntriangleleft\) \ntriangleleft |
\(\succnsim\) \succnsim |
\(\lneqq\) \lneqq |
\(\notin\) \notin |
\(\ntrianglelefteq\) \ntrianglelefteq |
\(\supsetneq\) \supsetneq |
\(\lnsim\) \lnsim |
\(\notni\) \notni |
\(\ntriangleright\) \ntriangleright |
\(\supsetneqq\) \supsetneqq |
\(\lvertneqq\) \lvertneqq |
\(\nparallel\) \nparallel |
\(\ntrianglerighteq\) \ntrianglerighteq |
\(\varsubsetneq\) \varsubsetneq |
\(\ncong\) \ncong |
\(\nprec\) \nprec |
\(\nvdash\) \nvdash |
\(\varsubsetneqq\) \varsubsetneqq |
\(\ne\) \ne |
\(\npreceq\) \npreceq |
\(\nvDash\) \nvDash |
\(\varsupsetneq\) \varsupsetneq |
\(\neq\) \neq |
\(\nshortmid\) \nshortmid |
\(\nVDash\) \nVDash |
\(\varsupsetneqq\) \varsupsetneqq |
\(\ngeq\) \ngeq |
\(\nshortparallel\) \nshortparallel |
\(\nVdash\) \nVdash |
|
\(\ngeqq\) \ngeqq |
\(\nsim\) \nsim |
\(\precnapprox\) \precnapprox |
直接输入:
\(∉∌∤∦≁≆≠≨≩≮≯≰≱⊀⊁⊈⊉⊊⊋⊬⊭⊮⊯⋠⋡⋦⋧⋨⋩⋬⋭⪇⪈⪉⪊⪵⪶⪹⪺⫋⫌∈\)
∉∌∤∦≁≆≠≨≩≮≯≰≱⊀⊁⊈⊉⊊⊋⊬⊭⊮⊯⋠⋡⋦⋧⋨⋩⋬⋭⪇⪈⪉⪊⪵⪶⪹⪺⫋⫌∈
箭头
| 第一列 | 第二列 | 第三列 |
|---|---|---|
\(\circlearrowleft\) \circlearrowleft |
\(\leftharpoonup\) \leftharpoonup |
\(\rArr\) \rArr |
\(\circlearrowright\) \circlearrowright |
\(\leftleftarrows\) \leftleftarrows |
\(\rarr\) \rarr |
\(\curvearrowleft\) \curvearrowleft |
\(\leftrightarrow\) \leftrightarrow |
\(\restriction\) \restriction |
\(\curvearrowright\) \curvearrowright |
\(\Leftrightarrow\) \Leftrightarrow |
\(\rightarrow\) \rightarrow |
\(\Darr\) \Darr |
\(\leftrightarrows\) \leftrightarrows |
\(\Rightarrow\) \Rightarrow |
\(\dArr\) \dArr |
\(\leftrightharpoons\) \leftrightharpoons |
\(\rightarrowtail\) \rightarrowtail |
\(\darr\) \darr |
\(\leftrightsquigarrow\) \leftrightsquigarrow |
\(\rightharpoondown\) \rightharpoondown |
\(\dashleftarrow\) \dashleftarrow |
\(\Lleftarrow\) \Lleftarrow |
\(\rightharpoonup\) \rightharpoonup |
\(\dashrightarrow\) \dashrightarrow |
\(\longleftarrow\) \longleftarrow |
\(\rightleftarrows\) \rightleftarrows |
\(\downarrow\) \downarrow |
\(\Longleftarrow\) \Longleftarrow |
\(\rightleftharpoons\) \rightleftharpoons |
\(\Downarrow\) \Downarrow |
\(\longleftrightarrow\) \longleftrightarrow |
\(\rightrightarrows\) \rightrightarrows |
\(\downdownarrows\) \downdownarrows |
\(\Longleftrightarrow\) \Longleftrightarrow |
\(\rightsquigarrow\) \rightsquigarrow |
\(\downharpoonleft\) \downharpoonleft |
\(\longmapsto\) \longmapsto |
\(\Rrightarrow\) \Rrightarrow |
\(\downharpoonright\) \downharpoonright |
\(\longrightarrow\) \longrightarrow |
\(\Rsh\) \Rsh |
\(\gets\) \gets |
\(\Longrightarrow\) \Longrightarrow |
\(\searrow\) \searrow |
\(\Harr\) \Harr |
\(\looparrowleft\) \looparrowleft |
\(\swarrow\) \swarrow |
\(\hArr\) \hArr |
\(\looparrowright\) \looparrowright |
\(\to\) \to |
\(\harr\) \harr |
\(\Lrarr\) \Lrarr |
\(\twoheadleftarrow\) \twoheadleftarrow |
\(\hookleftarrow\) \hookleftarrow |
\(\lrArr\) \lrArr |
\(\twoheadrightarrow\) \twoheadrightarrow |
\(\hookrightarrow\) \hookrightarrow |
\(\lrarr\) \lrarr |
\(\Uarr\) \Uarr |
\(\iff\) \iff |
\(\Lsh\) \Lsh |
\(\uArr\) \uArr |
\(\impliedby\) \impliedby |
\(\mapsto\) \mapsto |
\(\uarr\) \uarr |
\(\implies\) \implies |
\(\nearrow\) \nearrow |
\(\uparrow\) \uparrow |
\(\Larr\) \Larr |
\(\nleftarrow\) \nleftarrow |
\(\Uparrow\) \Uparrow |
\(\lArr\) \lArr |
\(\nLeftarrow\) \nLeftarrow |
\(\updownarrow\) \updownarrow |
\(\larr\) \larr |
\(\nleftrightarrow\) \nleftrightarrow |
\(\Updownarrow\) \Updownarrow |
\(\leadsto\) \leadsto |
\(\nLeftrightarrow\) \nLeftrightarrow |
\(\upharpoonleft\) \upharpoonleft |
\(\leftarrow\) \leftarrow |
\(\nrightarrow\) \nrightarrow |
\(\upharpoonright\) \upharpoonright |
\(\Leftarrow\) \Leftarrow |
\(\nRightarrow\) \nRightarrow |
\(\upuparrows\) \upuparrows |
\(\leftarrowtail\) \leftarrowtail |
\(\nwarrow\) \nwarrow |
|
\(\leftharpoondown\) \leftharpoondown |
\(\Rarr\) \Rarr |
直接输入:
\(←↑→↓↔↕↖↗↘↙↚↛↞↠↢↣↦↩↪↫↬↭↮↰↱↶↷↺↻↼↽↾↾↿⇀⇁⇂⇃⇄⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐⇑⇒⇓⇔⇕⇚⇛⇝⇠⇢\)
←↑→↓↔↕↖↗↘↙↚↛↞↠↢↣↦↩↪↫↬↭↮↰↱↶↷↺↻↼↽↾↾↿⇀⇁⇂⇃⇄⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐⇑⇒⇓⇔⇕⇚⇛⇝⇠⇢
可伸长箭头
| Column 1 | Column 2 |
|---|---|
\(\xleftarrow{abc}\) \xleftarrow{abc} |
\(\xrightarrow[under]{over}\) \xrightarrow[under]{over} |
\(\xLeftarrow{abc}\) \xLeftarrow{abc} |
\(\xRightarrow{abc}\) \xRightarrow{abc} |
\(\xleftrightarrow{abc}\) \xleftrightarrow{abc} |
\(\xLeftrightarrow{abc}\) \xLeftrightarrow{abc} |
\(\xhookleftarrow{abc}\) \xhookleftarrow{abc} |
\(\xhookrightarrow{abc}\) \xhookrightarrow{abc} |
\(\xtwoheadleftarrow{abc}\) \xtwoheadleftarrow{abc} |
\(\xtwoheadrightarrow{abc}\) \xtwoheadrightarrow{abc} |
\(\xleftharpoonup{abc}\) \xleftharpoonup{abc} |
\(\xrightharpoonup{abc}\) \xrightharpoonup{abc} |
\(\xleftharpoondown{abc}\) \xleftharpoondown{abc} |
\(\xrightharpoondown{abc}\) \xrightharpoondown{abc} |
\(\xleftrightharpoons{abc}\) \xleftrightharpoons{abc} |
\(\xrightleftharpoons{abc}\) \xrightleftharpoons{abc} |
\(\xtofrom{abc}\) \xtofrom{abc} |
\(\xmapsto{abc}\) \xmapsto{abc} |
\(\xlongequal{abc}\) \xlongequal{abc} |
可伸长箭头都可以用相同的方式接受可选参数,如 \(\xrightarrow[under]{over}\) \xrightarrow[under]{over}。
特殊符号
Bra-ket 符号
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(\bra{\phi}\) \bra{\phi} |
\(\ket{\psi}\) \ket{\psi} |
\(\braket{\phi\vert\psi}\) \braket{\phi|\psi} |
\(\Bra{\phi}\) \Bra{\phi} |
\(\Ket{\psi}\) \Ket{\psi} |
\(\Braket{ϕ\left\vert\frac{∂^2}{∂t^2}\right\vertψ}\) \Braket{ϕ|\frac{∂^2}{∂t^2}|ψ} |
\(\braket{a|n}\)
\(\Braket{ϕ|t|ψ}\)
样式,颜色,大小和字体
类的分配
\mathbin \mathclose \mathinner \mathop
\mathopen \mathord \mathpunct \mathrel
颜色
注意 \color 的作用类似于开关,使用后一定范围内所有的字体都会改变颜色,其他颜色指令中需要内容作为参数。
\(\color{blue} F=ma\) \color{blue} F=ma
\(\textcolor{blue}{F=ma}\) \textcolor{#228B22}{F=ma}
\(\colorbox{aqua}{A}\) \colorbox{aqua}{A}
\(\fcolorbox{red}{aqua}{A}\) \fcolorbox{red}{aqua}{A}
与 \(\LaTeX\) 中一样,\colorbox 和 \fcolorbox 将其第三个参数呈现为文本模式。使用 $ 切换回数学模式。
\([11]:\) \colorbox 和 \fcolorbox 里面不能嵌套环境,但是 \box 能。
\(\KaTeX\) 颜色函数将接受标准的\(\rm HTML\) 预定义颜色名称 和 \(\rm CSS\) 十六进制样式的 \(\rm RGB\) 参数,比如 #ff0000 表示红色,其中的 # 是可选的。
字体
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(\mathrm{Ab0}\) \mathrm{Ab0} |
\(\mathbf{Ab0}\) \mathbf{Ab0} |
\(\mathsf{Ab0}\) \mathsf{Ab0} |
\(\mathnormal{Ab0}\) \mathnormal{Ab0} |
\(\textbf{Ab0}\) \textbf{Ab0} |
\(\textsf{Ab0}\) \textsf{Ab0} |
\(\textrm{Ab0}\) \textrm{Ab0} |
\(\bf Ab0\) \bf Ab0 |
\(\sf Ab0\) \sf Ab0 |
\(\rm Ab0\) \rm Ab0 |
\(\bold{Ab0}\) \bold{Ab0} |
\(\mathsfit{Ab0}\) \mathsfit{Ab0} |
\(\textnormal{Ab0}\) \textnormal{Ab0} |
\(\boldsymbol{Ab0}\) \boldsymbol{Ab0} |
\(\Bbb{AB}\) \Bbb{AB} |
\(\text{Ab0}\) \text{Ab0} |
\(\bm{Ab0}\) \bm{Ab0} |
\(\mathbb{AB}\) \mathbb{AB} |
\(\textup{Ab0}\) \textup{Ab0} |
\(\textmd{Ab0}\) \textmd{Ab0} |
\(\frak{Ab0}\) \frak{Ab0} |
\(\mathit{Ab0}\) \mathit{Ab0} |
\(\mathtt{Ab0}\) \mathtt{Ab0} |
\(\mathfrak{Ab0}\) \mathfrak{Ab0} |
\(\textit{Ab0}\) \textit{Ab0} |
\(\texttt{Ab0}\) \texttt{Ab0} |
\(\mathcal{AB0}\) \mathcal{AB0} |
\(\it Ab0\) \it Ab0 |
\(\tt Ab0\) \tt Ab0 |
\(\cal AB0\) \cal AB0 |
\(\emph{Ab0}\) \emph{Ab0} |
\(\mathscr{AB}\) \mathscr{AB} |
使用 \textXX 类型的字体指令可以堆叠字体样式、粗细和形状,因此 \textsf{\textbf{H}} 将渲染出 \(\textsf{\textbf{H}}\)。其他字体指令不会堆叠,例如 \mathsf{\mathbf{H}} 将渲染出 \(\mathsf{\mathbf{H}}\)。
如果 \(\KaTeX\) 字体没有粗体字形,\pmb 可以模拟一个,例如:\pmb{\mu} 将渲染出 \(\pmb{\mu}\)。
大小
| Column 1 | Column 2 |
|---|---|
\(\Huge AB\) \Huge AB |
\(\normalsize AB\) \normalsize AB |
\(\huge AB\) \huge AB |
\(\small AB\) \small AB |
\(\LARGE AB\) \LARGE AB |
\(\footnotesize AB\) \footnotesize AB |
\(\Large AB\) \Large AB |
\(\scriptsize AB\) \scriptsize AB |
\(\large AB\) \large AB |
\(\tiny AB\) \tiny AB |
样式
| Column 1 | Column 2 |
|---|---|
| \(\displaystyle\sum_{i=1}^n\) | \displaystyle\sum_{i=1}^n |
| \(\textstyle\sum_{i=1}^n\) | \textstyle\sum_{i=1}^n |
| \(\scriptstyle x\) | \scriptstyle x (The size of a first sub/superscript) |
| \(\scriptscriptstyle x\) | \scriptscriptstyle x (The size of subsequent sub/superscripts) |
| \(\lim\limits_x\) | \lim\limits_x |
| \(\lim\nolimits_x\) | \lim\nolimits_x |
| \(\verb!x^2!\) | \verb!x^2!\(^{[12]}\) |
在居中的环境下(即在 $$ $$ 中),在 \text{} 里面可以放置 $...$ 用来显示数学模式。
\([12]:\) \verb 以两个感叹号作为括号,里面可以填充任意文字。使用等宽字体(打字机字体)。
符号和标点
| Column 1 | Column 2 | Column 3 |
|---|---|---|
\(text % comment\) text % comment |
\(\dots\) \dots |
\(\KaTeX\) \KaTeX |
\(\%\) \% |
\(\cdots\) \cdots |
\(\LaTeX\) \LaTeX |
\(\#\) \# |
\(\ddots\) \ddots |
\(\TeX\) \TeX |
\(\&\) \& |
\(\ldots\) \ldots |
\(\nabla\) \nabla |
\(\_\) \_ |
\(\vdots\) \vdots |
\(\infty\) \infty |
\(\text{\textunderscore}\) \text{\textunderscore} |
\(\dotsb\) \dotsb |
\(\infin\) \infin |
\(\text{--}\) \text{--} |
\(\dotsc\) \dotsc |
\(\checkmark\) \checkmark |
\(\text{\textendash}\) \text{\textendash} |
\(\dotsi\) \dotsi |
\(\dag\) \dag |
\(\text{---}\) \text{---} |
\(\dotsm\) \dotsm |
\(\dagger\) \dagger |
\(\text{\textemdash}\) \text{\textemdash} |
\(\dotso\) \dotso |
\(\text{\textdagger}\) \text{\textdagger} |
\(\text{\textasciitilde}\) \text{\textasciitilde} |
\(\sdot\) \sdot |
\(\ddag\) \ddag |
\(\text{\textasciicircum}\) \text{\textasciicircum} |
\(\mathellipsis\) \mathellipsis |
\(\ddagger\) \ddagger |
\(\\`\) ` |
\(\text{\textellipsis}\) \text{\textellipsis} |
\(\text{\textdaggerdbl}\) \text{\textdaggerdbl} |
\(\text{\textquoteleft}\) text{\textquoteleft} |
\(\Box\) \Box |
\(\Dagger\) \Dagger |
\(\lq\) \lq |
\(\square\) \square |
\(\angle\) \angle |
\(\text{\textquoteright}\) \text{\textquoteright} |
\(\blacksquare\) \blacksquare |
\(\measuredangle\) \measuredangle |
\(\rq\) \rq |
\(\triangle\) \triangle |
\(\sphericalangle\) \sphericalangle |
\(\text{\textquotedblleft}\) \text{\textquotedblleft} |
\(\triangledown\) \triangledown |
\(\top\) \top |
\("\) " |
\(\triangleleft\) \triangleleft |
\(\bot\) \bot |
\(\text{\textquotedblright}\) \text{\textquotedblright} |
\(\triangleright\) \triangleright |
\(\$\) \$ |
\(\colon\) \colon |
\(\bigtriangledown\) \bigtriangledown |
\(\text{\textdollar}\) \text{\textdollar} |
\(\backprime\) \backprime |
\(\bigtriangleup\) \bigtriangleup |
\(\pounds\) \pounds |
\(\prime\) \prime |
\(\blacktriangle\) \blacktriangle |
\(\mathsterling\) \mathsterling |
\(\text{\textless}\) \text{\textless} |
\(\blacktriangledown\) \blacktriangledown |
\(\text{\textsterling}\) \text{\textsterling} |
\(\text{\textgreater}\) \text{\textgreater} |
\(\blacktriangleleft\) \blacktriangleleft |
\(\yen\) \yen |
\(\text{\textbar}\) \text{\textbar} |
\(\blacktriangleright\) \blacktriangleright |
\(\surd\) \surd |
\(\text{\textbardbl}\) \text{\textbardbl} |
\(\diamond\) \diamond |
\(\degree\) \degree |
\(\text{\textbraceleft}\) \text{\textbraceleft} |
\(\Diamond\) \Diamond |
\(\text{\textdegree}\) \text{\textdegree} |
\(\text{\textbraceright}\) \text{\textbraceright} |
\(\lozenge\) \lozenge |
\(\mho\) \mho |
\(\text{\textbackslash}\) \text{\textbackslash} |
\(\blacklozenge\) \blacklozenge |
\(\diagdown\) \diagdown |
\(\text{\P}\) \text{\P} |
\(\star\) \star |
\(\diagup\) \diagup |
\(\text{\S}\) \text{\S} |
\(\bigstar\) \bigstar |
\(\flat\) \flat |
\(\text{\sect}\) \text{\sect} |
\(\clubsuit\) \clubsuit |
\(\natural\) \natural |
\(\copyright\) \copyright |
\(\clubs\) \clubs |
\(\sharp\) \sharp |
\(\circledR\) \circledR |
\(\diamondsuit\) \diamondsuit |
\(\heartsuit\) \heartsuit |
\(\text{\textregistered}\) \text{\textregistered} |
\(\diamonds\) \diamonds |
\(\hearts\) \hearts |
\(\circledS\) \circledS |
\(\spadesuit\) \spadesuit |
\(\spades\) \spades |
\(\text{\textcircled a}\) \text{\textcircled a} |
\(\maltese\) \maltese |
直接输入:\(£¥∇∞·∠∡∢♠♡♢♣♭♮♯✓…⋮⋯⋱!\) £¥∇∞·∠∡∢♠♡♢♣♭♮♯✓…⋮⋯⋱!
单位
在 \(\KaTeX\) 中,单位与在 \(\TeX\) 中一样按比例进行处理。
\(\KaTeX\) 单位不同于 \(\rm CSS\) 单位。
| \(\rm \KaTeX~Unit\) | \(\rm Value\) | \(\rm \KaTeX~Unit\) | \(\rm Value\) |
|---|---|---|---|
| \(\rm em\) | \(\rm CSS~em\) | \(\rm bp\) | \(\rm 1/72~inch × F × G\) |
| \(\rm ex\) | \(\rm CSS~ex\) | \(\rm pc\) | \(\rm 12~\KaTeX~pt\) |
| \(\rm mu\) | \(\rm 1/18~CSS~em\) | \(\rm dd\) | \(\rm 1238/1157~\KaTeX~pt\) |
| \(\rm pt\) | \(\rm 1/72.27~inch × F × G\) | \(\rm cc\) | \(\rm 14856/1157~\KaTeX~pt\) |
| \(\rm mm\) | \(\rm 1 mm × F × G\) | \(\rm nd\) | \(\rm 685/642~\KaTeX~pt\) |
| \(\rm cm\) | \(\rm 1 cm × F × G\) | \(\rm nc\) | \(\rm 1370/107~\KaTeX~pt\) |
| \(\rm in\) | \(\rm 1 inch × F × G\) | \(\rm sp\) | \(\rm 1/65536~\KaTeX~pt\) |
其中,
-
\(F =\) (围绕着 \(\rm HTML\) 文字的字体大小) / (\(\rm 10 pt\))
-
\(G\) 默认情况下为 \(1.21\),因为 \(\KaTeX\) 字体大小通常为 \(1.21\times\) 周围字体大小。\(\rm HTML\) 网页的 \(\rm CSS\) 可以覆盖此值。
样式和大小的影响范围:
| \text | \text | \text | \text |
|---|---|---|---|
| \(\text{em or ex}\) | \(\rule{1em}{1em}\) | \(\scriptscriptstyle\rule{1em}{1em}\) | \(\huge\rule{1em}{1em}\) |
| \(\text{mu}\) | \(\rule{18mu}{18mu}\) | \(\scriptscriptstyle\rule{18mu}{18mu}\) | \(\huge\rule{18mu}{18mu}\) |
| \(\text{others}\) | \(\rule{10pt}{10pt}\) | \(\scriptscriptstyle\rule{10pt}{10pt}\) | \(\huge\rule{10pt}{10pt}\) |
本文全部译自\(\KaTeX\)官网。
历时 \(1.5\) 天终于肝完了 \(\rm orz\)。希望能为洛谷的 \(\LaTeX\) 发展做出一些贡献。可能有一些不足,希望能在博客的评论区提出来

浙公网安备 33010602011771号