# How to install or replace fonts in old TeX files?

I got interested in a research paper from 1991, which I cannot get an electronic online version of. The author was kind enough to send me his tex sources, but is himself unable to produce a pdf file from it. Now I am trying to get this file compiled.

The "style files" that are loaded start with a number of font command definitions that fail on my machine:

\font\fivesym=msym5

\font\tenss=amss10

\font\tenssi=amssi10

\font\sixrm=amr6
\font\sixi=ammi6
\font\sixsy=amsy6
\font\sixbf=ambx6
\font\sixsym=msym6

\font\sevensym=msym7

\font\eightrm=amr8
\font\eighti=ammi8
\font\eightsy=amsy8
\font\eightbf=ambx8
\font\eightsl=amsl8
\font\eightit=amti8
\font\eightsym=msym8

\font\eighttt=amtt8

\font\ninerm=amr9
\font\ninei=ammi9
\font\ninesy=amsy9
\font\ninebf=ambx9
\font\ninesl=amsl9
\font\nineit=amti9
\font\ninesym=msym9

\font\elevenbf=ambx10 scaled 1095
\font\tensmc=amcsc10
\font\tensym=msym10
\font\twelvesmc=amcsc10 scaled 1200
\font\fourteensmc=amcsc10 scaled 1440


Trying to compile this document in TeX results in errors of the form:

! Font \tenss=amss10 not loadable: Metric (TFM) file not found.


To start with the first line above, my system does not have a file msym5.tfm, and no package in Ubuntu contains a file named like this. I could find some versions of the file on the Web but I am unable to install this font without a map file (which I failed to find).

Is there a good way to get hold of old fonts to compile such old documents? Can I replace the definitions by something that works today? Unfortunately, I have no idea how the font is supposed to look in each case (the Web did not provide any clue), and some of the fonts might be symbol fonts used for special math characters.

-
This is exactly the kind of stuff I like to do on my spare time! :-) (However, instead of faithfully reproducing the original design, I like to use unicode and opentype fonts.) It looks to me like the fonts loaded in the style file would be AMS extensions for math symbols and styles (so \input amstex maybe). –  morbusg Apr 3 '13 at 11:03
@morbusg But if the tfm files are not about tht won't help. I guess they've been renamed: I suspect Barbara Beeton is the person best placed to know. –  Joseph Wright Apr 3 '13 at 11:17
These are very old files. The "Almost Modern" fonts were dropped very long ago (surely before 1991). You should be able to compile the file by changing am*** into cm*** in the font names. For msym the most plausible substitute should be msbm. –  egreg Apr 3 '13 at 11:26
–  egreg Apr 3 '13 at 11:30
I'm still looking for a reference, but Knuth said to remove "Almost Modern Fonts" from archives and documents. As far as I remember, CM fonts were shipped with TeX82 (and the new MF82). A different matter is with msxm and msym fonts, released by AMS for AMS-TeX; these fonts were dropped and removed from archives with the release of version 2 of AMS-TeX; I believe this removal has been wrong, but AMS wanted users to switch to the new msam and msbm fonts. The article you have shows clearly that users are not very keen to updating their systems. –  egreg Apr 3 '13 at 11:44

wow, that is an ancient file!

as egreg has said in a comment, the am* ("almost modern") fonts can be substituted by cm* (computer modern; there never was a "b" series, which one might have called "better modern" or "barely modern"), and msym should be replaced by msbm.

if i remember correctly, there were a few small changes between msym and msbm, but that font has been used mostly for the blackboard bold alphabet. the shapes of these letters are different in the two fonts -- in msbm a serif model was used, replacing the more "geometric" shapes in msym -- but the positions of the letters are the same so the output should have the same meaning.

regarding the switch from am* to cm*, the metrics are not guaranteed to be identical, so line and page breaks may not be the same as the original. nonetheless, the content should be identical in meaning.

one other change i would suggest is removal of the % signs following the font assignments; they're not necessary, and in the case of the scaled qualifiers, are actually somewhat inefficient, as they serve to cause tex to continue reading to determine if the scale factor is perhaps "10950" (an absurdity, of course, but tex is a program, and does only what it's told).

i think you should be grateful that these files weren't written for tex78; that's quite a different can of worms, and not as easily repaired. as it is, egreg's comment that some users were not very keen on updating their systems is right on. the cm fonts were shipped with tex82, and the msa* and msb* symbol fonts were released in 1985 (announced in tugboat 6:3). the removal of msx* and msy* may be decried, but it was the easiest way to ensure that requests for maintenance were curtailed; in those days, it was expected that font distribution included pixel files at several different resolutions, tuned for write-black or write-white printers, and maintenance was a much more time-consuming undertaking than it is today.

-
Thanks, I updated the code sample to avoid the unnecessary %. I had lazily copied from the original file, but you are right that we should not give bad examples here. –  mak Apr 3 '13 at 13:06