Skip to content

Commit

Permalink
Add MathJax config
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpfenninger committed Dec 22, 2023
1 parent 2dfe4a0 commit dbc5d2c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,39 @@
{% extends "base.html" %}

{% block content %}

{% if page.nb_url %}
<a href="{{ page.nb_url }}" title="Download Notebook" class="md-content__button md-icon">
{% include ".icons/material/download.svg" %}
</a>
{% endif %}

{{ super() }}

{% endblock content %}

{% block scripts %}

{{ super() }}

<script type="text/javascript">
if (!('mathjaxConfig' in window)) {
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true,
tagSide: "right",
tagIndent: ".8em",
multlineWidth: "85%",
tags: "ams"
},
options: {
ignoreHtmlClass: ".*",
processHtmlClass: "arithmatex"
}
}
}
</script>
{% endblock %}

0 comments on commit dbc5d2c

Please sign in to comment.