[OS X TeX] Lucida and MathTime installation instructions: (2) MathTime

Bruno Voisin bvoisin at mac.com
Tue Jan 16 21:01:54 EST 2007

Here are now installation instructions for the MathTime fonts, on  
both gwTeX and TeXLive-2007 (full version).

As for Lucida, these instructions are primarily for those who  
purchased the fonts at the time of their original release circa 1994,  
most likely from Blue Sky Research, and who can't or won't update for  
now. It makes otherwise more sense to purchase the current version of  
the fonts, MathTime Pro 2, from their supplier PCTeX <http:// 

The original MathTime fonts came as two separate sets: a Basic set,  
which was the only one sold to Mac users by Blue Sky Research for  
their Textures system, and a Plus set added a couple of years later,  
which was never sold by Blue Sky Research. The Basic set is limited  
to math italic (MTMI), math symbol (MTSY) and math extension (MTEX),  
to replace the Computer Modern fonts CMMI, CMSY and CMEX,  
respectively; the font MTMI is a virtual one, combining characters  
from Times Italic with additional characters (such as an italic  
letter v looking less like the Greek letter nu) contained in a font  
RMTMI. The Plus set adds many more fonts, in particular bold math fonts.

The updated MathTime Pro 2 continues the same tradition, by coming  
either as a Lite set corresponding to the Basic set of MathTime 1, or  
as a Complete set corresponding to the combination of the Basic and  
Plus sets of MathTime 1.

Now let the fun begin!

1. Conversion of the fonts to .pfb format

Those, like me, who purchased the fonts from Blue Sky Research and  
hence have only the MathTime Basic set, need first to convert the  
fonts from LWFN format to .pfb format, and change the file names to  

Again, place the LWFN files in a folder, navigate to that folder and  
apply t1unmac:

	t1unmac -r MTEX/rsrc mtex.pfb
	t1unmac -r MTSY/rsrc mtsy.pfb
	t1unmac -r RMTMI/rsrc rmtmi.pfb

Those who have MathTime Plus must have got the fonts directly from  
Y&Y, and hence have them in .pfb format already. If not, then use  
some tool (such as FontForge) to convert the fonts to .pfb.

When that is done, move the .pfb files from MathTime Basic to  
TexmfLocal/fonts/type1/bh/mathtime/ and those from MathTime Plus to / 

2. Installation of the LaTeX support package

The LaTeX package mathtime-ltx (aka mathtime) is absent from both  
gwTeX and TeXLive, but remains available on CTAN. Hence, retrieve it  
from CTAN at <ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/ 

The package is pre-configured for MathTime Plus. If you own MathTime  
Basic only, you need to edit mathtime.ins first to uncomment the line:



- Run LaTeX on mathtime.ins.

- Move the .sty and .fd files to TexmfLocal/tex/latex/mathtime/, namely:


- Run LaTeX on mathtime.dtx.

- Move the documentation files to Texmflocal/doc/latex/mathtime/,  


- Move the .enc file mh2scr.enc to TexmfLocal/fonts/enc/dvips/mathpi/.

The presence of the files mathpi.sty, umh*.fd and mh2src.enc is due  
to the fact that the MathTime fonts were designed to be used with the  
Adobe MathPi 2 and 6 fonts. Given I don't know what exactly is  
specific to MathTime and what exactly is specific to MathPi, in the  
following the instructions install the whole setup, without  
attempting to separate MathTime Basic, MathTime Plus and MathPi.

You can now erase the rest of the content of mathtime.zip: it won't  
be needed any more.

3. Installation of the metrics and map files

The metrics and map files for MathTime are absent from both gwTeX and  
TeXLive, and have been removed from CTAN, apparently following the  
demise of Y&Y. There remains two ways to get them at present: get  
teTeX from CTAN, and extract the metrics and maps from it; or obtain  
the metrics by conversion of the files on the original Lucida  
floppies, from either Blue Sky Research or Y&Y.

