How to Input Mathematical Symbols on the Math Message Board (MMB)
MMB provides a variety of methods to input math notation:
- plain text
- HTML and symbol tags
- LaTeX
Each of these methods is explained below.
Method #1: Plain Text
The plain-text method is easiest to use, but complex math expressions can become awkward to read and write.
x^2 + a_3 + sqrt(2) + (1 + 2)/(2 + 3) + exp(5).
Some conventions are commonly used. The carrot "^" symbol represents an exponent. Square roots can be represented as the function sqrt. Subscripts can use "_" as in ln_10(x). In order to make yourself clear, be careful about the order of operations, and use parenthesis to avoid ambiguities. This is a common mistake. For example, the above expression is not equivalent to
x^2 + a_3 + sqrt(2) + 1 + 2/2 + 3 + exp(5).
Method #2: HTML and Symbol Tags
The second method is to use HTML and special symbol tags. This can make you math notation a little prettier.
A variety of symbols are available for use. For your convenience, a list of these symbols is available in green box of symbols near the bottom of the posting page. Here's how all the symbols look:
Greek Letters:
[alpha] |
![[alpha] [alpha]](/mmb/symbols/alpha-l.gif) |
[Alpha] |
![[Alpha] [Alpha]](/mmb/symbols/alpha-u.gif) |
[beta] |
![[beta] [beta]](/mmb/symbols/beta-l.gif) |
[Beta] |
![[Beta] [Beta]](/mmb/symbols/beta-u.gif) |
[gamma] |
![[gamma] [gamma]](/mmb/symbols/gamma-l.gif) |
[Gamma] |
![[Gamma] [Gamma]](/mmb/symbols/gamma-u.gif) |
[delta] |
![[delta] [delta]](/mmb/symbols/delta-l.gif) |
[Delta] |
![[Delta] [Delta]](/mmb/symbols/delta-u.gif) |
[epsilon] |
![[epsilon] [epsilon]](/mmb/symbols/epsilon-l.gif) |
[Epsilon] |
![[Epsilon] [Epsilon]](/mmb/symbols/epsilon-u.gif) |
[zeta] |
![[zeta] [zeta]](/mmb/symbols/zeta-l.gif) |
[Zeta] |
![[Zeta] [Zeta]](/mmb/symbols/zeta-u.gif) |
[eta] |
![[eta] [eta]](/mmb/symbols/eta-l.gif) |
[Eta] |
![[Eta] [Eta]](/mmb/symbols/eta-u.gif) |
[theta] |
![[theta] [theta]](/mmb/symbols/theta-l.gif) |
[Theta] |
![[Theta] [Theta]](/mmb/symbols/theta-u.gif) |
[iota] |
![[iota] [iota]](/mmb/symbols/iota-l.gif) |
[Iota] |
![[Iota] [Iota]](/mmb/symbols/iota-u.gif) |
[kappa] |
![[kappa] [kappa]](/mmb/symbols/kappa-l.gif) |
[Kappa] |
![[Kappa] [Kappa]](/mmb/symbols/kappa-u.gif) |
[lambda] |
![[lambda] [lambda]](/mmb/symbols/lambda-l.gif) |
[Lambda] |
![[Lambda] [Lambda]](/mmb/symbols/lambda-u.gif) |
[mu] |
![[mu] [mu]](/mmb/symbols/mu-l.gif) |
[Mu] |
![[Mu] [Mu]](/mmb/symbols/mu-u.gif) |
[nu] |
![[nu] [nu]](/mmb/symbols/nu-l.gif) |
[Nu] |
![[Nu] [Nu]](/mmb/symbols/nu-u.gif) |
[xi] |
![[xi] [xi]](/mmb/symbols/xi-l.gif) |
[Xi] |
![[Xi] [Xi]](/mmb/symbols/xi-u.gif) |
[omicron] |
![[omicron] [omicron]](/mmb/symbols/omicron-l.gif) |
[Omicron] |
![[Omicron] [Omicron]](/mmb/symbols/omicron-u.gif) |
[pi] |
![[pi] [pi]](/mmb/symbols/pi-l.gif) |
[Pi] |
![[Pi] [Pi]](/mmb/symbols/pi-u.gif) |
[rho] |
![[rho] [rho]](/mmb/symbols/rho-l.gif) |
[Rho] |
![[Rho] [Rho]](/mmb/symbols/rho-u.gif) |
[sigma] |
![[sigma] [sigma]](/mmb/symbols/sigma-l.gif) |
[Sigma] |
![[Sigma] [Sigma]](/mmb/symbols/sigma-u.gif) |
[tau] |
![[tau] [tau]](/mmb/symbols/tau-l.gif) |
[Tau] |
![[Tau] [Tau]](/mmb/symbols/tau-u.gif) |
[upsilon] |
![[upsilon] [upsilon]](/mmb/symbols/upsilon-l.gif) |
[Upsilon] |
![[Upsilon] [Upsilon]](/mmb/symbols/upsilon-u.gif) |
[phi] |
![[phi] [phi]](/mmb/symbols/phi-l.gif) |
[Phi] |
![[Phi] [Phi]](/mmb/symbols/phi-u.gif) |
[chi] |
![[chi] [chi]](/mmb/symbols/chi-l.gif) |
[Chi] |
![[Chi] [Chi]](/mmb/symbols/chi-u.gif) |
[psi] |
![[psi] [psi]](/mmb/symbols/psi-l.gif) |
[Psi] |
![[Psi] [Psi]](/mmb/symbols/psi-u.gif) |
[omega] |
![[omega] [omega]](/mmb/symbols/omega-l.gif) |
[Omega] |
![[Omega] [Omega]](/mmb/symbols/omega-u.gif) |
Symbols:
[d_dx] |
![[d_dx] [d_dx]](/mmb/symbols/d-dx.gif) |
[inf] |
![[inf] [inf]](/mmb/symbols/inf.gif) |
[integral] |
![[integral] [integral]](/mmb/symbols/integral.gif) |
[pder] |
![[pder] [pder]](/mmb/symbols/pder.gif) |
[product] |
![[product] [product]](/mmb/symbols/product.gif) |
[sqrt] |
![[sqrt] [sqrt]](/mmb/symbols/sqrt.gif) |
[sum] |
![[sum] [sum]](/mmb/symbols/sum.gif) |
To use these symbols in your posting, just type the symbol name enclosed in brackets. For Greek letters, use uppercase letters to get the uppercase version and lowercase letters to get the lower case version.
For example, the following
cos [pi]/4 = [sqrt](2) / 2
will look like
cos
/4 =
(2) / 2
Here's a more complicated example:
lim [sum] f([Xi]) [delta] x = [integral] f(x) dx,
which will look like
lim
f(
)
x =
f(x) dx,
Superscipts (or exponents) and subscripts can be made as such
x^{3} + a_{1} + y^{x^{2k}+1}
which displays as
x3 + a1,2 + yx2k+1
You can alternately make super- and sub-scripts with HTML SUP and SUB tags, but that is more awkward to write.
If you know HTML, you may use certain HTML tags, such as links, tables, and formatting.
Don't even try any fancy JavaScript or stuff like that.
Method #3: LaTeX
MMB also supports a much more powerful LaTeX math syntax, but it you'll have to first learn some of the syntax. LaTeX is a standard, widely used text notation for entering math notation on computers. This text notation can be rendered into high quality mathematical images. LaTeX notation can be embedding into MMB message by enclosing it inside pairs of \) and \( delimiters or between pairs of \[ and \] delimiters. The only difference between the two is that the former is used to place math notation inline to surrounding text, while the latter is used to set-off the math notation from surrounding text. Refer to one of the many resources on the web about the LaTeX math notation. If you see any LaTeX math notation used on one of the MMB messages and would like to know how the author inputted it, click on the "View Source" button on the bottom of the thread. (Special note to LaTeX experts: only math mode is supported.)
Here's one example:
\[ \frac{1}{x+2} + \sqrt{3} - \int_1^x x_2^3 \, dx \]
which looks like
\[ \frac{1}{x+2} + \sqrt{3} - \int_1^x x_2^3 \, dx \]
Alternately, the following
\( \frac{1}{x+2} + \sqrt{3} - \int_1^x x_2^3 \, dx \)
looks like
\( \frac{1}{x+2} + \sqrt{3} - \int_1^x x_2^3 \, dx \)
If you don't wish to become an expert in LaTeX syntax, and you would rather have a GUI with an equation palette similar to MS Equation editor to help you create the LaTeX syntax, then the TeXaideTM (http://www.dessci.com/en/products/TeXaide/) program is recommended for download. This program is free (well, they do want your e-mail address), and it runs on Windows (it may work on Windows emulators too if Windows is not your OS). If you use Linux/Unix/etc., then LaTeX may already be installed.
Here's some useful LaTeX math references:
Only the default LaTeX packages and the amsmath packes are supported. See http://www.ams.org/tex/amsmath.html for information on amsmath.
On some browsers (e.g. recent versions of Mozilla and IE), if you put your keyboard cursor over a LaTeX expression and press the CTRL+0 key combination (i.e. hold down the CTRL key while pressing the zero key), then a preview of that LaTeX expression will instantly render at the bottom of your message composition box. This can be a much quicker method of previewing math expressions than doing a full message preview.
Other Syntax
If you need to write HTML or text directly without having MMB autoformatting interfere, you may surround such text with \begin{rawhtml} ... \end{rawhtml} and \begin{rawtext} ... \end{rawtext} tags respectively. For example,
\begin{rawhtml}This is <b>bold</b>.\end{rawhtml}
displays as
This is bold.
Furthermore,
\begin{rawtext}if(x<2 && y>3) {break;}\end{rawtext}
displays as
if(x<2 && y>3) {break;}
Additional Notes
Q: Can I export LaTeX from Mathematica and upload it to MMB?
A: Apparently not. The LaTeX exported from Mathematica references its own packages, which are not accessable as is from MMB. The possibility of installing Mathematica packages on MMB has not been explored.
Q: What math notation editing software is available?
A:
-
TeXaideTM (http://www.dessci.com/en/products/TeXaide/)
- WYSIWYG editor for LaTeX. Easy to use. Windows only.
- texmacs (http://www.texmacs.org/)
- If you use Emacs
- Lyx (http://www.lyx.org)
- Editor, not just for LaTeX.
- This takes some work to get installed under Windows OSs.
Works great under UNIX-based OSs.
- teTeX (http://www.tug.org/teTeX/)
- Command-line utilities for compiling LaTeX to PS, PDF, and other formats.
- Note: This can easily be install from the setup program under Cygwin (www.cygwin.com) under Windows. A LaTeX distribution is often preinstalled on UNIX and UNIX-like OSs.
Last updated: 2003-09-22, david manura.
Comments: more work may need to be done on this article. Please post any comments below, in which case I'll incorporate your comments into the text above and then remove the original comments.
Some additional methods of inputting math notation and images are under discussion. These methods may be added to MMB in the future.