Debian Codegraph @

test/sample.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>MathJax Test Page</title>
5 <!-- Copyright (c) 2009-2020 The MathJax Consortium -->
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8 <meta name="viewport" content="width=device-width, initial-scale=1">
9
10 <script type="text/x-mathjax-config">
11 MathJax.Hub.Config({
12 extensions: ["tex2jax.js"],
13 jax: ["input/TeX","output/HTML-CSS"],
14 tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
15 });
16 </script>
17 <script type="text/javascript" src="../MathJax.js"></script>
18
19 <style>
20 h1 {text-align:center}
21 h2 {
22 font-weight: bold;
23 background-color: #DDDDDD;
24 padding: .2em .5em;
25 margin-top: 1.5em;
26 border-top: 3px solid #666666;
27 border-bottom: 2px solid #999999;
28 }
29 </style>
30 </head>
31 <body>
32
33 <noscript>
34 <div style="color:#CC0000; text-align:center">
35 <b>Warning: <a href="http://www.mathjax.org/">MathJax</a>
36 requires JavaScript to process the mathematics on this page.<br />
37 If your browser supports JavaScript, be sure it is enabled.</b>
38 </div>
39 <hr>
40 </noscript>
41
42 <h1>Sample MathJax Equations</h1>
43
44 <blockquote>
45
46 <h2>The Lorenz Equations</h2>
47
48 <p>
49 \begin{align}
50 \dot{x} & = \sigma(y-x) \\
51 \dot{y} & = \rho x - y - xz \\
52 \dot{z} & = -\beta z + xy
53 \end{align}
54 </p>
55
56 <h2>The Cauchy-Schwarz Inequality</h2>
57
58 <p>\[
59 \left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
60 \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
61 \]</p>
62
63 <h2>A Cross Product Formula</h2>
64
65 <p>\[
66 \mathbf{V}_1 \times \mathbf{V}_2 =
67 \begin{vmatrix}
68 \mathbf{i} & \mathbf{j} & \mathbf{k} \\
69 \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
70 \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\
71 \end{vmatrix}
72 \]</p>
73
74 <h2>The probability of getting \(k\) heads when flipping \(n\) coins is:</h2>
75
76 <p>\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]</p>
77
78 <h2>An Identity of Ramanujan</h2>
79
80 <p>\[
81 \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
82 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
83 {1+\frac{e^{-8\pi}} {1+\ldots} } } }
84 \]</p>
85
86 <h2>A Rogers-Ramanujan Identity</h2>
87
88 <p>\[
89 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
90 \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
91 \quad\quad \text{for $|q|<1$}.
92 \]</p>
93
94 <h2>Maxwell's Equations</h2>
95
96 <p>
97 \begin{align}
98 \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
99 \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
100 \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
101 \nabla \cdot \vec{\mathbf{B}} & = 0
102 \end{align}
103 </p>
104
105 <h2>In-line Mathematics</h2>
106
107 <p>Finally, while display equations look good for a page of samples, the
108 ability to mix math and text in a paragraph is also important. This
109 expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation. As
110 you see, MathJax equations can be used this way as well, without unduly
111 disturbing the spacing between lines.</p>
112
113
114 </blockquote>
115
116 </body>
117 </html>