在博客园中使用LATEX

在博客园设置中,找到页首html,并加入如下js代码:

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

保存即可。

 例如 e^{\pi i} + 1 = 0. 对应的效果为:  \( e^{\pi i} + 1 = 0\)     $ e^{\pi i} + 1 = 0. $   \[ e^{\pi i} + 1 = 0. \]  $$ e^{\pi i} + 1 = 0. $$   

 

集合操作命令

集合的大括号:                  \{ ...   }\

集合中的“|”:                \mid

属于:                    \in

不属于:                    \not\in

A包含于B:                A\subset B

A真包含于B:                A\subsetneqq B

A包含B:                    A\supset B

A真包含B:                A\supsetneqq B

A不包含于B:                A\not\subset B

A交B:                    A\cap B

A并B:                    A\cup B

A的闭包:                    \overline{A}

A减去B:                    A\setminus B

实数集合:                \mathbb{R}

空集:                    \emptyset

posted @ 2012-08-12 17:23  happydpc  阅读(434)  评论(0编辑  收藏  举报