Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Installation of MathTime, MathTime plus, and MathPi fonts

869 views
Skip to first unread message

andrex

unread,
Mar 7, 2001, 8:32:27 PM3/7/01
to
Following are instructions for installing and using the MathTime (mathtime),
MathTime Plus (mathplus), and MathematicalPi (mathpi) fonts in MikTeX 2.0.
For users of tetex or other TeX systems, I can't provide any direct
experience, but the instructions should be similar and I've tried to make
them general.

These instructions are revised from my similar post a few months ago. I now
include the mathpi fonts, and the procedure for installing the font maps has
been simplified, in accordance with the simpler font map layout in MikTeX
2.0.

I assume that the main texmf root directory is c:\texmf; the local root is
c:\localtexmf; and that the local root precedes the main root in MikTeX's
file search path, so that files in the local root take precedence over those
in the main root. To ensure this, use the MikTeX options wizard from the
Start menu; or from the command line,

initexmf --install-root=c:\texmf --local-root=c:\localtexmf
--root-directories=c:\localtexmf;c:\texmf


1. Be sure that your MikTeX installation includes "Lucida Bright and
MathTime support". If it doesn't, go back and install it now. This
component consists of the files in yandy.zip, in the MikTeX level 3
distribution, from http://www.miktex.org. If you don't have a directory
c:\texmf\tex\latex\mathtime with a lot of .sty and .fd files in it, you
don't have this component.


2. Install the font outline (.pfa or .pfb) files, as follows:

package .pfa/.pfb files installation directory
------- --------------- ----------------------
mathtime mtex,mtsy,rmtmi
c:\localtexmf\fonts\type1\yandy\mathtime
mathplus mtex{b,h},mtgu{,b},
c:\localtexmf\fonts\type1\yandy\mathplus
mtls{,b},mtms{,b},mtsy{b,h,n},
rmtmi{b,h},rmtmu{b,h}
mathpi mh[1-6] c:\localtexmf\fonts\type1\yandy\mathpi

Note 1: the font outline files are not freely available. You have to buy
them from http://www.yandy.com (mathtime, mathplus) or http://www.adobe.com
(mathpi).

Note 2: you don't have to have all of these fonts. Just install the ones
you have, and we'll deal with the wreckage below.

Note 3: mh?.* are distributed as mh?_____.* . I don't get the point of the
underscores so I remove them.


3. For mathpi, get mh[1-6].afm from
ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/151-200/158 and copy
them into c:\localtexmf\fonts\afm\yandy\mathpi.


4. Set up the font map files:

(a) Make a file c:\localtexmf\dvips\yandy\mathtime.map with the following
entries:

% Font map for the mathtime and mathplus fonts
mtex MTEX <mtex.pfb
mtexb MTEXB <mtexb.pfb
mtexh MTEXH <mtexh.pfb
mtgu MTGU <mtgu.pfb
mtgub MTGUB <mtgub.pfb
mtls MTLS <mtls.pfb
mtlsb MTLSB <mtlsb.pfb
mtms MTMS <mtms.pfb
mtmsb MTMSB <mtmsb.pfb
mtsy MTSY <mtsy.pfb
mtsyb MTSYB <mtsyb.pfb
mtsyh MTSYH <mtsyh.pfb
mtsyn MTSYN <mtsyn.pfb
rmtmi RMTMI <rmtmi.pfb
rmtmib RMTMIB <rmtmib.pfb
rmtmih RMTMIH <rmtmih.pfb
rmtmub RMTMUB <rmtmub.pfb
rmtmuh RMTMUH <rmtmuh.pfb

(b) Make a file c:\localtexmf\dvips\yandy\mathpi.map with the following
entries:

% Font map for the mathpi fonts
mh2 MathematicalPi-Two <mh2.pfb
ppi020 MathematicalPi-Two <mh2.pfb
mh2scr MathematicalPi-Two "mh2scrEncoding ReEncodeFont" <mh2scr.enc
<mh2.pfb
mh6 MathematicalPi-Six <mh6.pfb
ppi025 MathematicalPi-Six <mh6.pfb

