Skip to content
Permalink
Browse files

Enable MathJax

  • Loading branch information...
georgewatson committed May 15, 2019
1 parent 828774c commit e3930929d5681cbafb699dac094ddfbdfa32fe50
Showing with 42 additions and 2 deletions.
  1. +1 −0 _includes/footer.html
  2. +27 −0 _includes/mathjax.html
  3. +14 −2 privacy_policy.md
@@ -46,6 +46,7 @@
<script async
src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js">
</script>
{% include mathjax.html %}
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
@@ -0,0 +1,27 @@
{% if page.mathjax %}
<!-- https://docs.mathjax.org/en/latest/configuration.html#local-config-files -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: [
"MathMenu.js",
"MathZoom.js",
"AssistiveMML.js",
"a11y/accessibility-menu.js"
],
jax: ["input/TeX", "output/CommonHTML"],
TeX: {
extensions: [
"AMSmath.js",
"AMSsymbols.js",
"noErrors.js",
"noUndefined.js",
]
},
displayAlign: "left",
displayIndent: "5em"
});
</script>
<script async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
{% endif %}
@@ -70,6 +70,19 @@ does not identify you personally and cannot be used to track you.
The value of this cookie will not be changed if you use your browser's built-in
stylesheet selector.

On pages with embedded equations,
your [MathJax](https://www.mathjax.org/) preferences may be stored using a
cookie.
MathJax cookies have the prefix `mjx`,
are not used to collect any information about you,
and cannot be used to track you.
If you disable cookies,
the equations should still display correctly,
but some functionality may be lost.
The MathJax source code is available
[on GitHub](https://github.com/mathjax/mathjax)
if you'd like to verify that these cookies aren't evil.

A cookie will also be stored to record that you have dismissed the cookie
notification banner,
so you don't get bothered with it every time you visit.
@@ -79,8 +92,7 @@ This banner uses
[Cookie Consent by Insites](https://cookieconsent.insites.com/),
but no information is shared with its developers.
You can inspect the source code
[on GitHub](https://github.com/insites/cookieconsent)
if you'd like to verify that this cookie isn't evil.
[on GitHub](https://github.com/insites/cookieconsent).

Other cookies may be stored by the following trusted partners.
Links to their cookie policies are provided below.

0 comments on commit e393092

Please sign in to comment.
You can’t perform that action at this time.