测试 Katex 语法
存在部分渲染问题,参考 Hexo博客渲染KaTeX数学公式
Check
Check the stylesheet (katex.css) is properly loaded.
The KaTeX stylesheet is not loaded!
KaTeX stylesheet version:
Accents
| Rendering |
Syntax |
| a′ |
a' |
| a~ |
\tilde{a} |
| g˚ |
\mathring{g} |
| a′′ |
a'' |
| ac |
\widetilde{ac} |
| AB |
\overgroup{AB} |
| a′ |
a^{\prime} |
| AB |
\utilde{AB} |
| AB |
\undergroup{AB} |
| aˊ |
\acute{a} |
| F |
\vec{F} |
| AB |
\Overrightarrow{AB} |
| yˉ |
\bar{y} |
| AB |
\overleftarrow{AB} |
| AB |
\overrightarrow{AB} |
| a˘ |
\breve{a} |
| AB |
\underleftarrow{AB} |
| AB |
\underrightarrow{AB} |
| aˇ |
\check{a} |
| ac |
\overleftharpoon{ac} |
| ac |
\overrightharpoon{ac} |
| a˙ |
\dot{a} |
| AB |
\overleftrightarrow{AB} |
| AB |
\overbrace{AB} |
| a¨ |
\ddot{a} |
| AB |
\underleftrightarrow{AB} |
| AB |
\underbrace{AB} |
| aˋ |
\grave{a} |
| AB |
\overline{AB} |
| AB |
\overlinesegment{AB} |
| θ^ |
\hat{\theta} |
| AB |
\underline{AB} |
| AB |
\underlinesegment{AB} |
| ac |
\widehat{ac} |
| ac |
\widecheck{ac} |
| X |
\underbar{X} |
Delimiters
| Rendering |
Syntax |
| () |
\lparen \rparen |
| [] |
\lbrack \rbrack |
| {} |
\lbrace \rbrace |
| ⟨⟩ |
\langle \rangle |
| ⌈⌉ |
\lceil \rceil |
| ⌊⌋ |
\lfloor \rfloor |
| ⎰⎱ |
\lmoustache \rmoustache |
| ⟮⟯ |
\lgroup \rgroup |
| ∣∣ |
\lvert \rvert |
| ∥∥ |
\lVert \rVert |
| ⟨⟩ |
\lang \rang |
| <> |
\lt \gt |
| [[]] |
\llbracket \rrbracket |
| {[]} |
\lBrace \rBrace |
| ┌┐ |
\ulcorner \urcorner |
| └┘ |
\llcorner \lrcorner |
| ↑↓ |
\uparrow \downarrow |
| ↕ |
\updownarrow |
| ⇑⇓ |
\Uparrow \Downarrow |
| ⇕ |
\Updownarrow |
| \ |
\backslash |
| \left. \right. |
\left. \right. |
| ∣ ∥ |
\vert \Vert |
Delimiter Sizing
(AB)
\left( \LARGE{AB} \right)
(((((
( \big( \Big( \bigg( \Bigg(
|
|
|
|
|
\left |
\big |
\bigl |
\bigm |
\bigr |
\middle |
\Big |
\Bigl |
\Bigm |
\Bigr |
\right |
\bigg |
\biggl |
\biggm |
\biggr |
|
\Bigg |
\Biggl |
\Biggm |
\Biggr |
Environments
a=sad
a=b+cc=d+e
a=b+cc=d+e
aabbcc
(acbdce)
[acbd]
acbd
acbd
{acbd}
adgbehcfi
x={acif bif d
acif bif d}⇒…
acbd
i∈Λ0<j<n∑
a=b+c=e+f
ad+e=b+c=f
a=be=b+c
103x+x+313y=2y=4
Ab↓⏐CaB⏐↑cD
Letters and Unicode
| Type |
Rendering |
| uppercase |
Ξ |
| lowercase |
ϑ |
| letters |
ℑ |
| Bold |
A |
Layout
Annotation
|
|
| 5 |
a+b+cnote |
| 5 |
notea+b+c |
| ABC |
π=dc |
| = |
−78∘ |
| abc |
an |
| an |
|
x+y2x(hi)
x+y2xhi
Operators
Big Operators
|
|
|
|
| ∑ |
∏ |
⨂ |
⋁ |
| ∫ |
∐ |
⨁ |
⋀ |
| ∬ |
∫ |
⨀ |
⋂ |
| ∭ |
∫ |
⨄ |
⋃ |
| ∮ |
∬ |
∭ |
⨆ |
Binary Operators
|
|
|
|
| ⋅ |
⋗ |
x(moda) |
x(a) |
| ⋅ |
⊺ |
⋅ |
∧ |
| ⊳ |
∘ |
⨿ |
⋋ |
| & |
⋖ |
◯ |
⋌ |
| × |
⊻ |
≀ |
⊛ |
| ∓ |
∨ |
⋉ |
⊚ |
| ÷ |
∧ |
⊗ |
∖ |
Fractions and Binomials
|
|
| ba |
ba |
| ba |
(a+1a] |
| ba |
b+1a |
| a/b |
1+b1a |
| (kn) |
(kn) |
| (kn) |
{kn} |
| (kn) |
[kn] |
| x |
3x |
Relations
|
|
|
|
| = |
≑ |
⪅ |
⌣ |
| ≈ |
≲ |
⋘ |
⋘ |
| ⪖ |
∣ |
∽ |
⋍ |
| ⋈ |
≥ |
≧ |
∋ |
| ⩾ |
≫ |
⋙ |
≈ |
| ∝ |
≜ |
△ |
∼ |
Negated Relations
|
|
|
|
| ⪊ |
⊈ |
≯ |
≮ |
| ∈/ |
= |
≁ |
≩ |
Arrows
|
|
|
|
| → |
↓ |
⇆ |
↺ |
| ⇒ |
⇓ |
⇋ |
↶ |
| → |
↓ |
↔ |
↫ |
| ⇒ |
⇓ |
⇔ |
⇢ |
| ⇀ |
⇂ |
↣ |
⇛ |
Extensible Arrows
|
|
| abc |
overunder |
| abc |
abc |
Style, Color, Size, and Font
Class Assignment
Color
F=ma
F=ma
Error $$\textcolor{#228B22}{F=ma}$$
F=ma
F=ma
Font
|
|
|
| Ab0 |
AB |
Ab0 |
| AB0 |
Ab0 |
AB |
Size
|
|
|
| AB |
AB |
|
| AB |
AB |
AB |
| AB |
|
|
| AB |
AB |
AB |
Style
|
|
| i=1∑n |
x |
| ∑i=1n |
$\scriptscriptstyle $ |
| xlim |
x^2 |
| limx |
|
Symbols and Punctuation
|
|
|
|
| … |
⋯ |
⋱ |
⋮ |
| KATEX |
LATEX |
TEX |
✓ |
| ∇ |
∞ |
∞ |
† |
| – |
£ |
$ |
¥ |
| □ |
□ |
■ |
△ |
| ⧫ |
★ |
♣ |
♡ |
| c◯ |
® |
a◯ |
Ⓢ |