Line 9: | Line 9: | ||
<img class="top_image" src="https://static.igem.org/mediawiki/2019/a/ac/T--XMU-China--model.png"> | <img class="top_image" src="https://static.igem.org/mediawiki/2019/a/ac/T--XMU-China--model.png"> | ||
</div> | </div> | ||
− | <script type="text/javascript" src=" | + | <script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"] ],displayMath: [ ['$$','$$'], ["\\[","\\]"] ]}});</script> |
− | <script type="text/x-mathjax-config"> | + | <script type="text/javascript" src="path-to-MathJax/MathJax.js"></script> |
− | + | <script type="text/x-mathjax-config"> | |
− | + | var mathId = document.getElementById("post-content"); //选择公式识别范围 | |
− | + | MathJax.Hub.Config({ | |
− | }); | + | showProcessingMessages: false, //关闭js加载过程信息 |
+ | messageStyle: "none", //不显示信息 | ||
+ | extensions: ["tex2jax.js"], | ||
+ | jax: ["input/TeX", "output/HTML-CSS"], | ||
+ | tex2jax: { | ||
+ | inlineMath: [ ['$','$'], ["\\(","\\)"] ], //行内公式选择符 | ||
+ | displayMath: [ ['$$','$$'], ["\\[","\\]"] ], //段内公式选择符 | ||
+ | skipTags: ['script', 'noscript', 'style', 'textarea', 'pre','code','a'] //避开某些标签 | ||
+ | }, | ||
+ | "HTML-CSS": { | ||
+ | availableFonts: ["STIX","TeX"], //可选字体 | ||
+ | showMathMenu: false //关闭右击菜单显示 | ||
+ | } | ||
+ | }); | ||
+ | MathJax.Hub.Queue(["Typeset",MathJax.Hub,mathId]); | ||
</script> | </script> | ||
+ | <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML,http://myserver.com/MathJax/config/local/local.js"></script> | ||
+ | </body> | ||
Revision as of 10:02, 20 October 2019
![](https://static.igem.org/mediawiki/2019/a/ac/T--XMU-China--model.png)