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