-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmathjax.js
More file actions
25 lines (23 loc) 路 742 Bytes
/
Copy pathmathjax.js
File metadata and controls
25 lines (23 loc) 路 742 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
// ref: <https://squidfunk.github.io/mkdocs-material/reference/math/#mathjax>
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true,
// ref: <https://docs.mathjax.org/en/v3.2/input/tex/extensions/physics.html#physics>
packages: { "[+]": ["physics"] },
},
// ref: <https://docs.mathjax.org/en/v3.2/web/components/combined.html#tex-mml-chtml>
loader: { load: ["tex-mml-chtml", "[tex]/physics"] },
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex",
},
};
document$.subscribe(() => {
MathJax.startup.output.clearCache();
MathJax.typesetClear();
MathJax.texReset();
MathJax.typesetPromise();
});