Skip to content

Commit

Permalink
Create mathjax_support.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bshyuunn authored Nov 23, 2023
1 parent d9f3aef commit e743bd2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions _includes/mathjax_support.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
},
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$'] ],
processEscapes: true,
}
});
MathJax.Hub.Register.MessageHook("Math Processing Error",function (message) {
alert("Math Processing Error: "+message[1]);
});
MathJax.Hub.Register.MessageHook("TeX Jax - parse error",function (message) {
alert("Math Processing Error: "+message[1]);
});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

0 comments on commit e743bd2

Please sign in to comment.