Help using MathTime Pro 2 fonts in Ubuntu Linux

799 views
Skip to first unread message

Daniel

unread,
Dec 16, 2012, 10:27:38 PM12/16/12
to LaTeX Users Group
I installed the MTPro2 fonts in Ubuntu 12.04 by extracting the MTPro2
ZIP file into a directory called "mathtime" and then doing the
following:

sudo mv mathtime/* /usr/local/share/texmf/
cd /usr/local/share/texmf/
sudo texhash
sudo updmap --disable mt-belleek.map --nomkmap
sudo updmap --disable belleek.map --nomkmap
sudo updmap --disable mt-yy.map --nomkmap
sudo updmap --disable mt-plus.map --nomkmap
sudo updmap --enable Map mtpro2.map
sudo chmod -R a+r+x /usr/local/share/texmf/

However, when trying to compile a LaTeX document that uses the MTPro2
fonts, I get the following:

[BEGIN EXCERPT FROM LOG]
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo)) (./mtpro2.sty
kpathsea: Running mktextfm mt2exa
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
nonstopmode; input mt2exa
This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)


kpathsea: Running mktexmf mt2exa
! I can't find file `mt2exa'.
<*> ...:=ljfour; mag:=1; nonstopmode; input mt2exa
[END EXCERPT FROM LOG]

Everything used to work fine under Ubuntu 11.10, but I recently
installed Ubuntu 12.04 on a new machine, and now I can't get the
MTPro2 fonts to work. Help! :)

James O'Connell

unread,
Dec 17, 2012, 8:33:41 AM12/17/12
to latexus...@googlegroups.com
Daniel

Try using the 'fc-scan' command (you may have to specify your directory) to update your font list for your. System.


--
Sent from my Kindle with K-9 Mail. Please excuse my brevity.

Daniel

unread,
Dec 17, 2012, 1:50:13 PM12/17/12
to LaTeX Users Group
Thanks, but the problem is still there.

On Dec 17, 8:33 am, James O'Connell <jamesmoconn...@gmail.com> wrote:
> >--
> >You received this message because you are subscribed to the Google
> >Groups "LaTeX Users Group" group.
> >To post to this group, send email to latexus...@googlegroups.com.
> >To unsubscribe from this group, send email to
> >latexusersgro...@googlegroups.com.
> >For more options, visit this group at
> >http://groups.google.com/group/latexusersgroup?hl=en.

Daniel

unread,
Dec 18, 2012, 12:51:55 AM12/18/12
to LaTeX Users Group

Peter Flynn

unread,
Dec 18, 2012, 3:22:38 PM12/18/12
to latexus...@googlegroups.com
On Mon, Dec 17, 2012 at 3:27 AM, Daniel <djuat...@gmail.com> wrote:
I installed the MTPro2 fonts in Ubuntu 12.04 by extracting the MTPro2
ZIP file into a directory called "mathtime" and then doing the
following:

sudo mv mathtime/* /usr/local/share/texmf/

This is correct for a multiuser system. If you only want to install fonts for yourself, put them in ~/texmf instead, and then texhash is not required (in fact, must not be used) and you don't need sudo.
 
cd /usr/local/share/texmf/

You don't need to be in that directory to run texhash: it's global.
 
sudo texhash
sudo updmap --disable mt-belleek.map --nomkmap
sudo updmap --disable belleek.map --nomkmap
sudo updmap --disable mt-yy.map --nomkmap
sudo updmap --disable mt-plus.map --nomkmap
sudo updmap --enable Map mtpro2.map

If this is for a system-wide install, I think you need to use updmap-sys, not updmap.
 
sudo chmod -R a+r+x /usr/local/share/texmf/

That should not be needed at all, assuming you have the default /etc/skel

However, when trying to compile a LaTeX document that uses the MTPro2
fonts, I get the following:

[BEGIN EXCERPT FROM LOG]
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo)) (./mtpro2.sty
kpathsea: Running mktextfm mt2exa

This is because TeX cannot find the font maps pointing at the Postscript fonts, so it's trying to make .pk bitmaps instead, and not finding any .mf files. 

Using updmap as root only created the font maps for use as root. Use updmap-sys, or install the fonts in ~/texmf (sudo not needed at all).
 
WARNING: the behaviour of updmap changed in TL 2012. If you are using Ubuntu 12.04 with the default Debian install, that's still TL 2009. If/when you upgrade to 12.10 and TL 2012, you will need to Read The Fine Documentation on how updmap has changed. There were brief details presented at the TUG Conference in Boston in the summer, which are in a note by Norbert Preining at http://tug.org/TUGboat/Articles/tb33-2/tb104abstracts.pdf but I am still trying to find the full documentation, so what I describe above may not be true for TL 2012.

///Peter

Daniel

unread,
Dec 18, 2012, 10:06:56 PM12/18/12
to LaTeX Users Group
Wow, thank you so much for the reply, Peter. Even though I already
fixed the problem, it's helpful because now I have a better
understanding.

On Dec 18, 3:22 pm, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Mon, Dec 17, 2012 at 3:27 AM, Daniel <djuatde...@gmail.com> wrote:
> > I installed the MTPro2 fonts in Ubuntu 12.04 by extracting the MTPro2
> > ZIP file into a directory called "mathtime" and then doing the
> > following:
>
> > sudo mv mathtime/* /usr/local/share/texmf/
>
> This is correct for a multiuser system. If you only want to install fonts
> for yourself, put them in ~/texmf instead, and then texhash is not required
> (in fact, must *not* be used) and you don't need sudo.
> Norbert Preining athttp://tug.org/TUGboat/Articles/tb33-2/tb104abstracts.pdfbut I am still
Reply all
Reply to author
Forward
0 new messages