% \f is defined as #1f(#2) using the macro
f\relax(x) = \int_{-\infty}^\infty
f\hat\xi\,e^{2 \pi i \xi x}
\,d\xi
基于 KaTeX 在一行
展示示例: `KaTeX:\int_0^\infty x^2 dx`
基于 KaTeX 在一行展示示例:
:- | :- | :- |
---|---|---|
a' | \tilde{a} | \mathring{g} |
a'' | \widetilde{ac} | \overgroup{AB} |
a^{\prime} | \utilde{AB} | \undergroup{AB} |
\acute{a} | \vec{F} | \Overrightarrow{AB} |
\bar{y} | \overleftarrow{AB} | \overrightarrow{AB} |
\breve{a} | \underleftarrow{AB} | \underrightarrow{AB} |
\check{a} | \overleftharpoon{ac} | \overrightharpoon{ac} |
\dot{a} | \overleftrightarrow{AB} | \overbrace{AB} |
\ddot{a} | \underleftrightarrow{AB} | \underbrace{AB} |
\grave{a} | \overline{AB} | \overlinesegment{AB} |
\hat{\theta} | \underline{AB} | \underlinesegment{AB} |
\widehat{ac} | \widecheck{ac} | \underbar{X} |
:- | :- | :- |
---|---|---|
\'{a} | \~{a} | |
\.{a} | \H{a} | |
\`{a} | \={a} | |
\"{a} | \v{a} | |
\^{a} | \u{a} | |
\r{a} |
:- | :- |
---|---|
\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 |
预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|---|---|---|---|---|---|
\alpha | \kappa | \psi | \digamma | \Delta | \Theta | ||||||
\beta | \lambda | \rho | \varepsilon | \Gamma | \Upsilon | ||||||
\chi | \mu | \sigma | \varkappa | \Lambda | \Xi | ||||||
\delta | \nu | \tau | \varphi | \Omega | |||||||
\epsilon | o | \theta | \varpi | \Phi | \aleph | ||||||
\eta | \omega | \upsilon | \varrho | \Pi | \beth | ||||||
\gamma | \phi | \xi | \varsigma | \Psi | \daleth | ||||||
\iota | \pi | \zeta | \vartheta | \Sigma | \gimel |
其它字母
:- | :- | :- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|---|---|
\imath | \nabla | \Im | \Reals | \text{\OE} | |||||
\jmath | \partial | \image | \wp | \text{\o} | |||||
\aleph | \Game | \Bbbk | \weierp | \text{\O} | |||||
\alef | \Finv | \N | \Z | \text{\ss} | |||||
\alefsym | \cnums | \natnums | \text{\aa} | \text{\i} | |||||
\beth | \Complex | \R | \text{\AA} | \text{\j} | |||||
\gimel | \ell | \Re | \text{\ae} | ||||||
\daleth | \hbar | \real | \text{\AE} | ||||||
\eth | \hslash | \reals | \text{\oe} |
预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|---|---|
\Alpha | \Beta | \Gamma | \Delta | ||||
\Epsilon | \Zeta | \Eta | \Theta | ||||
\Iota | \Kappa | \Lambda | \Mu | ||||
\Nu | \Xi | \Omicron | \Pi | ||||
\Rho | \Sigma | \Tau | \Upsilon | ||||
\Phi | \Chi | \Psi | \Omega | ||||
\varGamma | \varDelta | \varTheta | \varLambda | ||||
\varXi | \varPi | \varSigma | \varUpsilon | ||||
\varPhi | \varPsi | \varOmega | |||||
\alpha | \beta | \gamma | \delta | ||||
\epsilon | \zeta | \eta | \theta | ||||
\iota | \kappa | \lambda | \mu | ||||
\nu | \xi | \omicron | \pi | ||||
\rho | \sigma | \tau | \upsilon | ||||
\phi | \chi | \psi | \omega | ||||
\varepsilon | \varkappa | \vartheta | \thetasym | ||||
\varpi | \varrho | \varsigma | \varphi | ||||
\digamma |
:- | :- | :- | :- | :- |
---|---|---|---|---|
\cancel{5} | \overbrace{a+b+c}^{\text{note}} | |||
\bcancel{5} | \underbrace{a+b+c}_{\text{note}} | |||
\xcancel{ABC} | \not = | |||
\sout{abc} | \boxed{\pi=\frac c d} | |||
| $a_{\angl n} | a_\angln | ||
\phase{-78^\circ} |
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
x_n | \stackrel{!}{=} | a \atop b | |||
e^x | \overset{!}{=} | a\raisebox{0.25em}{$b$}c | |||
_u^o | \underset{!}{=} | a+\left(\vcenter{\hbox{$\frac{\frac a b}c$}}\right) | |||
\sum_{\substack{0<i<m\\0<j<n}} |
:- | :- | :- | :- |
---|---|---|---|
| |||
|
\sum_{\mathclap{1\le i\le j\le n}} x_{ij}
预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|
\frac{abc}{xyz} | \overline{abc} | \overrightarrow{abc} | |||
f' | \underline{abc} | \overleftarrow{abc} | |||
\sqrt{abc} | \widehat{abc} | \overbrace{abc} | |||
\sqrt[n]{abc} | \widetilde{abc} | \underbrace{abc} |
预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|---|---|---|---|
() | \lparen \rparen | ⌈ ⌉ | \lceil \rceil | \uparrow | |||||
[] | \lbrack \rbrack | ⌊ ⌋ | \lfloor \rfloor | \downarrow | |||||
{} | \lbrace \rbrace | ⎰⎱ | \lmoustache \rmoustache | \updownarrow | |||||
⟨⟩ | \langle \rangle | ⟮ ⟯ | \lgroup \rgroup | \Uparrow | |||||
| | \vert | ┌ ┐ | \ulcorner \urcorner | \Downarrow | |||||
( | \| | \Vert | └ ┘ | \llcorner \lrcorner | \Updownarrow | ||||
\lvert \rvert | \lVert \rVert | \left. | \right. | \backslash | |||||
\lang \rang | \lt \gt | ⟦ ⟧ | \llbracket \rrbracket | \lBrace \rBrace |
可以使用一对表达式 \left
和 \right
来将分隔符 和 的高度与其内容的高度进行匹配,例如:
:- | :- | :- | :- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|---|---|---|
\left| | \right| | \left\{ | \right\} | \left\Vert | \right. |
预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|---|---|---|---|
\sum | \int | \biguplus | \bigoplus | \bigvee | |||||
\prod | \oint | \bigcap | \bigotimes | \bigwedge | |||||
\coprod | \iint | \bigcup | \bigodot | \bigodot |
预览 | 方法 | 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
---|---|---|---|---|---|---|---|
\arccos | \arcsin | \arcsin | \arg | ||||
\cos | \cosh | \cot | \coth | ||||
\csc | \deg | \det | \dim | ||||
\exp | \gcd | \hom | \inf | ||||
\ker | \lg | \lim | \liminf | ||||
\limsup | \ln | \log | \max | ||||
\min | \Pr | \sec | \sin | ||||
\sinh | \sup | \tan | \tanh |
函数名应该用罗马字体,而不是斜体,例如:
:- | :- | :- | :- |
---|---|---|---|
Correct: | \tan(at-n\pi) | ||
Incorrect: | tan(at-n\pi) |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
\forall | \complement | \therefore | \emptyset | ||||
\exists | \subset | \because | \empty | ||||
\exist | \supset | \mapsto | \varnothing | ||||
\nexists | \mid | \to | \implies | ||||
\in | \land | \gets | \impliedby | ||||
\isin | \lor | \leftrightarrow | \iff | ||||
\notin | \ni | \notni | \neg \lnot |
:- | :- | :- | :- |
---|---|---|---|
:- | :- | :- | :- |
---|---|---|---|
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
\braket{\phi|\psi} | |||||
\Braket{ ϕ | \frac{∂^2}{∂ t^2} | ψ } |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
\arcsin | \cosec | \deg | \sec | ||||
\arccos | \cosh | \dim | \sin | ||||
\arctan | \cot | \exp | \sinh | ||||
\arctg | \cotg | \hom | \sh | ||||
\arcctg | \coth | \ker | \tan | ||||
\arg | \csc | \lg | \tanh | ||||
\ch | \ctg | \ln | \tg | ||||
\cos | \cth | \log | \th | ||||
\operatorname{f} | |||||||
\argmax | \injlim | \min | \varinjlim | ||||
\argmin | \lim | \plim | \varliminf | ||||
\det | \liminf | \Pr | \varlimsup | ||||
\gcd | \limsup | \projlim | \varprojlim | ||||
\inf | \max | \sup | \operatorname*{f} | ||||
\operatornamewithlimits{f} |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
\sum | \prod | \bigotimes | \bigvee | ||||
\int | \coprod | \bigoplus | \bigwedge | ||||
\iint | \intop | \bigodot | \bigcap | ||||
\iiint | \smallint | \biguplus | \bigcup | ||||
\oint | \oiint | \oiiint | \bigsqcup |
:- | :- | :- | :- |
---|---|---|---|
\frac{a}{b} | \tfrac{a}{b} | ||
{a \over b} | \dfrac{a}{b} | ||
\genfrac ( ] {2pt}{1}a{a+1} | {a \above{2pt} b+1} | ||
a/b | \cfrac{a}{1 + \cfrac{1}{b}} |
:- | :- | :- | :- |
---|---|---|---|
\binom{n}{k} | \dbinom{n}{k} | ||
{n\brace k} | {n \choose k} | ||
\tbinom{n}{k} | {n\brack k} |
:- | :- | :- | :- |
---|---|---|---|
\sqrt{x} | \sqrt[3]{x} |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
+ | \cdot | \gtrdot | x \pmod a | ||||
- | \cdotp | \intercal | x \pod a | ||||
/ | \centerdot | \land | \rhd | ||||
* | \circ | \leftthreetimes | \rightthreetimes | ||||
\amalg | \circledast | \ldotp | \rtimes | ||||
\And | \circledcirc | \lor | \setminus | ||||
\ast | \circleddash | \lessdot | \smallsetminus | ||||
\barwedge | \Cup | \lhd | \sqcap | ||||
\bigcirc | \cup | \ltimes | \sqcup | ||||
\bmod | \curlyvee | x\mod a | \times | ||||
\boxdot | \curlywedge | \mp | \unlhd | ||||
\boxminus | \div | \odot | \unrhd | ||||
\boxplus | \divideontimes | \ominus | \uplus | ||||
\boxtimes | \dotplus | \oplus | \vee | ||||
\bullet | \doublebarwedge | \otimes | \veebar | ||||
\Cap | \doublecap | \oslash | \wedge | ||||
\cap | \doublecup | \pm | \plusmn | ||||
\wr |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
= | \doteqdot | \lessapprox | \smile | ||||
< | \eqcirc | \lesseqgtr | \sqsubset | ||||
> | \eqcolon \minuscolon | \lesseqqgtr | \sqsubseteq | ||||
: | \Eqcolon \minuscoloncolon | \lessgtr | \sqsupset | ||||
\approx | \eqqcolon \equalscolon | \lesssim | \sqsupseteq | ||||
\approxcolon | \Eqqcolon \equalscoloncolon | \ll | \Subset | ||||
\approxcoloncolon | \eqsim | \lll | \subset \sub | ||||
\approxeq | \eqslantgtr | \llless | \subseteq \sube | ||||
\asymp | \eqslantless | \lt | \subseteqq | ||||
\backepsilon | \equiv | \mid | \succ | ||||
\backsim | \fallingdotseq | \models | \succapprox | ||||
\backsimeq | \frown | \multimap | \succcurlyeq | ||||
\between | \ge | \origof | \succeq | ||||
\bowtie | \geq | \owns | \succsim | ||||
\bumpeq | \geqq | \parallel | \Supset | ||||
\Bumpeq | \geqslant | \perp | \supset | ||||
\circeq | \gg | \pitchfork | \supseteq \supe | ||||
\colonapprox | \ggg | \prec | \supseteqq | ||||
\Colonapprox \coloncolonapprox | \gggtr | \precapprox | \thickapprox | ||||
\coloneq \colonminus | \gt | \preccurlyeq | \thicksim | ||||
\Coloneq \coloncolonminus | \gtrapprox | \preceq | \trianglelefteq | ||||
\coloneqq \colonequals | \gtreqless | \precsim | \triangleq | ||||
\Coloneqq \coloncolonequals | \gtreqqless | \propto | \trianglerighteq | ||||
\colonsim | \gtrless | \risingdotseq | \varpropto | ||||
\Colonsim \coloncolonsim | \gtrsim | \shortmid | \vartriangle | ||||
\cong | \imageof | \shortparallel | \vartriangleleft | ||||
\curlyeqprec | \in \isin | \sim | \vartriangleright | ||||
\curlyeqsucc | \Join | \simcolon | \vcentcolon \ratio | ||||
\dashv | \le | \simcoloncolon | \vdash | ||||
\dblcolon \coloncolon | \leq | \simeq | \vDash | ||||
\doteq | \leqq | \smallfrown | \Vdash | ||||
\Doteq | \leqslant | \smallsmile | \Vvdash |
:- | :- | :- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|---|---|
\gnapprox | \ngeqslant | \nsubseteq | \precneqq | ||||
\gneq | \ngtr | \nsubseteqq | \precnsim | ||||
\gneqq | \nleq | \nsucc | \subsetneq | ||||
\gnsim | \nleqq | \nsucceq | \subsetneqq | ||||
\gvertneqq | \nleqslant | \nsupseteq | \succnapprox | ||||
\lnapprox | \nless | \nsupseteqq | \succneqq | ||||
\lneq | \nmid | \ntriangleleft | \succnsim | ||||
\lneqq | \notin | \ntrianglelefteq | \supsetneq | ||||
\lnsim | \notni | \ntriangleright | \supsetneqq | ||||
\lvertneqq | \nparallel | \ntrianglerighteq | \varsubsetneq | ||||
\ncong | \nprec | \nvdash | \varsubsetneqq | ||||
\ne | \npreceq | \nvDash | \varsupsetneq | ||||
\neq | \nshortmid | \nVDash | \varsupsetneqq | ||||
\ngeq | \nshortparallel | \nVdash | |||||
\ngeqq | \nsim | \precnapprox |
\not =
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
\circlearrowleft | \leftharpoonup | \rArr | |||
\circlearrowright | \leftleftarrows | \rarr | |||
\curvearrowleft | \leftrightarrow | \restriction | |||
\curvearrowright | \Leftrightarrow | \rightarrow | |||
\Darr | \leftrightarrows | \Rightarrow | |||
\dArr | \leftrightharpoons | \rightarrowtail | |||
\darr | \leftrightsquigarrow | \rightharpoondown | |||
\dashleftarrow | \Lleftarrow | \rightharpoonup | |||
\dashrightarrow | \longleftarrow | \rightleftarrows | |||
\downarrow | \Longleftarrow | \rightleftharpoons | |||
\Downarrow | \longleftrightarrow | \rightrightarrows | |||
\downdownarrows | \Longleftrightarrow | \rightsquigarrow | |||
\downharpoonleft | \longmapsto | \Rrightarrow | |||
\downharpoonright | \longrightarrow | \Rsh | |||
\gets | \Longrightarrow | \searrow | |||
\Harr | \looparrowleft | \swarrow | |||
\hArr | \looparrowright | \to | |||
\harr | \Lrarr | \twoheadleftarrow | |||
\hookleftarrow | \lrArr | \twoheadrightarrow | |||
\hookrightarrow | \lrarr | \Uarr | |||
\iff | \Lsh | \uArr | |||
\impliedby | \mapsto | \uarr | |||
\implies | \nearrow | \uparrow | |||
\Larr | \nleftarrow | \Uparrow | |||
\lArr | \nLeftarrow | \updownarrow | |||
\larr | \nleftrightarrow | \Updownarrow | |||
\leadsto | \nLeftrightarrow | \upharpoonleft | |||
\leftarrow | \nrightarrow | \upharpoonright | |||
\Leftarrow | \nRightarrow | \upuparrows | |||
\leftarrowtail | \nwarrow | ||||
\leftharpoondown | \Rarr |
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
\xleftarrow{abc} | \xrightarrow[under]{over} | ||||
\xLeftarrow{abc} | \xRightarrow{abc} | ||||
\xleftrightarrow{abc} | \xLeftrightarrow{abc} | ||||
\xhookleftarrow{abc} | \xhookrightarrow{abc} | ||||
\xtwoheadleftarrow{abc} | \xtwoheadrightarrow{abc} | ||||
\xleftharpoonup{abc} | \xrightharpoonup{abc} | ||||
\xleftharpoondown{abc} | \xrightharpoondown{abc} | ||||
\xleftrightharpoons{abc} | \xrightleftharpoons{abc} | ||||
\xtofrom{abc} | \xmapsto{abc} | ||||
\xlongequal{abc} |
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
% comment | \dots | \KaTeX | |||
\% | \cdots | \LaTeX | |||
\# | \ddots | \TeX | |||
\& | \ldots | \nabla | |||
\_ | \vdots | \infty | |||
\text{\textunderscore} | \dotsb | \infin | |||
\text{--} | \dotsc | \checkmark | |||
\text{\textendash} | \dotsi | \dag | |||
\text{---} | \dotsm | \dagger | |||
\text{\textemdash} | \dotso | \text{\textdagger} | |||
\text{\textasciitilde} | \sdot | \ddag | |||
\text{\textasciicircum} | \mathellipsis | \ddagger | |||
\text{\textellipsis} | \text{\textdaggerdbl} | ||||
text{\textquoteleft} | \Box | \Dagger | |||
\lq | \square | \angle | |||
\text{\textquoteright} | \blacksquare | \measuredangle | |||
\rq | \triangle | \sphericalangle | |||
\text{\textquotedblleft} | \triangledown | \top | |||
" | \triangleleft | \bot | |||
\text{\textquotedblright} | \triangleright | \$ | |||
\colon | \bigtriangledown | \text{\textdollar} | |||
\backprime | \bigtriangleup | \pounds | |||
\prime | \blacktriangle | \mathsterling | |||
\text{\textless} | \blacktriangledown | \text{\textsterling} | |||
\text{\textgreater} | \blacktriangleleft | \yen | |||
\text{\textbar} | \blacktriangleright | \surd | |||
\text{\textbardbl} | \diamond | \degree | |||
\text{\textbraceleft} | \Diamond | \text{\textdegree} | |||
\text{\textbraceright} | \lozenge | \mho | |||
\text{\textbackslash} | \blacklozenge | \diagdown | |||
\text{\P} \P | \star | \diagup | |||
\text{\S} \S | \bigstar | \flat | |||
\text{\sect} | \clubsuit | \natural | |||
\copyright | \clubs | \sharp | |||
\circledR | \diamondsuit | \heartsuit | |||
\text{\textregistered} | \diamonds | \hearts | |||
\circledS | \spadesuit | \spades | |||
\text{\textcircled a} | \maltese | \minuso |
\begin{matrix}
a & b \\
c & d
\end{matrix}
\begin{array}{cc}
a & b \\
c & d
\end{array}
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
\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{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}
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{smallmatrix}
a & b \\
c & d
\end{smallmatrix}
\sum_{
\begin{subarray}{l}
i\in\Lambda\\
0<j<n
\end{subarray}}
\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}
:- | :- |
---|---|
\color{blue} F=ma | |
\textcolor{blue}{F=ma} | |
\textcolor{#228B22}{F=ma} | |
\colorbox{aqua}{$F=ma$} | |
\fcolorbox{red}{aqua}{$F=ma$} |
:- | :- | :- | :- | :- | :- |
---|---|---|---|---|---|
\Huge AB | \normalsize AB | ||||
\huge AB | \huge AB | ||||
\LARGE AB | \LARGE AB | ||||
\Large AB | \Large AB | ||||
\large AB | \large AB |
:- | :- | :- | :- |
---|---|---|---|