Fixed MathJax configuration example

This commit is contained in:
squidfunk
2017-01-09 21:58:29 +01:00
parent cb5d51e7c1
commit 6136fc905f

View File

@@ -191,10 +191,7 @@ adding another JavaScript file **before** the MathJax runtime in
`extra_javascript` which contains your MathJax configuration, e.g.: `extra_javascript` which contains your MathJax configuration, e.g.:
``` js ``` js
MathJax.Hub.Config({ window.MathJax = {
config: ["MMLorHTML.js"],
extensions: ["tex2jax.js"],
jax: ["input/TeX"],
tex2jax: { tex2jax: {
inlineMath: [ ["\\(","\\)"] ], inlineMath: [ ["\\(","\\)"] ],
displayMath: [ ["\\[","\\]"] ] displayMath: [ ["\\[","\\]"] ]
@@ -205,12 +202,15 @@ MathJax.Hub.Config({
MultLineWidth: "85%", MultLineWidth: "85%",
equationNumbers: { equationNumbers: {
autoNumber: "AMS", autoNumber: "AMS",
},
unicode: {
fonts: "STIXGeneral,'Arial Unicode MS'"
} }
}, },
displayAlign: 'left', displayAlign: "left",
showProcessingMessages: false, showProcessingMessages: false,
messageStyle: 'none' messageStyle: "none"
}); };
``` ```
In your `mkdocs.yml`, include it with: In your `mkdocs.yml`, include it with: