forked from pandao/editor.md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkatex-tests.html
132 lines (129 loc) · 7.78 KB
/
katex-tests.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="zh">
<head>
<title>KaTeX Tests</title>
<meta charset="UTF-8">
<meta name="description" content="" />
<meta name="keywords" content="" />
<style>
* {
margin:0;
padding:0;
}
body{font-size:14px;color:#444;font-family:"微软雅黑",Arial;background:#fff;padding: 15px;}
.katex {display: block;margin-bottom: 10px;}
</style>
</head>
<body>
<a href="http://khan.github.io/KaTeX/" target="_blank">http://khan.github.io/KaTeX/</a><br/><br/>
<a href="http://meta.wikimedia.org/wiki/Help:Displaying_a_formula" target="_blank">http://meta.wikimedia.org/wiki/Help:Displaying_a_formula</a>
<br/><br/>
<span class="katex">a^2</span>
<span class="katex">a^{2+2}</span>
<span class="katex">a_2</span>
<span class="katex">{x_2}^3</span>
<span class="katex">x_2^3</span>
<span class="katex">10^{10^{8}}</span>
<span class="katex">a_{i,j}</span>
<span class="katex">_nP_k</span>
<span class="katex">E=MC^2</span>
<span class="katex">\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace</span>
<span class="katex">\left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack</span>
<span class="katex">\left ( \frac{a}{b} \right )</span>
<span class="katex">\left \langle \frac{a}{b} \right \rangle</span>
<span class="katex">x > y = 100</span>
<span class="katex">c = \pm\sqrt{a^2 + b^2}</span>
<span class="katex">\left . \frac{A}{B} \right \} \to X</span>
<span class="katex">\left / \frac{a}{b} \right \backslash</span>
<span class="katex">\left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil</span>
<span class="katex">\frac{1}{2}=0.5</span>
<span class="katex">\dfrac{k}{k-1} = 0.5</span>
<span class="katex">\dbinom{n}{k} \binom{n}{k}</span>
<span class="katex">\oint_C x^3\, dx + 4y^2\, dy</span>
<span class="katex">\bigcap_1^n p \bigcup_1^k p</span>
<span class="katex">\phi_n(\kappa) =
\frac{1}{4\pi^2\kappa^2} \int_0^\infty
\frac{\sin(\kappa R)}{\kappa R}
\frac{\partial}{\partial R}
\left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR</span>
<span class="katex">\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
{3^m\left(m\,3^n+n\,3^m\right)}</span>
<span class="katex">e^{i \pi} + 1 = 0</span>
<span class="katex">\left ( \frac{1}{2} \right )</span>
<span class="katex">x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}</span>
<span class="katex">{\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}</span>
<span class="katex">\textstyle \sum_{k=1}^N k^2</span>
<span class="katex">\dfrac{ \tfrac{1}{2}[1-(\tfrac{1}{2})^n] }{ 1-\tfrac{1}{2} } = s_n</span>
<span class="katex">\binom{n}{k}</span>
<span class="katex">0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots</span>
<span class="katex">f(x) = \int_{-\infty}^\infty
\hat f(\xi)\,e^{2 \pi i \xi x}
\,d\xi</span>
<span class="katex">\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }</span>
<span class="katex">\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)</span>
<span class="katex">\displaystyle 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1.</span>
<span class="katex">2 = \left(
\frac{\left(3-x\right) \times 2}{3-x}
\right)</span>
<span class="katex">S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}</span>
<span class="katex">x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</span>
<span class="katex">ax^2 + bx + c = 0\,</span>
<span class="katex">\int_a^x \!\!\!\int_a^s f(y)\,dy\,ds
= \int_a^x f(y)(x-y)\,dy</span>
<span class="katex">\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
{3^m\left(m\,3^n+n\,3^m\right)}</span>
<span class="katex">u'' + p(x)u' + q(x)u=f(x),\quad x>a</span>
<span class="katex">|\bar{z}| = |z|,
|(\bar{z})^n| = |z|^n,
\arg(z^n) = n \arg(z)</span>
<span class="katex">\lim_{z\rightarrow z_0} f(z)=f(z_0)</span>
<span class="katex">\phi_n(\kappa) =
0.033C_n^2\kappa^{-11/3},\quad
\frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}</span>
<span class="katex">\sum_{k=1}^N k^2</span>
<span class="katex">\textstyle \sum_{k=1}^N k^2</span>
<span class="katex">\prod_{i=1}^N x_i</span>
<span class="katex">\textstyle \prod_{i=1}^N x_i</span>
<span class="katex">\coprod_{i=1}^N x_i</span>
<span class="katex">\textstyle \coprod_{i=1}^N x_i</span>
<span class="katex">\int_{1}^{3}\frac{e^3/x}{x^2}\, dx</span>
<span class="katex">\int_C x^3\, dx + 4y^2\, dy</span>
<span class="katex">{}_1^2\!\Omega_3^4</span>
<span class="katex">x', y'', f', f''</span>
<span class="katex">\dot{x}, \ddot{x}</span>
<span class="katex">\hat a \ \bar b \ \vec c</span>
<span class="katex">\lessapprox \lesssim \eqslantless \leqslant \leqq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox</span>
<span class="katex">\smile \frown \wr \triangleleft \triangleright \infty \bot \top</span>
<span class="katex">\leftarrow \gets \rightarrow \to \nleftarrow \nrightarrow \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow</span>
<span class="katex">\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow</span>
<span class="katex">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</span>
<span class="katex">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright</span>
<span class="katex">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft</span>
<span class="katex">\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow</span>
<span class="katex">\Diamond \Box \triangle \angle \perp \mid \nmid \| 45^\circ</span>
<span class="katex">
\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}</span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<span class="katex"></span>
<script src="../examples/js/jquery.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script>
<script type="text/javascript">
$(function() {
$(".katex").each(function(){
var tex = $(this);
katex.render(tex.text(), tex[0]);
});
});
</script>
</body>
</html>