It's uncertain at present whether the MathTime metrics and map files  
will remain available in teTeX, due to licensing issues. Karl Berry  
(TUG president and TeXLive maintainer) is investigating the matter.

Here's a description of the two alternative installations. Beware:  
these are the trickiest parts of the whole process.

Installation based on teTeX

Retrieve teTeX from CTAN at <ftp://tug.ctan.org/pub/tex-archive/ 
systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz>, and then:

- Install the .afm files: move the content of

	fonts/afm/yandy/mathplus/ to TexmfLocal/fonts/afm/bh/mathplus/
	fonts/afm/yandy/mathtime/ to TexmfLocal/fonts/afm/bh/mathtime/

- Install the .tfm files: move the content of

	fonts/tfm/yandy/mathpi/ to TexmfLocal/fonts/tfm/bh/mathpi/
	fonts/tfm/yandy/mathplus/ to TexmfLocal/fonts/tfm/bh/mathplus/
	fonts/tfm/yandy/mathtime/ to TexmfLocal/fonts/tfm/bh/mathtime/
	fonts/tfm/yandy/times/ to TexmfLocal/fonts/tfm/bh/times/

- Install the .vf files: move the content of

	fonts/vf/yandy/mathplus/ to TexmfLocal/fonts/vf/bh/mathplus/
	fonts/vf/yandy/mathtime/ to TexmfLocal/fonts/vf/bh/mathtime/
	fonts/vf/yandy/times/ to TexmfLocal/fonts/vf/bh/times/

- On TeXLive only, disactivate the Belleek fonts (a public-domain  
clone of MathTime Basic, see point 5 below), which are activated by  

	sudo -H updmap-sys --disable belleek.map

- Update the kpathsea database and the global map files:

	sudo mktexlsr
	sudo -H updmap-sys --enable Map mt-yy.map
	sudo -H updmap-sys --enable Map mt-plus.map

where mt-yy.map is for MathTime Basic and mt-plus.map is for MathTime  
Plus. Both files are present in both gwTeX at
/usr/local/gwTeX/texmf.texlive/fonts/map/dvips/tetex/, and TeXLive,  
at /usr/local/texlive/2007/texmf/fonts/map/dvips/tetex/.

But we're not done yet: two problems remain to be solved.

Firstly, the MathTime fonts were designed to be used in connection  
with the standard LaserWriter fonts Times, Helvetica, Courier, Symbol  
and Zapf Dingbats. Plain TeX macro files for MathTime, such as those  
from Y&Y, often reference the fonts through their Y&Y metrics such as  
tir.tfm for Times. As for Lucida, these metrics are already installed  
in both gwteX and TeXLive, with Karl-Berry-style names such as  
ptmr8y.tfm. What remains to be done is setting the equivalence  
between the two sorts of name.

In gwTeX, the problem is solved by using the aliases file of teTeX.  
For TeXLive, we'll use symlinks again. Namely:

- Create a directory TexmfLocal/fonts/tfm/bh/courier/, navigate to it  
and then type:

	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/courier/ 
pcrb8y.tfm cob.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/courier/ 
pcrbo8y.tfm cobo.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/courier/ 
pcrr8y.tfm com.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/courier/ 
pcrro8y.tfm coo.tfm

- Create a directory TexmfLocal/fonts/tfm/bh/helvetic/, navigate to  
it and then type:

	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/helvetic/ 
phvr8y.tfm hv.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/helvetic/ 
phvb8y.tfm hvb.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/helvetic/ 
phvbo8y.tfm hvbo.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/helvetic/ 
phvro8y.tfm hvo.tfm

- Create a directory TexmfLocal/fonts/tfm/bh/symbol/, navigate to it  
and then type:

	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/symbol/ 
psyr.tfm sy.tfm

