TTMath
A Math Typesetting Solution
Using HTML, TrueType Fonts, and TeX
Reducing the Use of GIFs to Present Math Typesetting

by
Robert R. Curtis, WebPrimitives
calculus@internet Project Director

Beta 2: April 9, 1997

New Updated Font Sets

Mac     Windows

General Information

Examples: Manual Layout
You MUST have downloaded and installed the fonts for your particular platform before viewing the examples.

Examples: Mirrored to WebEQ Example Sets Miscellaneous Examples

Problems

Implementation


General Information

Goals

The main goal of TTMath is provide a system for typesetting mathematics for use on the World-Wide-Web. Unlike other current solutions, TTMath does not base its typesetting on GIFs. The use of GIFs for presenting typeset equations is acceptable when the number of mathematical expressions is small, but when trying to transmit pages with large numbers of math expressions, the GIF-based solutions require too much bandwidth overhead to be effective.

Math expressions are, in their simplest form, just symbols arranged on the presented page in specific configurations. These symbols can be transmitted as text characters with special encoding instructions -- a markup language -- and the browser (and not the internet pipe) should do the work of presenting the symbols correctly.

As it seems that HTML 3.2 and illusive <math> tags are not soon to be implemented by the browser manufacturers directly into Netscape or Explorer, we need to take matters into our own hands. Most efforts in this vein have been GIF based; we depart from this solution by trying to typeset as much as possible with encoded text and fonts, using GIF typesetting only when TTMath is unable to generate the text-based typesetting.

We hope to put the text back into hypertext when in the math/scientific context.

Basic Structure

We attempt to typeset mathematical expressions using: Once the user downloads the set of math TrueType fonts into their operating system, math typesetting is achieved via font calls from ASCII HTML text commands rather than the high overhead of downloaded GIFs of math expressions.

The special characters are accessed in Netscape via the &#ABC character access escapes, in conjunction with the <font face="FONTNAME"> </font> TrueType font access available in Netscape since version 2.01.

Complex layouts are acheived by using the <table> tags, and special tricks with column widths to fool Netscape into laying out characters in ways it was not designed to do.

The eventual goal will be to have a series of converters allowing the author to write HTML tags such as <tex> *** </tex> with *** being either TeX, AMSTeX, or LaTeX coding. Potentially, larger converters will be written to convert full TeX or LaTeX files into TTMath-HTML files.

Download the Math Font Sets: Version 2 Fonts

The following font set is Part A of a planned two-part font set. These are the minimal sets necessary to start typesetting mathematics in Netscape. Part B will consist of handy fonts to have, but that are not required for TTMath. The goal, as always, is bandwidth brevity.

Part A fonts are from the BaKoMa fonts for the Macintosh TeX programs, primarily for OzTeX, the most popular shareware TeX program for the Mac. They are converted to TrueType for both Mac and Windows.

The public-domain BlueSky TeX CM and AMS Fonts are being converted to be used here. It seems that my source for the BaKoMa fonts was in error when they reported them to be in the public-domain.

To install these fonts, follow the directions for each operating system:

For Mac
  • Download the compressed/binhexed TTMath font suitcase.
  • With all programs off (including Netscape), put the expanded TTMath font suitcase in the Fonts folder in the System Folder.
  • Restart you computer (to let things like Adobe Type Manager digest the font).
  • Relaunch Netscape - start viewing TTMath pages.
For Windows
  • Download the executable zip TTMath font directory.
  • Run the executable.
  • With all programs off (including Netscape), install the fonts from the unzipped TTMath font directory into your system using the Font Control Panel.
  • Restart you computer (to let things like Adobe Type Manager digest the font).
  • Relaunch Netscape - start viewing TTMath pages.
This is a BETA SYSTEM - bugs will be found, and this process will need to be repeated undoubtedly with future font releases - yes, even though it sucks to reinstall fonts!
All of these fonts have been given special names so that they do not conflict with your existing fonts (and possibly overwrite them which would not be cool.) Some fonts, like Times Roman, you might already have. Do NOT delete our special font in this case - Netscape will be calling our font by its special name.

How to Set Up Netscape/Explorer To Optimize Viewing

You definitely need or better for any of this to work.

One main challenge in the TTMath system is the difference between Macintosh and Windows operating systems and how they deal with fonts.

Windows takes normally very nice fonts and magnifies them in sometimes unpredictable ways. For instance, the 12 point font for Netscape Windows is much larger than the 12 point font for Macintosh Netscape. Why? There are pages of theory I could go into right now - best left for another page at another time.

To counteract this problem on the Windows side, make sure you set your viewing fonts for Netscape at either:

For the Macintosh, set the proportional font to either Times (or Times New Roman) at 12 points.

If you like a larger screen font for Netscape, then you take your chances with TTMath. No serious harm will occur, just that some expressions that will look OK with 12 point settings will not look so good in 14 or 18 point settings. This is one of the drawbacks of TTMath (that would be solved with proper math implementation in HTML.)


Now it is time to view the
EXAMPLE PAGES


Maintained and Moderated by Robert R. Curtis and Diane Housken of WEBPRIMITIVES Cambridge, Massachusetts, USA
WEBPRIMITIVES

Making Your Mark
On The World-Wide-Web

http://www.webprimitives.com
http://www.calculus.net
calculus@internet

This page accessed times since February 4, 1997

Webcast on 200MHz Pentium P-6 FreeBSD Unix Servers
on a T-3/DS-3 Line from Pittsburgh, Pennsylvania, USA

© 1997, WebPrimitives, Cambridge, Massachusetts. All Rights Reserved.
All Product Trademarks are owned by their respective companies.