Skip to content
Snippets Groups Projects
Commit 3d66adca authored by Goik Martin's avatar Goik Martin
Browse files

Using reveal.js math interface plugin

parent 1b5642a5
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,6 @@
<!-- Code syntax highlighting -->
<link href="reveal.js/lib/css/zenburn.css" rel="stylesheet" />
<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
<script src="https://prog.mi.hdm-stuttgart.de/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head>
<body>
......@@ -53,14 +50,20 @@
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
math: {
mathjax: 'https://prog.mi.hdm-stuttgart.de/mathjax/MathJax.js',
config: 'TeX-AMS-MML_HTMLorMML', // See http://docs.mathjax.org/en/latest/config-files.html
},
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true }
{ src: 'reveal.js/plugin/notes/notes.js', async: true },
{ src: 'reveal.js/plugin/math/math.js', async: true }
]
});
/*]]>*/</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment