2007年8月18日 星期六

修改 blogger 以利用 LaTeXMathML 顯示數學式

登入 blogger 後,出現 [控制主頁] :選擇 [版面配置]:再選擇 [修改HTML]後,於「編輯您的模板內容」中,執行修改:

在 <head> 和 </head> 間加入:

<script src='http://www.maths.nottingham.ac.uk/personal/drw/LaTeXMathML.js' type='text/javascript'>
</script>



<script type="text/javascript" src="http://math.etsu.edu/LaTeXMathML/LaTeXMathML.js"></script>
<link rel="stylesheet" type="text/css" href="http://math.etsu.edu/LaTeXMathML/LaTeXMathML.standardarticle.css" />

如下圖所示後,選擇 [儲存範本] 即可。
爾後在建立文章或修改文章之際加入 LaTeX 指令即可,例如
在文章段落之中鍵入 \$\mathbb{C}\$ 則會出現 $\mathbb{C}$,欲輸出完整的方程式須使用
<blockquote> $ \displaystyle{ ... } $ </blockquote>


 <pre> $ \displaystyle{...} $ </pre> 

來達成,例如鍵入
<blockquote> $ \displaystyle{ f(x)=\frac{1-x}{1+x} } $ </blockquote>


$\displaystyle{ f(x)=\frac{1-x}{1+x} }$

的輸出結果。若要輸入多行方程式則須使用下面指令來完成:
另外提醒一點,IE的使用者要配合 MathPlayer™ 才能顯示數學符號與數學式。
(Note: in Vista SP2 I install MathPlayer 2.1d twice and it works) 其他有關 LaTeXMathML 的詳細資訊請參考 http://www.maths.nottingham.ac.uk/personal/drw/lm.html

沒有留言: