Skip Header
Teaching and Learning with Technology
Computing With Accents and Foreign Scripts
TLT Home : TLT Suggestions Skip Menu

Mathematical Symbols in Unicode

More browsers and Web sites are targeting a Unicode solution which is described below, but workarounds may still be needed for older browsers.

This Page

  1. Recommended Browsers and Fonts for Unicode
  2. Inserting Symbols
  3. Web Development
  4. Superscript and Subscript
  5. Math ML
  6. Other Links

Other Pages on Math

  1. Common Math Symbols Chart
  2. Greek Letter Unicode Chart
  3. Combining Diacritics - for and
  4. Alan Wood's Mathematical Operator Unicode table
  5. Inserting Formulas as Images
  6. PDF Files

Recommended Fonts and Browsers

Fonts

The following Unicode fonts include a comprehensive set of mathematical characters and are free for academic use.

Browsers

The following browsers have the most consistent results

Mathematical & Logical Symbol Test: OS (year(OS) ≥ 2001 | ∃Font ∋ (∛, ∬,≈))

Note on Internet Explorer

Internet Explorer for Windows does not display mathematical symbols by default. Users who prefer Internet Explorer for Windows should set the Latin font to Arial Unicode MS or some other Unicode script with phonetic symbol support.

Internet Explorer for Macintosh may not support all mathematical symbols.

Top of Page

Inserting Symbols

For text documents, the following is recommended.

Windows

Use the Windows Character Map to insert mathematical symbols.

Macintosh

Use the Macintosh Character Palette to mathematical symbols

 

Web Development

Declare Unicode

No matter which method you use to create the document, the HTML page must be declared as a Unicode page with the following meta-tag.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
...
</head>

Specifying Math Font Styles

Although it is generally not recommended to specify fonts for a language, it should be done for mathematica characters in order to force Internet Explorer to use the correct display display fonts.This can be done either via CSS styles or via the FONT tag.

Below is the CSS style class listing suggested font specifications.

.math {font-family: "Chrysanthi Unicode ", "Times New Roman", "Apple Symbols","Arial Unicode MS"}

Chrysanthi (Chryʃsanþi) is a freeware font with a very large set of symbol fonts included. Arial Unicode MS comes from Microsoft while Apple Symbols is provided by Apple.

The Times New Roman font on Windows and in newer Macs does include the basic Greek alphabet.

Inserting Characters

If you can use either the Windows Character Map or the Macintosh Character Palette with Dreamweaver, Notepad (Win), Unipad (Win) or BBEdit (Mac) to insert mathematical symbols directly into the HTML.

However, you may get uneven results between browsers.

Unicode Numeric Entity Codes

You can you can substitute numeric entity codes for the mathematical symbosl. For example:

See Alan Wood's Mathematical Operator Unicode table for other common symbols

 

Top of Page

Superscript & Subscript

You can use the <sup></sup> tag to create super script text and <sub></sub> to create sub-script text. See examples below:

Code: x<sup>x+1</sup>
Result: xx+1

Code: x<sub>i+1</sub>
Result: xi+1

See the Superscript page for additional options.

Math ML

Math ML is an XML language designed to present complex equations. Math ML support has been implemented into some Windows browsers, but not Macintosh browsers (only Firefox for Mac has partial support).

Recommendations

For now it is recommended that:

  1. Equations on one line (e.g. ƒ(x) = x² +x) be formatted with HTML entity codes only instead of MathML. The syntax is usually simpler.
  2. For more complex equations, images are still the most reliable method of presenting equations.
  3. Presentational Math ML can be recognized in:
    1. Firefox (Windows/Mac)
    2. Internet Explorer 6 (Windows) if the Math Player Plugin is installed
  4. If you do decide to use presentational Math ML, then your Web file must be XHTML.

Math ML Links

Top of Page

Links

Third Party Fonts

The following fonts are availble free for educational use and include most encoded mathematical and technical symbols.

Mathematic Entity Codes

Math ML Links

©Penn State University, 2000-2007.
This Web page maintained by Teaching and Learning with Technology, a unit of Information Technology Services. For questions or comments on this Web page, please contact Elizabeth J. Pyatt (ejp10@psu.edu).
Unicode character names and hexadecimal entity codes are taken from the public Unicode Character Charts.

Top of Page

Last Modified: Friday, 27-Jun-2008 14:46:40 EDT