Thursday, September 6, 2007

Myriad and Minion for LaTeX

Update: This is all much easier with FontPro.
You probably can safely ignore all the rest below when using the above scripts.

Minion CTAN archive

sudo apt-get install lcdf-typetools

Fonts are installed with Adobe Acrobat Reader, for example:
otfinfo -v /opt/acrobat/Resource/Font/MinionPro-Regular.otf
On Ubuntu Intrepid, the Acrobat Reader 8 fonts can be found in

This should result in
Version 2.015;PS 002.000;Core 1.0.38;makeotf.lib1.7.9032.
cp /opt/acrobat/Resource/Font/MinionPro* otf
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/type1/adobe/MinionPro
sudo cp pfb/*.pfb `kpsexpand '$TEXMFLOCAL'`/fonts/type1/adobe/MinionPro
sudo unzip -d `kpsexpand '$TEXMFLOCAL'`
sudo unzip -d `kpsexpand '$TEXMFLOCAL'`
sudo texhash
sudo updmap-sys --enable Map

acroread `kpsexpand '$TEXMFLOCAL'`/doc/latex/MinionPro/MinionPro.pdf
MnSymbol CTAN archive
cd mnsymbol/tex
latex MnSymbol.ins
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/tex/latex/MnSymbol
sudo cp MnSymbol.sty `kpsexpand '$TEXMFLOCAL'`/tex/latex/MnSymbol
cd ..
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/source/public/MnSymbol
sudo cp -R source/* `kpsexpand '$TEXMFLOCAL'`/fonts/source/public/MnSymbol
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/doc/latex/MnSymbol
sudo cp MnSymbol.pdf README `kpsexpand '$TEXMFLOCAL'`/doc/latex/MnSymbol
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/MnSymbol
sudo cp enc/ `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/MnSymbol
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/enc/dvips/MnSymbol
sudo cp enc/*.enc `kpsexpand '$TEXMFLOCAL'`/fonts/enc/dvips/MnSymbol
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/type1/public/MnSymbol
sudo cp pfb/*.pfb `kpsexpand '$TEXMFLOCAL'`/fonts/type1/public/MnSymbol
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/tfm/public/MnSymbol
sudo cp tfm/* `kpsexpand '$TEXMFLOCAL'`/fonts/tfm/public/MnSymbol
sudo texhash
sudo updmap-sys --enable MixedMap

cp /opt/acrobat/Resource/Font/MyriadPro-* otf/
mkdir myriad
cd myriad
unzip ../
mv fonts/tfm/Adobe fonts/tfm/adobe
mv fonts/type1/Adobe fonts/type1/adobe
mkdir fonts/enc
mv dvips fonts/enc/
mkdir -p fonts/map/dvips/Myriad
mv fonts/enc/dvips/MyriadPro/ fonts/map/dvips/Myriad/
cp ../pfb/MyriadPro-* fonts/type1/adobe/MyriadPro
sudo cp -R * `kpsexpand '$TEXMFLOCAL'`
sudo texhash
sudo updmap-sys --enable Map

In LaTeX file:

% Minion and Myriad fonts


SomeoneTookMyId said...

Thx for this. It was very helpful in installing MnSymbol. :)

leo said...

Glad it helped you!

Martin Petisme said...

Thanks a lot, wonderful guide!

billynomates said...

Hey, small problem.
I have installed lcdf but otfinfo gives me an error:

mike@speedbuntu:/opt/acrobat/Resource/Font/MinionPro$ sudo apt-get install lcdf-typetools
Reading package lists... Done
Building dependency tree
Reading state information... Done
lcdf-typetools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

mike@speedbuntu:/opt/acrobat/Resource/Font/MinionPro$ otfinfo -v /opt/acrobat/Resource/Font/MinionPro-Regular.otf
otfinfo: /opt/acrobat/Resource/Font/MinionPro-Regular.otf: No such file or directory

Any ideas?

leo said...

billynomates, that indicates you have installed otfinfo correctly, but the path to the Acrobat reader is wrong.

Are you sure you've installed a current version of the Acrobat reader into /opt/acrobat?

You might also want to check where the acroread executable resides using "which acroread".

Anonymous said...

Thank you so much for posting this. After half a day of wasted time, these instructions got the job done in 5 minutes!

Anonymous said...

Have you checked for ligatures (e.g. ff, fi, ffi, ffj etc.)? They don't seem to work for Myriad. For which also some glyphs (e.g inverse '!' and '?') are wrong. The reason might be, that this MyriadPro package is - more or less - a MinionPro package with some file names exchanged ...

Wouter Bolsterlee said...

With recent versions of XeLaTeX and the fontspec package any OpenType font can be used directly in LaTeX, i.e. without going through the pain of generating font metrics and installing those in a local texmf tree. The fontspec documentation contains many examples on how to get it working (it's easy).

Greg said...

Thanks so much for this guide. It was a huge help.

Jan said...

The MyriadPro package is troublesome. In addition to the ligatures not working, the .map files also rewrite some national characters to make the ligatures work, thus breaking the T1 encoding ;). Particularly the \tcaron (or \tquoteright).

stinkinrich88 said...

I also needed to run this:

updmap-sys --enable Map

Anonymous said...

Very helpful for me, nice improvement for my students!

If I use "sudo updmap-sys" doesn't work. If I use "updmap" instead, it works!

Thank a lot, again.

Anonymous said...

Thx for the tut. I did everything as described but got an missing font error.
mktexpk --mfmode / --bdpi 600 --mag 0+597/600 --dpi 597 MinionPro-Bold-Base-a

I am using sublime editor with texlive on Xubuntu 12.04

Can you help me?