Maths' World (SYC)
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Typing Maths

2 posters

向下

Typing Maths Empty Typing Maths

發表  dalcde 周一 7月 12, 2010 9:28 pm

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 non-IE 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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 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{(x-mu)^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
dalcde
Admin

文章數 : 58
注冊日期 : 2010-06-01
來自 : Somewhere

回頂端 向下

Typing Maths Empty 回復: Typing Maths

發表  clovis_szeto 周三 7月 14, 2010 10:09 pm

死啦, 唔明!! WHY not using the software called equation editor in words?

clovis_szeto

文章數 : 60
注冊日期 : 2010-06-01

回頂端 向下

Typing Maths Empty 回復: Typing Maths

發表  dalcde 周四 7月 15, 2010 8:15 am

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
dalcde
Admin

文章數 : 58
注冊日期 : 2010-06-01
來自 : Somewhere

回頂端 向下

回頂端


 
這個論壇的權限:
無法 在這個版面回復文章