Debian Codegraph @

tests/extensions/arithmatex/arithmatex (generic).html

raw
1 <h1>Dollar Sign Not Trigger</h1>
2 <p>I have $3.00 and you have $5.00.</p>
3 <h1>Dollar Sign Escape</h1>
4 <p>$E(\mathbf{v}, \mathbf{h}) = -\sum_{i,j}w_{ij}v_i h_j - \sum_i b_i v_i - \sum_j c_j h_j$</p>
5 <h1>Dollar Sign Escaped Escape</h1>
6 <p>\<span class="arithmatex">\(3+3\)</span></p>
7 <h1>Dollar Double escaped escape</h1>
8 <p>\$3+3$</p>
9 <h1>Use Dollar sign</h1>
10 <p><span class="arithmatex">\(\$3.00 + \$5.00 = \$8.00\)</span></p>
11 <h1>Keep equations separate</h1>
12 <p><span class="arithmatex">\(3+3\)</span>
13 \(3+3)
14 \<span class="arithmatex">\(3+3\)</span></p>
15 <h1>Equations</h1>
16 <div class="arithmatex">\[
17 E(\mathbf{v}, \mathbf{h}) = -\sum_{i,j}w_{ij}v_i h_j - \sum_i b_i v_i - \sum_j c_j h_j
18 \]</div>
19 <div class="arithmatex">\[
20 E(\mathbf{v}, \mathbf{h}) = -\sum_{i,j}w_{ij}v_i h_j - \sum_i b_i v_i - \sum_j c_j h_j
21 \]</div>
22 <ul>
23 <li>
24 <p>Here are some more equations:</p>
25 <div class="arithmatex">\[
26 \begin{align}
27 p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
28 p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
29 \end{align}
30 \]</div>
31 </li>
32 <li>
33 <p>Inline equations: <span class="arithmatex">\(p(x|y) = \frac{p(y|x)p(x)}{p(y)}\)</span>, <span class="arithmatex">\(p(x|y) = \frac{p(y|x)p(x)}{p(y)}\)</span>.</p>
34 </li>
35 </ul>
36 <h1>Code</h1>
37 <p><code>$$
38 \begin{align}
39 p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
40 p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
41 \end{align}
42 $$</code></p>
43 <h1>Indented Code</h1>
44 <pre><code>$$
45 \begin{align}
46 p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
47 p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
48 \end{align}
49 $$
50 </code></pre>
51 <script type="text/x-mathjax-config">
52 MathJax.Hub.Config({
53 config: ["MMLorHTML.js"],
54 jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
55 extensions: ["tex2jax.js", "MathMenu.js", "MathZoom.js"],
56 tex2jax: {
57 inlineMath: [ ["\\(","\\)"] ],
58 displayMath: [ ["\\[","\\]"] ]
59 },
60 displayAlign: 'left',
61 showProcessingMessages: false,
62 messageStyle: 'none'
63 });
64 </script>
65 <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>