Browse Source

Adds MathJax configuration

Caleb Fangmeier 5 years ago
parent
commit
5cddb411a4
2 changed files with 12 additions and 0 deletions
  1. 5 0
      static/css/custom.css
  2. 7 0
      templates/base.html

+ 5 - 0
static/css/custom.css

@@ -0,0 +1,5 @@
+figure img {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+}

+ 7 - 0
templates/base.html

@@ -33,6 +33,13 @@
         {% endblock meta_tags_in_head %}
         <title>{% block title %}{{ SITENAME|striptags|e }}{% endblock title %}</title>
         {% block head_links %}
+        <script type="text/x-mathjax-config">
+        MathJax.Hub.Config({
+          TeX: { equationNumbers: { autoNumber: "AMS" } }
+        });
+        </script>
+        <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
+
         <link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
         <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
         {% if 'assets' in PLUGINS %}