|
|
(未显示同一用户的5个中间版本) |
第4行: |
第4行: |
| $("#"+id).fadeIn(time) | | $("#"+id).fadeIn(time) |
| } | | } |
| | | MathJax = { |
| mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/2.7.2/latest.js?config=TeX-AMS-MML_HTMLorMML' ).then(function(){
| | tex: { |
| MathJax.Hub.Config({
| | inlineMath: [['$', '$'], ['\\(', '\\)']] |
| showProcessingMessages: false, //关闭js加载过程信息 | | }, |
| messageStyle: "none", //不显示信息
| | loader: {load: ['[tex]/mhchem']}, |
| extensions: ["tex2jax.js"],
| | }; |
| jax: ["input/TeX", "output/HTML-CSS"],
| | mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/3.0.5/es5/tex-mml-chtml.js' ) |
| tex2jax: {
| |
| inlineMath: [ ['$','$'], ["\\(","\\)"] ], //行内公式选择符
| |
| displayMath: [ ['$$','$$'], ["\\[","\\]"] ], //段内公式选择符
| |
| skipTags: ['script', 'noscript', 'style', 'textarea', 'pre','code','a'], //避开某些标签
| |
| ignoreClass:"comment-content"|"head-class" //避开含该Class的标签,用|隔开
| |
| },
| |
| "HTML-CSS": {
| |
| availableFonts: ["STIX","TeX"], //可选字体
| |
| showMathMenu: false //关闭右击菜单显示
| |
| }
| |
| }); | |
| MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
| |
| // MathJax.Hub.Config({
| |
| // tex2jax: {
| |
| // inlineMath: [ ['$','$'], ["\\(","\\)"] ],
| |
| // displayMath: [ ['?','?'], ["\\[","\\]"] ]
| |
| // }
| |
| // });
| |
| // MathJax.Hub.Config = {
| |
| // tex: {
| |
| // inlineMath: [['$', '$']],
| |
| // packages: {'[+]': ['mhchem']}
| |
| // },
| |
| // tex2jax: {
| |
| // inlineMath: [['$','$']],
| |
| // packages: {'[+]': ['mhchem']}
| |
| // },
| |
| // loader: {load: ['[tex]/mhchem']},
| |
| // };
| |
| })
| |