# Problems installing MathTime Professional 2 font on TexLive

Recently I've been trying to install the MathTime Professional 2 font (free Lite version). I'm using TeX Live on Ubuntu 12.04.

I downloaded the files and copied them over to the folder /usr/share/texmf-texlive/. (The instructions suggested putting them in /usr/share/texmf/, but this didn't work for me.) After umpteen runs of texhash, updmap and updmap-sys, the pdflatex command can now find mtpro2.map. However now when I run pdflatex on a simple file

\documentclass{article}
\usepackage[scaled=0.92]{helvet}    % set Helvetica as the sans-serif font
\renewcommand{\rmdefault}{ptm}      % set Times as the default text font
\usepackage{amsmath}
\usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}
\begin{document}
\section{A}
This is a test secton
$a$
\end{document}


I get the following error

(/usr/local/share/texmf/tex/latex/mtpro2/mtpro2.sty
(/usr/share/texmf-texlive/tex/latex/psnfss/ot1ptm.fd))
(./LaTeX Article MTPro2Lite.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdft
ex.map}] (./LaTeX Article MTPro2Lite.aux)
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 mt2mit
mktexpk: don't know how to create bitmap font for mt2mit.
kpathsea: Appending font creation commands to missfont.log.
)
==> Fatal error occurred, no output PDF file produced!


I've been Googling for about an hour trying to a find a solution, but I've found nothing. Does anyone have any advice on how I might proceed?

I'm a complete n00b when it comes to installing extras for LaTeX; sorry if this question is inappropriate.

Edit: running sudo updmap-sys --enable Map mtpro2.map outputs:

updmap: This is updmap, version $Id: updmap 14402 2009-07-23 17:09:15Z karl$
updmap: using transcript file /var/lib/texmf/web2c/updmap.log'
updmap: initial config file is /var/lib/texmf/web2c/updmap.cfg'

-
The error means that the updmap-sys run has not made what it should. You should not run updmap; first try removing the /home/james/.texmf-var/fonts/map/pdftex/updmap/pdftex.map file (the one created by updmap). –  egreg Oct 7 '12 at 10:52
Thanks for the comment. I've deleted the .texmf-var directory but I'm still getting the same error. The file mt2mit.tfm is in the proper place in the texmf directory, and more runs of updmap-sys and texhash haven't done anything. –  James Fennell Oct 7 '12 at 16:15
Did you run sudo updmap-sys --enable Map mtpro2.map? –  egreg Oct 7 '12 at 16:31
Yes. Was just about to say: should I be worried that the command the updmap-sys --enable command only outputs 3 lines? It doesn't, for instance, run the updmap-sys command afterwards to refresh all the files. On the other hand, when I run updmap-sys --disable it subsequently executes updmap-sys. –  James Fennell Oct 7 '12 at 16:34
Please, modify the reported lines in the log file that you get now, after having removed the improper pdftex.map file. –  egreg Oct 7 '12 at 16:40

It seems that some problems have accumulated. As a last resort I'd try editing by hand the updmap.cfg file: with your favorite editor open the file, for instance with

sudo vim \$(kpsewhich updmap.cfg)


and add at the end the line

Map mtpro2.map


Then run

sudo updmap-sys


and the system should be able to find the fonts.

-
This worked! @egreg was kind enough to offer his time on chat to fix the problem (we were on chat for nearly an hour). I am very, very grateful. Thank you egreg! –  James Fennell Oct 7 '12 at 21:33
@JamesFennell Happy to have been able to help. –  egreg Oct 7 '12 at 21:42