files/reveal.js/test/examples/math.html in reveal-ck-3.9.2 vs files/reveal.js/test/examples/math.html in reveal-ck-4.0.0

- old
+ new

@@ -81,10 +81,18 @@ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned} \] </section> <section> + <h3>TeX Macros</h3> + + Here is a common vector space: + \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\] + used in functional analysis. + </section> + + <section> <section> <h3>The Lorenz Equations</h3> <div class="fragment"> \[\begin{aligned} @@ -151,31 +159,43 @@ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned} \] </div> </section> + + <section> + <h3>TeX Macros</h3> + + Here is a common vector space: + \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\] + used in functional analysis. + </section> </section> </div> </div> - <script src="../../lib/js/head.min.js"></script> <script src="../../js/reveal.js"></script> <script> Reveal.initialize({ history: true, transition: 'linear', math: { // mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', - config: 'TeX-AMS_HTML-full' + config: 'TeX-AMS_HTML-full', + TeX: { + Macros: { + R: '\\mathbb{R}', + set: [ '\\left\\{#1 \\; ; \\; #2\\right\\}', 2 ] + } + } }, dependencies: [ - { src: '../../lib/js/classList.js' }, { src: '../../plugin/math/math.js', async: true } ] }); </script>