Latex公式在博客里使用

\[\alpha=1+2 \]

将下边的代码加入到设置-页首html里。
cite by:https://www.cnblogs.com/cslxiao/p/3210914.html
此文章仅为了试验改完可用。

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
  inlineMath: [['$','$'], ['\\(','\\)']],
  processEscapes: true
  },
TeX: {
            equationNumbers: {
                autoNumber: ["AMS"],
                useLabelIds: true
            }
        },
        "HTML-CSS": {
            linebreaks: {
                automatic: true
            },
            scale: 85
        },
        SVG: {
            linebreaks: {
                automatic: true
            }
        }
});
</script>
<script type="text/javascript" src="http://c328740.r40.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
posted @ 2021-03-15 16:43  小懒鼠  阅读(104)  评论(0)    收藏  举报