File: arithmatex.html

package info (click to toggle)
pymdown-extensions 10.19.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,008 kB
  • sloc: python: 61,088; javascript: 447; sh: 8; makefile: 5
file content (79 lines) | stat: -rw-r--r-- 3,248 bytes parent folder | download | duplicates (3)
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
<h1>Dollar Sign Not Trigger</h1>
<p>I have $3.00 and you have $5.00.</p>
<h1>Dollar Sign Escape</h1>
<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>
<h1>Dollar Sign Escaped Escape</h1>
<p>\<span class="arithmatex"><span class="MathJax_Preview">3+3</span><script type="math/tex">3+3</script></span></p>
<h1>Dollar Double escaped escape</h1>
<p>\$3+3$</p>
<h1>Use Dollar sign</h1>
<p><span class="arithmatex"><span class="MathJax_Preview">\$3.00 + \$5.00 = \$8.00</span><script type="math/tex">\$3.00 + \$5.00 = \$8.00</script></span></p>
<h1>Keep equations separate</h1>
<p><span class="arithmatex"><span class="MathJax_Preview">3+3</span><script type="math/tex">3+3</script></span>
\(3+3)
\<span class="arithmatex"><span class="MathJax_Preview">3+3</span><script type="math/tex">3+3</script></span></p>
<h1>Equations</h1>
<div class="arithmatex">
<div class="MathJax_Preview">
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
</div>
<script type="math/tex; mode=display">
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
</script>
</div>
<div class="arithmatex">
<div class="MathJax_Preview">
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
</div>
<script type="math/tex; mode=display">
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
</script>
</div>
<ul>
<li>
<p>Here are some more equations:</p>
<div class="arithmatex">
<div class="MathJax_Preview">
    \begin{align}
        p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
        p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
    \end{align}
</div>
<script type="math/tex; mode=display">
    \begin{align}
        p(v_i=1|\mathbf{h}) & = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
        p(h_j=1|\mathbf{v}) & = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
    \end{align}
</script>
</div>
</li>
<li>
<p>Inline equations: <span class="arithmatex"><span class="MathJax_Preview">p(x|y) = \frac{p(y|x)p(x)}{p(y)}</span><script type="math/tex">p(x|y) = \frac{p(y|x)p(x)}{p(y)}</script></span>, <span class="arithmatex"><span class="MathJax_Preview">p(x|y) = \frac{p(y|x)p(x)}{p(y)}</span><script type="math/tex">p(x|y) = \frac{p(y|x)p(x)}{p(y)}</script></span>.</p>
</li>
</ul>
<h1>Code</h1>
<p><code>$$
    \begin{align}
        p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
        p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
    \end{align}
$$</code></p>
<h1>Indented Code</h1>
<pre><code>$$
    \begin{align}
        p(v_i=1|\mathbf{h}) &amp; = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\
        p(h_j=1|\mathbf{v}) &amp; = \sigma\left(\sum_i w_{ij}v_i + c_j\right)
    \end{align}
$$
</code></pre>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    config: ["MMLorHTML.js"],
    jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
    extensions: ["MathMenu.js", "MathZoom.js"],
    displayAlign: 'left',
    showProcessingMessages: false,
    messageStyle: 'none'
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>