Skip to content

Commit

Permalink
enhance: source of truth for mathjax (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Dec 20, 2024
1 parent cded19c commit 2906187
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
26 changes: 26 additions & 0 deletions user-guide/docs/mathjax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
extensions: ["tex2jax.js"],
"HTML-CSS": {
preferredFont: "TeX",
availableFonts: ["STIX","TeX"]
},
tex2jax: {
inlineMath: [ ["$", "$"], ["\\(","\\)"] ],
displayMath: [ ["$$","$$"], ["\\[", "\\]"] ],
processEscapes: true, ignoreClass: "tex2jax_ignore|dno"
},
TeX: {
noUndefined: {
attributes: {
mathcolor: "red",
mathbackground: "#FFEEEE",
mathsize: "90%"
}
}
},
messageStyle: "none"
});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"></script>
13 changes: 1 addition & 12 deletions user-guide/docs/usecases/padgett/usecase_JN_viz.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,7 @@ _Keywords: visualization; risk and resilience; infrastructure systems; static, i

### Resources

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
extensions: ["tex2jax.js"],
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] },
tex2jax: { inlineMath: [ ["$", "$"], ["\\(","\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
TeX: { noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } } },
messageStyle: "none"
});

</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"></script>
{% include-markdown '../../mathjax.md' %}

#### Jupyter Notebooks
The following Jupyter notebook is the basis for the use case described in this section. You can access and run it directly on DesignSafe by clicking on the "Open in DesignSafe" button.
Expand Down

0 comments on commit 2906187

Please sign in to comment.