You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
4 years ago
|
<script async src="<%- theme.plugins.mathjax %>"></script>
|
||
6 years ago
|
<!-- MathJax配置,可通过单美元符号书写行内公式等 -->
|
||
|
<script type="text/x-mathjax-config">
|
||
6 years ago
|
MathJax.Hub.Config({
|
||
|
"HTML-CSS": {
|
||
|
preferredFont: "TeX",
|
||
|
availableFonts: ["STIX","TeX"],
|
||
|
linebreaks: { automatic:true },
|
||
|
EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50)
|
||
|
},
|
||
|
tex2jax: {
|
||
|
inlineMath: [ ["$", "$"], ["\\(","\\)"] ],
|
||
|
processEscapes: true,
|
||
|
ignoreClass: "tex2jax_ignore|dno",
|
||
|
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
||
|
},
|
||
|
TeX: {
|
||
|
equationNumbers: { autoNumber: "AMS" },
|
||
|
noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } },
|
||
|
Macros: { href: "{}" }
|
||
|
},
|
||
|
messageStyle: "none"
|
||
|
});
|
||
6 years ago
|
</script>
|
||
|
<!-- 给MathJax元素添加has-jax class -->
|
||
|
<script type="text/x-mathjax-config">
|
||
6 years ago
|
MathJax.Hub.Queue(function() {
|
||
|
var all = MathJax.Hub.getAllJax(), i;
|
||
|
for(i=0; i < all.length; i += 1) {
|
||
6 years ago
|
all[i].SourceElement().parentNode.className += (all[i].SourceElement().parentNode.className ? ' ' : '') + 'has-jax';
|
||
6 years ago
|
}
|
||
|
});
|
||
6 years ago
|
</script>
|