- Navigate to the directory TexmfLocal/fonts/tfm/bh/times/ and then  

	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmb8y.tfm tib.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmbi8y.tfm tibi.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmbo8y.tfm tibo.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmri8y.tfm tii.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmro8y.tfm tio.tfm
	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/times/ 
ptmr8y.tfm tir.tfm

- Create a directory TexmfLocal/fonts/tfm/bh/zapfding/, navigate to  
it and then type:

	sudo ln -s /Library/TeX/Root/texmf-dist/fonts/tfm/adobe/zapfding/ 
pzdr.tfm zd.tfm

- Entries for all these fonts are already included in the global map  
files. Don't ask me why, I've no idea.

Secondly, one .map file is missing, mathpi.map containing entries for  
the MathPi fonts. This file was originally included in teTeX but has  
been removed at some point, apparently erroneously (see the 8  
November 2004 entry of teTeX's ChangeLog). Recreating it is simple:  
create a file TexmfLocal/fonts/map/dvips/mathpi/ with content:

	mh2 MathematicalPi-Two <mh2.pfb
	mh2scr MathematicalPi-Two " mh2scrEncoding ReEncodeFont "  
<mh2scr.enc <mh2.pfb
	mh6 MathematicalPi-Six <mh6.pfb

And finally update the kpathsea database and the global map files:

	sudo mktexlsr
	sudo -H updmap-sys --enable Map mathpi.map

Installation based on the original font floppies

Here I describe installation from the "MathTime PostScript Fonts"  
floppy from Blue Sky Research, which is how I purchased the fonts.  
Again, the procedure is far from trivial:

- Get hold of a Mac running Mac OS Classic and install (if it's not  
already there) EdMetrics, the font metrics editor from Blue Sky  
Research at <ftp://ftp.bluesky.com/utilities/EdMetrics.sea.hqx>.

- Open the suitcase "MathTime metrics" with EdMetrics. Select each of  
the metrics MTEX, MTMI, MTSY and RMTMI in sequence, and for each of  
them press the "Make VPL" button. This will create four files  
MTEX.VPL, MTMI.VPL, MTSY.VPL and RMTMI.VPL in the current folder.  
Don't pay attention to the .VPL extension: EdMetrics uses it  
indifferently for .pl and .vpl files.

- Edit MTMI.VPL by replacing in it the two occurrences of RMTMI  
(uppercase) by rmtmi (lowercase), and the two occurrences of TimesI  
(the Textures built-in Times Italic metrics) by ptmri8r.

- Transform the VPL files into .tf and .vf files by applying pltotf  
and vptovf:

	pltotf MTEX.VPL mtex.tfm
	pltotf MTSY.VPL mtsy.tf
	pltotf RMTMI.VPL rmtmi.tf
	vptovf MTMI.VPL mtmi.vf mtmi.tfm

- Move the .tfm files to TexmfLocal/fonts/tfm/bh/mathtime/.

- Move the .vf file to TexmfLocal/fonts/vf/bh/mathtime/.

- On TeXLive, disactivate the Belleek font map:

	sudo -H updmap-sys --disable belleek.map

- Update the kpathsea database and the global map files:

	sudo mktexlsr
	sudo -H updmap-sys --enable Map mt-yy.map

I'm not sure whether or not the creation of .afm files is necessary,  
or whether these are just included in the various TeX distributions  
for reference and for use by fontinst. I think I read somewhere  
that .afm files are used by dvipdfm, but I never actually checked.  
Should .afm files be required, then they can be recreated at will  
from the .pfb files using either the script pf2afm from GhostScript,  
or FontForge.

We can, as before, continue with the creation of symlinks for the Y&Y  
names of the LaserWriter fonts, but given these names aren't used in  
the plain TeX macro files on the BSR floppy, I don't think that's  
really necessary. It can always be done later if needed.

4. Installation of the plain TeX support macros

As for Lucida, teTeX 2 contained the original Y&Y plain TeX support  
macros for MathTime Basic and Plus, but these have been removed in  
teTeX 3 due to licensing issues. Hence you'll have to resort to your  
original font distribution.

What's absolutely needed are the original macro files mtmacs.tex (for  
MathTime Basic) and mtplus.tex (for MathTime Plus), by Michael Spivak  
who designed the fonts. A welcome addition are files combining the  
macros with adaptations of plain TeX:

