Wednesday, September 19, 2012

[Repaste]How to input Latex formulas in you blogspot


Repaste: http://tex.stackexchange.com/questions/13865/how-to-use-latex-on-blogspot
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.
Add HTML/JavaScript tool in blogspot and 
To enable MathJax, just drop in
<script type="text/javascript" src="http://cdn.mathjax.org/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>
Save.
See the MathJax pages for more information about configuring and using it.

PS: It seems that read from RSS will see the source code of Latex.  Still don't know how to solve this problem.

No comments:

Post a Comment