diff options
Diffstat (limited to 'layouts/partials/mathjax.html')
-rw-r--r-- | layouts/partials/mathjax.html | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html index a8c59ab..d549e01 100644 --- a/layouts/partials/mathjax.html +++ b/layouts/partials/mathjax.html @@ -1,33 +1,36 @@ -<script type="text/javascript" async src="https://cdn.bootcss.com/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> -MathJax.Hub.Config({ - tex2jax: { - inlineMath: [['$','$'], ['\\(','\\)']], - displayMath: [['$$','$$'], ['\[\[','\]\]']], - processEscapes: true, - processEnvironments: true, - skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'], - TeX: { equationNumbers: { autoNumber: "AMS" }, - extensions: ["AMSmath.js", "AMSsymbols.js"] } - } -}); +<script type="text/javascript" async + src="https://cdn.bootcss.com/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> + MathJax.Hub.Config({ + tex2jax: { + inlineMath: [['$', '$'], ['\\(', '\\)']], + displayMath: [['$$', '$$'], ['\[\[', '\]\]']], + processEscapes: true, + processEnvironments: true, + skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'], + TeX: { + equationNumbers: { autoNumber: "AMS" }, + extensions: ["AMSmath.js", "AMSsymbols.js"] + } + } + }); -MathJax.Hub.Queue(function() { - // Fix <code> tags after MathJax finishes running. This is a - // hack to overcome a shortcoming of Markdown. Discussion at - // https://github.com/mojombo/jekyll/issues/199 - var all = MathJax.Hub.getAllJax(), i; - for(i = 0; i < all.length; i += 1) { - all[i].SourceElement().parentNode.className += ' has-jax'; - } -}); -</script> + MathJax.Hub.Queue(function () { + // Fix <code> tags after MathJax finishes running. This is a + // hack to overcome a shortcoming of Markdown. Discussion at + // https://github.com/mojombo/jekyll/issues/199 + var all = MathJax.Hub.getAllJax(), i; + for (i = 0; i < all.length; i += 1) { + all[i].SourceElement().parentNode.className += ' has-jax'; + } + }); + </script> <style> -code.has-jax { - font: inherit; - font-size: 100%; - background: inherit; - border: inherit; - color: #515151; -} + code.has-jax { + font: inherit; + font-size: 100%; + background: inherit; + border: inherit; + color: #515151; + } </style>
\ No newline at end of file |