分享

How to use Latex in Blogger

 dzh1121 2015-11-19

I would say use MathJax. It's a AJAX engine for LaTeX syntax that now is distributed by a CDN so you don't have to upload a single file to your blogspot account.

To enable MathJax, just drop in

<script type="text/javascript" src="http://cdn./mathjax/latest/MathJax.js">
MathJax.Hub.Config({
 extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
 jax: ["input/TeX", "output/HTML-CSS"],
 tex2jax: {
     inlineMath: [ ['$','$'], ["\\(","\\)"] ],
     displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
 },
 "HTML-CSS": { availableFonts: ["TeX"] }
});
</script> 

after the header (<head>) in the Blogger template (Design→Edit HTML→Edit Template).

Googling "install mathjax blogspot" led me to a page on the Web Applications StackExchange: MathJax on Blogger.




之后, 就可以像在TexStudio中,用 $ a^2_i  $  来直接写公式了

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多