Sunday, December 2, 2012

latex on blogger, 支持latex.

首先 建立一个新的post(帖子),  然后转换到html mode. 在最上方加入:

<script type="text/x-mathjax-config">   MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script> <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"> </script>

然后换回compose mode. 然后... 然后就成啦!

来试试
 \[P(E) = {n \choose k} p^k (1-p)^{n-k}\]

使用的latex 语法,short guide:
ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf
OR
http://fluidmind.org/articles/typesetting-equations/ (强烈推荐)

对于已经比较熟悉latex 的同志, 附上 latex cheating sheet.
http://www.stdout.org/~winston/latex/latexsheet.pdf

No comments:

Post a Comment