In trying to install MinionPro fonts on Mac OSX (so I can use
microtype etc), I followed the instructions from the CTAN page for
MinionPro but have not been able to get the fonts to work. This is
how I load the package:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{MnSymbol}
\usepackage{MinionPro}
\usepackage{microtype}
The error I get is the following(this is from the console):
:
:
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+382/600 --dpi
382 MinionPro-Regular-Base-aa
mktexpk: don't know how to create bitmap font for MinionPro-Regular-
Base-aa.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: /usr/texbin/pdflatex (file MinionPro-Regular-Base-aa):
Font Mini
onPro-Regular-Base-aa at 382 not found
==> Fatal error occurred, no output PDF file produced!
This is what I had done to install the fonts:
1) I downloaded and installed mnsymbol package under localtexmf tree
according the instructions. I updated the database and the map file.
The MnSymbol package seems to be loaded fine because it is shown in
the log.
2) I had the following otf files (these are installed on my Mac under
fontbook):
MinionPro-Bold.otf
MinionPro-Semibold.otf
MinionPro-BoldIt.otf
MinionPro-SemiboldIt.otf
MinionPro-It.otf
MinionStd-Black.otf
MinionPro-Regular.otf
which I converted to .pfb files using the script from CTAN and got the
following:
MinionPro-Bold.pfb
MinionPro-BoldIt.pfb
MinionPro-BoldItLCDFJ.pfb
MinionPro-BoldLCDFJ.pfb
MinionPro-It.pfb
MinionPro-ItLCDFJ.pfb
MinionPro-Regular.pfb
MinionPro-RegularLCDFJ.pfb
MinionPro-Semibold.pfb
MinionPro-SemiboldIt.pfb
MinionPro-SemiboldItLCDFJ.pfb
MinionPro-SemiboldLCDFJ.pfb
MinionStd-Black.pfb
MinionStd-BlackLCDFJ.pfb
all of which I installed under the local texmf tree (type1
directory).
3) Since my otf fonts are version 002, I downloaded the
enc-2.000.zip, unpacked it and intalled under localtexf tree (in the
enc directory).
4) I downloaded the metrics-base.zip, unpacked it and installed the
files (tex, tfm, vf) under appropriate directories in local
texmftree.
5) ran sudo texhash
and
sudo updmap-system --enable Map=MinionPro
all seemed to have gone well except that I cannot use the MinionPro
font.
I have installed fonts on the system many times before and the
instructions were quite clear. Is there something obvious that would
come to mind from the error I see? Is it possible that some more files
need to be installed? (Perhaps metrics-full or metric-optical?)
Another thing that comes to my mind is that perhaps the .pfb files I
have are NOT named properly? Any suggestions would be greatly
appreciated and tried before I decide to give up and delete the entire
thing from system. Best regards,
Tariq
Ok, I seem to have solved the problem; the culprit being
sudo updmap-system --enable Map=MinionPro
which (apparently) did nothing. I ran
sudo updmap --enable Map=MinionPro
just now and the document compiles with MinionPro fonts just fine.
Could someone please enlighten me on the difference between the above
two commands. I mean, why just
sudo updmap-sys --enable Map=MinionPro.map
not work? I also like to install MinionPro fonts under Ubuntu linux
next. Is there some caveat I need to be aware of? I would appreciate.
Regards,
Tariq
You probably have already used updmap (not updmap-sys) and now the
TeX programs use a map file in your personal directories.
Look at the output of
kpsewhich pdftex.map
which will point to a file in some place under your home directory.
Rename the file (by adding a trailing ~ to its name, for example)
and pdftex will use the system-wide pdftex.map, i.e., the one
on which "updmap-sys" acts.
There are also other files you should rename (or delete); the "bad"
pdftex.map should be in <path>/map/pdftex/; under <path>/map there
will be other directories containing "bad" map files (used by dvips
and (x)dvipdfm(x)).
Ciao
Enrico
Hi Enrico
Thanks for your response. Yes, I do remember using
\updmap
before on this system. Indeed, the result of
kpsewhich pdftex.map
on my terminal is:
/Users/tariq/.texlive2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map
Since, other "bad" map files are at various locations, it might be a
while before I can get to all of them. You have pointed out some
locations; how can I find out if there are more? My only worry is
that I could mess up some important map file and then I will be in
some deep trouble.
I guess the moral of the story is to stick with updmap-sys but if one
has made the mistake of using updmap once, then stick ALWAYS with
updmap. I wish I had known this before because I have been updmapping
on my linux system also for a few years!
I really appreciate your explanation. It all makes sense now and I can
see why my problem arose in the first place. Best regards,
Tariq
>
> Ok, I seem to have solved the problem; the culprit being
>
> sudo updmap-system --enable Map=MinionPro
>
> which (apparently) did nothing. I ran
>
> sudo updmap --enable Map=MinionPro
>
> just now and the document compiles with MinionPro fonts just fine.
>
> Could someone please enlighten me on the difference between the above
> two commands. I mean, why just
>
> sudo updmap-sys --enable Map=MinionPro.map
>
> not work? I also like to install MinionPro fonts under Ubuntu linux
> next. Is there some caveat I need to be aware of? I would appreciate.
>
> Regards,
>
> Tariq
Howdy,
Most likely because you ran
sudo updmap ...
before so you have a personal map file in ~/.texlive2009 (or whatever
you are using) and it is taking precedence over the map file in
texmf-var (I think that's where it is).
A couple of things. Using sudo when creating a personal map file (i.e.,
using updmap rather than updmap-sys) will make root the owner of the
personal map file. If you want a personal map file just run
updmap ....
without the sudo. If you want to use the system's map file you should
now run
sudo rm -fr ~/.texlive2009
since files there are now owned by root. When you create a new system
map file you do need to use sudo for MacTeX since those directories &
files are owned by root; i.e., use
sudo updmap-sys ...
to generate the map file.
Hope this is clear.
Good Luck,
Herb Schulz
Herb
Thank you very much for explaining the intricacies of updmap. You'r
right, I had certainly used updmap (and not updmap-sys) at one
point.Your explanation makes things very clear and I will make use of
the sudo rm command you recommended.
I have one question: I have done similar updmap things on my linux
system that runs TeXLive2007 (still) under Ubuntu. Would you happen to
know how I can remove similar personal map files created by updmap? I
would really like to just use the sytem map file created by updmap-sys
from now on. Otherwise, I see foresee inconsistencies down the road.
Best regards,
Tariq
> ...
> I have one question: I have done similar updmap things on my linux
> system that runs TeXLive2007 (still) under Ubuntu. Would you happen to
> know how I can remove similar personal map files created by updmap? I
> would really like to just use the sytem map file created by updmap-sys
> from now on. Otherwise, I see foresee inconsistencies down the road.
>
> Best regards,
>
> Tariq
Howdy,
In analogy with the MacTeX version I'd guess they would be in
~/.texlive2007 but I can't be sure since I don't use linux.
Good Luck,
Herb Schulz
Herb
Thanks for the idea. I found where it is and I will be able to take
care of it as suggested by Enrico earlier. Regards,
Tariq