Debian Codegraph @

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

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