- Y&Y provided mtplain.tex and mtplainx.tex, respectively, together  
with a number of encoding-specific files.

- Blue Sky Research provided PlainTimes.tex, for MathTime Basic.

- CTAN provides mathtime-pln, at <ftp://tug.ctan.org/pub/tex-archive/ 
macros/plain/contrib/mathtime.zip>, for MathTime Basic.

Pick whichever set of files you think is appropriate, then put:

- Macro files in TexmfLocal/tex/plain/mathtime/.

- Test files in TexmfLocal/doc/plain/mathtime/.

In case you used the files from the Blue Sky Research floppy, then  
there are additional pitfalls to avoid:

- Rename all the files to lowercase.

- Edit the files to replace any occurrence of Textures-style metrics  
by LaTeX-style metrics. Specifically replace:

	Times by ptmr
	TimesI by ptmri
	TimesB by ptmb
	TimesBI by ptmbi
	TimesO by ptmro

- I don't think end-of-line characters must be taken care of (ie  
converted from Mac-style to Unix-style), as I think the various  
binaries compiled by Gerben Wierda can deal with all three styles of  
line endings (Mac, Unix and DOS) transparently.

Finally, don't forget to update the kpathsea database:

	sudo mktexlsr

You're normally done!

5. Some additional considerations

Belleek is a public-domain clone of MathTime Basic. It was originally  
developped as a set of TrueType fonts by Richard Kinch for his  
commercial TrueTeX software, then converted to PostScript and donated  
to the public domain. The fonts themselves (ie the .pfb files) are  
included in both gwTeX and TeXLive, together with accompanying files  
mt-belleek.map and mtex.enc and, in TeXLive, redundant accompanying  
files belleek.map and texmext.enc offering exactly the same  
functionality. The metrics files are the very same files mtmi.tfm and  
so forth as for the MathTime Basic fonts and are omitted, preventing  
the fonts to be used. To install them, see point 3 above.

mt11p is an alternative set of metrics and LaTeX support files for  
MathTime, available from CTAN at <ftp://tug.ctan.org/pub/tex-archive/ 
fonts/mt11p.zip>. However, it requires MathTime Plus and doesn't work  
with either MathTime Basic or Belleek. For example, it doesn't  
contain the metrics mtsy.tfm used by Mathtime Basic; instead, it  
includes the metrics mtsyn.tfm superseding it in MathTime Plus.  
Accordingly, mt11p cannot be considered as a drop-in replacement for  
the mathtime package and metrics.

All that said, I should add that I'm personally a bit uncertain about  
the future of the commercial MathTime fonts, with the current or  
upcoming release of related free fonts:

- For text, the Termes public-domain clone of Times in PostScript and  
OpenType formats, part of the TeX Gyre project <http:// 
www.gust.org.pl/projects/e-foundry/tex-gyre/>. (To French people:  
before opening a browser to view this page, use the International  
system pref to set the language to English. The version of Plone -- a  
Content Management System --- used by the TeX Gyre site has a bug and  
returns incorrect code to browsers declaring their language as  
French. Other languages may be affected, I haven't checked.)

- For math, the long-awaited STIX fonts <http://www.stixfonts.org/>.

To conclude: these two set of notes, on Lucida and MathTime, have  
been time-consuming to test and write. I did the tests for my own  
use, and wrote the notes in the hope they could be useful to others.  
I am now planning to take a bit of distance from TeX-related  
activities, to do less computer stuff and more scientific stuff.  
Correction of errors in these notes is of course welcome, but please  
don't ask me for support; and, even more, please don't try to contact  
me off-list for TeX matters.

Bruno Voisin

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list