Skip to content

Commit f3242d1

Browse files
committed
Add HTML header for MathJax
1 parent efe91f9 commit f3242d1

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

_includes/head.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script type="text/x-mathjax-config">
2+
MathJax.Hub.Config({
3+
extensions: ["tex2jax.js"],
4+
jax: ["input/TeX", "output/HTML-CSS"],
5+
tex2jax: {
6+
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
7+
inlineMath: [
8+
['$', '$'],
9+
],
10+
displayMath: [
11+
['$$', '$$'],
12+
],
13+
processEscapes: true,
14+
},
15+
TeX: {
16+
equationNumbers: {
17+
autoNumber: "all",
18+
},
19+
},
20+
"HTML-CSS": {
21+
availableFonts: ["TeX"],
22+
},
23+
});
24+
</script>
25+
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

0 commit comments

Comments
 (0)