(c) Tell TeX and friends how to find the font maps. There are several ways
to do it. My preference is to modify each application's configuration file,
as in the following examples:

- For dvips, copy dvips\config\config.ps from c:\texmf into c:\localtexmf,
then add the lines:

p +mathtime.map
p +mathpi.map

somewhere below "p psfonts.map". (The same two lines also need to be
present in miktex\config\config.makepk, but in MikTeX 2.0 this is already
true in c:\texmf, so no change is necessary.)

- For pdf(la)tex, copy pdftex\config\pdftex.cfg from c:\texmf into
c:\localtexmf, then add the lines:

map +mathtime.map
map +mathpi.map

somewhere below "map psfonts.map".

- For dvipdfm, if you have the Times bold italic font (rmtmib, part of
mathplus), copy dvipdfm\base\psbase14.map from c:\texmf into c:\localtexmf,
then change the line "ptmbi8r 8r Times-Italic" to "ptmbi8r 8r
Times-BoldItalic". I don't know what changes will be required for the other
mathplus fonts, since I don't have them. For the mathpi fonts, add the
lines:

% MathPi
mh2 default mh2
mh2scr mh2scr mh2
mh6 default mh6

Instead of modifying configuration files as above, another way to proceed is
to insert the mathtime and mathpi font maps into the main font map files,
e.g. dvips\config\psfonts.map and pdftex\config\psfonts.map. This can be
done either directly, or using the font map update scripts.

For other versions of TeX, other configuration or font map files will have
to be modified. This can take some time to figure out. Use the above as
examples, and post whatever you find out.


