forked from barryclark/jekyll-now
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmathjax.html
More file actions
34 lines (34 loc) · 791 Bytes
/
mathjax.html
File metadata and controls
34 lines (34 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% if page.mathjax %}
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
Tex: {
equationNumbers: {
autoNumber: "AMS"
}
},
jax: ["input/TeX", "output/CommonHTML"],
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
inlineMath: [ ['$','$'], ['\\(','\\)'] ],
displayMath: [ ['$$', '$$'], ['\\[','\\]'] ],
processEscapes: true
},
CommonHTML: {
linebreaks: {
automatic: true
}
},
"HTML-CSS": {
linebreaks: {
automatic: true
}
},
SVG: {
linebreaks: {
automatic: true
}
}
});
</script>
{% endif %}