legend3---使用MathJax
一、总结
一句话总结:
js文件就用github中mathjax对应的cdn的js文件,配置的话就用之前博客园对应的配置即可
二、使用MathJax
博客对应课程的视频位置:
直接去github(https://github.com/mathjax/MathJax)里面找,使用方法非常详细
Installation and Use
Using MathJax components from a CDN on the web
If you are loading MathJax from a CDN into a web page, there is no need to install anything. Simply use a script
tag that loads MathJax from the CDN. E.g.,
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
See the MathJax documentation, the MathJax Web Demos, and the MathJax Component Repository for more information.
配置:
引入js
<!--MathJax--> <!--用cdn,用本地的话还要关注字体文件,麻烦--> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!--数学公式math jax--> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { inlineMath: [['_$','_$'],['$$','$$'], ['\(','\)']], processClass: 'math', processEscapes: true }, TeX: { equationNumbers: { autoNumber: ['AMS'], useLabelIds: true }, extensions: ['extpfeil.js', 'mediawiki-texvc.js'], Macros: {bm: "\boldsymbol"} }, 'HTML-CSS': { linebreaks: { automatic: true } }, SVG: { linebreaks: { automatic: true } } }); </script>