5. Get the files mathtime.{ins,dtx} and mtfonts.fdd, either from CTAN
(http://tug.ctan.org) or in the mathtime or mathplus distributions. What
you do next depends on which font packages you purchased.

(a) If you have mathtime and not mathplus, edit mathtime.ins to uncomment
the line "\def\mtplus{}". Then run "latex mathtime.ins".

(b) If you have all of mathtime and mathplus, check that the line
"\def\mtplus{}" is commented out in mathtime.ins, then run "latex
mathtime.ins".

(c) If you have only parts of mathtime and/or mathplus, you are going to
need to do some .sty and .fd file hacking, to remove references to the
missing fonts. As a guide, here is how I handled one such case. I
purchased all three mathtime fonts (mtex, mtsy, rmtmi), but only one of the
mathplus fonts, rmtmib. To handle this I:

- left "\def\mtplus{}" commented in mathtime.ins, then ran "latex
mathtime.ins". This gave me .sty and .fd files for a complete
mathtime/mathplus installation.

- commented out all the \DeclareFontShape commands in my{1,2,3}mtt.fd not
related to the msty, mtex, mtmi, or mtmib fonts. For example, in my1mtt.fd
I removed references to mtmih, mtmub, and mtmuh.

- edited mathtime.sty to remove references to "heavy" fonts: in the section
"\ifx\boldmath m", commented all lines with the word "heavy" except for
"\let\heavymath\boldmath". (I can't remember how I worked this out. It's
not obvious to me looking at it now. Recently I mistakenly removed this
file, and got unhelpful error messages about "too many math alphabets used
in version normal".)


6. Copy mathtime.sty and my{1,2,3}mtt.fd into
c:\localtexmf\tex\latex\mathtime. (There are also other .sty and .fd files;
you can copy them too, but if you have MathTime support installed, they
should already be in c:\texmf\tex\latex\mathtime, so you won't need them.)
Also copy mathtime.dvi into c:\localtexmf\doc\latex; this is documentation
for mathtime.sty and mathpi.sty.


7. For the mathpi script font:

- copy mh2scr.enc into c:\localtexmf\dvips\yandy

- create mh2scr.tfm: cd to c:\localtexmf\fonts\tfm\yandy\mathpi, and execute


afm2tfm c:\localtexmf\fonts\afm\yandy\mathpi\mh2.afm -T
c:\localtexmf\dvips\yandy\mh2scr.enc mh2scr


8. To use mathtime.sty with amsmath.sty, modify mathtime.sty to precede
\DeclareMathAccent{\vec} by \let\vec\@undefined, and similarly for all of
the other math accents-- there's a section of them from \vec through
\widebar.


9. Refresh the filename database: from the MikTeX options wizard, or
initexmf --update-fndb.


10. Refresh the psres database: from the MikTeX options wizard, or initexmf
--mkpsres. May need to remove the database first:
c:\localtexmf\miktex\config\psres.dpr (tetex: psres.upr). Or, may have to
completely reconfigure: initexmf --reconfigure. If Yap or someone else
still can't find the fonts, or other font problems appear, try initexmf
--mkpsres both with and without the --search option, always removing
psres.dpr first.


11. To get the mathtime fonts in text and math, \usepackage{mathtime}. To
also get bold math (if you have rmtmib),

\usepackage[mtbold]{mathtime}
\usepackage{bm}

and use \bm{} to get bold math. amsmath, mathtime, and bm must be called in
that order.

To get the mathpi fonts, \usepackage{mathpi} with one or more of the options
mathbb, mathcal, mathscr, mathfrak. See mathtime.dvi for more information.

---

I hope that in the near future, many of these steps will be unnecessary as
MikTeX brings more of the required files into its standard MathTime
distribution. Maybe other distributions already don't need many of these
steps.

If you're trying to install these fonts and the above procedure doesn't
work, send me a messsage and I'll try to help.

Andrew Schulman
and...@alumni.utexas.net

Ashish Singhal

unread,
Mar 7, 2001, 9:30:01 PM3/7/01
to
Andrew,

Is there any way on installing the mathtime package if I do not have the
font outline files (.pfa or .pfb) as in step 2?

Ashish

Thomas Esser

unread,
Mar 9, 2001, 4:36:43 AM3/9/01
to
andrex <and...@zzapp.org> wrote:
> Following are instructions for installing and using the MathTime (mathtime),
> MathTime Plus (mathplus), and MathematicalPi (mathpi) fonts in MikTeX 2.0.
> For users of tetex or other TeX systems, I can't provide any direct
> experience, but the instructions should be similar and I've tried to make
> them general.

For teTeX, it is much much easier. The metrics and font map entries
are already present. You just need to put the pfb files somewhere into
texmf/fonts/type1 and run texhash.

The fonts can be used for pdftex, dvips, xdvi, dvilj, ...
Type1 -> PK conversion will be done automatically if needed.

Thomas

Robin Fairbairns

unread,
Mar 9, 2001, 10:00:24 AM3/9/01
to
Ashish Singhal <ashis...@yahoo.com> wrote:
>Is there any way on installing the mathtime package if I do not have the
>font outline files (.pfa or .pfb) as in step 2?

no. the outline fonts are the essence of the installation; everything
else is just support files.

there are no distributed bitmap versions of the mathtime fonts; you
have to buy the outlines.
--
Robin Fairbairns, Cambridge

Andrew E. Schulman

unread,
Mar 9, 2001, 10:17:03 PM3/9/01
to
> Ashish Singhal <ashis...@yahoo.com> wrote:
> >Is there any way on installing the mathtime package if I do not have the
> >font outline files (.pfa or .pfb) as in step 2?
>
> no. the outline fonts are the essence of the installation; everything
> else is just support files.

Although an alternative is to use the mathptm and mathptmx packages. If I
recall right these give the right letter glyphs, with a mix of CM and other
symbols.

Andrew E. Schulman

unread,
Mar 9, 2001, 10:18:48 PM3/9/01
to
> For teTeX, it is much much easier. The metrics and font map entries
> are already present. You just need to put the pfb files somewhere into
> texmf/fonts/type1 and run texhash.

Well maybe it will become easier for MikTeX too. I filed a bug report
about the missing support files.

But I'm guessing that there will still be complications if, as I did, you
only buy some of the fonts.

0 new messages