Typing Maths
第1頁(共1頁) • 分享 •
Typing Maths
Typing mathematics is always troublesome. I have recently found a html script that could help us type Mathematics at websites easily. To let the script work properly, you need Mozilla Firefox. If you use IE, you need to install a plugin (which you can find at the webpage). When you are typing, you have to make sure what you are typing is the html code not text.
Firstly, you have to add “<script type="text/javascript" src="http://mathcs.chapman.edu/~jipsen/mathml/ASCIIMathML.js"></script>” at the html code. Then you have to type your equation (according to the guidelines which teach you how to type it) and quote the equation with ` (not ‘). You use _ for subscript and ^ for superscript, “sum” for summation, “oo” (2 “o”s) for infinity etc.
This webpage shows the commonly used symbols for the equations, while this shows all the symbols (put the mouse over the equation to see how to write the equation).
It works well with the school imail too. To do so, you MUST use nonIE browsers in order to type html code. Simply add the code mentioned above and type your equation (in IE, you can only input text). It’s a pity that the forum doesn’t allow html coding (a good alternative is to use OpenOffice, which is also very convenient).
Here is an imail example:
<BLOCKQUOTE dir=ltr style="PADDINGRIGHT: 0px; PADDINGLEFT: 5px; MARGINLEFT: 5px; BORDERLEFT: #000000 2px solid; MARGINRIGHT: 0px" ></BLOCKQUOTE><br><script type="text/javascript" src="http://mathcs.chapman.edu/~jipsen/mathml/ASCIIMathML.js"></script>`int_(oo)^oo 1/(sqrt(2 pi sigma^2))e^(frac{(xmu)^2}{2sigma^2}) = 1`<br><br><br><br><br>
The part in italics are already at the message box when you compose the mail and you don't need to add them when you write your own code. At other situations, you should not have those.
To try, replace ALL the code at the message box with the above code. Note that the last "enter"s (<br> in html language) are necessary as the equation takes more than one row, but the browser only treats it as one row.
Firstly, you have to add “<script type="text/javascript" src="http://mathcs.chapman.edu/~jipsen/mathml/ASCIIMathML.js"></script>” at the html code. Then you have to type your equation (according to the guidelines which teach you how to type it) and quote the equation with ` (not ‘). You use _ for subscript and ^ for superscript, “sum” for summation, “oo” (2 “o”s) for infinity etc.
This webpage shows the commonly used symbols for the equations, while this shows all the symbols (put the mouse over the equation to see how to write the equation).
It works well with the school imail too. To do so, you MUST use nonIE browsers in order to type html code. Simply add the code mentioned above and type your equation (in IE, you can only input text). It’s a pity that the forum doesn’t allow html coding (a good alternative is to use OpenOffice, which is also very convenient).
Here is an imail example:
<BLOCKQUOTE dir=ltr style="PADDINGRIGHT: 0px; PADDINGLEFT: 5px; MARGINLEFT: 5px; BORDERLEFT: #000000 2px solid; MARGINRIGHT: 0px" ></BLOCKQUOTE><br><script type="text/javascript" src="http://mathcs.chapman.edu/~jipsen/mathml/ASCIIMathML.js"></script>`int_(oo)^oo 1/(sqrt(2 pi sigma^2))e^(frac{(xmu)^2}{2sigma^2}) = 1`<br><br><br><br><br>
The part in italics are already at the message box when you compose the mail and you don't need to add them when you write your own code. At other situations, you should not have those.
To try, replace ALL the code at the message box with the above code. Note that the last "enter"s (<br> in html language) are necessary as the equation takes more than one row, but the browser only treats it as one row.
dalcde Admin
 文章數 : 58
注冊日期 : 20100601
來自 : Somewhere
回復： Typing Maths
死啦, 唔明!! WHY not using the software called equation editor in words?
clovis_szeto 文章數 : 60
注冊日期 : 20100601
回復： Typing Maths
You may, but I think it is very inconvenient. Even if you want to do so, I think OpenOffice is better that Microsoft Office.
dalcde Admin
 文章數 : 58
注冊日期 : 20100601
來自 : Somewhere
第1頁(共1頁)
這個論壇的權限：
您 無法 在這個版面回復文章

