MathJax的官網:http://www.mathjax.org/
使用MathJax是相當容易,在網頁的html語法中加入下行即可
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
上面語法中MathJax.js是直接使用官網的程式,若自已的網址想獨立有此程式,亦可從官網下載完整的程式碼http://www.mathjax.org/download/。
以下是個簡單的範例
<html>
<head> <title></title> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> </head> <body> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>−</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </mrow> </msqrt> </math> </body> </html>
結果顯示
請給詳細資訊;寄到s1209young@gmail.com
回覆刪除