Up home to my home page     
or back to my LaTeX page     

Installing Fonts

This is a step-by-step idiot's guide to installing some fonts for LaTeX on the Mac, including fonts for mathematics. It is really just a log of what I did, starting from not knowing anything (in December 2005.)

I'm assuming you have a default i-Installer installation of LaTeX, and are using LyX (just skip the LyX instructions if you aren't.)

Install the URW Garamond fonts

Go to www.ctan.org/tex-archive/nonfree/fonts/urw/garamond/ and download (click "view") all the .pfb and .afm files, as well as ugm.zip.

Below are the relevant parts of README.garamond's instructions

Installing the Type1 font files in your TeX system
--------------------------------------------------
The Type1 font files

  ugmr8a.pfb
  ugmri8a.pfb
  ugmb8a.pfb
  ugmbi8a.pfb

are to be copied to the directory

  <texmf>/fonts/type1/urw/garamond
  
of your TeX system, and the related .afm files should go
into

  <texmf>/fonts/afm/urw/garamond

Most likely, you will have to create these directories
first.

<texmf> here is ~/Library/texmf, where ~ means your home directory, the in the finder. (I believe you don't actually need to create such deep hierarchies, as long as the files are there they will be found, but I did, just to be safe.) You don't need the .pfm files.

Installing the TeX support files from the archive ugm.zip
---------------------------------------------------------
Unpack the ZIP archive ugm.zip in the directory ,
i.e., in root directory of the TeX file tree, where you want
to install the present collection.  Thus, all files will end
up in the appropriate directories.

As it says:

* Configuring teTeX 2.0+
Delete the file /dvips/config/ugm.map, which is
not needed with a recent teTeX.  Next, issue the following
commands in a command shell:
 
  texhash
  updmap --enable Map ugm.map

You need to open up the terminal (go to the folder Applications/Utilities) and type

sudo texhash
sudo updmap --enable Map ugm.map

instead. (This runs these commands as root, not as your user, which is needed because you don't own the LaTeX installation.) The second of these took a few minutes for me.

Then in LyX, click Edit > Reconfigure. Then quit and re-start LyX.

Open your document, click Layout > Document, and then click Preamble in the list. Add this line there:

\renewcommand{\rmdefault}{ugm}

Click View > PDF (pdfLaTeX) and see that it's working!

The manual texmf/doc/fonts/urw/garamond.txt also tells you to do this:

Notice that ugm is supported with T1 (european) and TS1
(textcompanion) encoding only, so you should issue the
commands
  \usepackage[T1]{fontenc}
  \usepackage{textcomp}

but by default LyX has inserted this for you:

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

as you can see by clicking File > Export > LaTeX and looking at the resulting .tex file. I'm not qualified to tell you if this is a problem, it seems to work for me.

So far we've got the text font to be a nice Garamond, but the mathematics is still good old CM. (If you only wanted text, you could stop here. Or simply use XeTeX and any font you have on your mac.)

Install the MathDesign package & fonts

Go to www.ctan.org/tex-archive/fonts/mathdesign/ and download mathdesign.zip to your desktop. (By default it gets decompressed for for you.) Then scroll down to the readme file and follow these steps:

1) Install now the core files, required by all the Math Design
   package. Download the archive mdcore.zip and unzip it in the root
   directory of the texmf tree you have chosen.

2) Download the archive of each family and unzip it in the root
   directory of the texmf tree you have chosen.

You could unzip mdcore.zip by double-clicking it, and then copy all the files into matching directories in ~/Library/texmf by hand (as I did for URW Garamond above.) But a much quicker way is to drag the unopened zip into the texmf folder, and then open up the terminal and decompress it there: type

cd ~/Library/texmf/
unzip mdcore.zip

Now do the same with mdput.zip, mdugm.zip, and mdbch.zip. You may now delete the four zip files.

3) Now refresh your texmf file database, by running an utility
   like "mktexlsr" or "texconfig rehash".

4) Update the configuration files of your favourite drivers
   (e.g. dvips, xdvi, yap, pdftex, etc.).

   On recent distributions, a script called 'updmap' does all the job
   for you. 

As before, this means you type these commands:

sudo texhash
sudo updmap --enable Map mdput.map
sudo updmap --enable Map mdugm.map
sudo updmap --enable Map mdbch.map

Before you can use it in Lyx, you'll need to do Edit > Reconfigure, quit & restart. Then edit the preamble...

To use the package, simply add the following line in the preamble of 
your source file:

\usepackage[supplier-typeface]{mathdesign}

Where supplier-typeface is one the following:

    adobe-utopia 
    urw-garamond
    bitsream-charter

... and check that it's working! Utopia should be installed be default, URW Garamond we installed above. Charter is available via the package charter but mathdesign doesn't seem to see it, I'm not sure why.

Adobe Minion: MinionPro + MnSymbol

Start with MnSymbol.

Go to http://www.ctan.org/tex-archive/help/Catalogue/entries/mnsymbol.html and click the box to download the zip.

Following its readme (under the "book on a page" icon):

cd ~/Desktop/mnsymbol/
latex MnSymbol.ins

Then:

(2) Copy all files with the suffix .mf into the directory

   .../texmf/fonts/source/public/MnSymbol/

(3) Copy the file MnSymbol.sty to

   .../texmf/tex/latex/MnSymbol/MnSymbol.sty

(4) Copy the documentation (MnSymbol.ps, MnSymbol.pdf, README) into the directory

   .../texmf/doc/latex/MnSymbol/

(5) If you also want to install the PostScript fonts (these are traced fonts
of low quality) copy

  o ps-fonts/MnSymbol.map into .../texmf/fonts/map/dvips/MnSymbol
  o ps-fonts/*.enc        into .../texmf/fonts/enc/dvips/MnSymbol
  o ps-fonts/*.pfb        into .../texmf/fonts/type1/public/MnSymbol

(6) Regenerate the file database.

meaning that you type these commands in the terminal window (it doesn't matter what folder you're in)

sudo texhash
sudo updmap --enable Map MnSymbol.map

Now for MinionPro

Run i-Installer and make sure you've got lcdftypetools.ii2 installed.

Download and install Adobe Reader (mine is 7.0.5). Go to Applications/Adobe Reader... and right-click (or ctrl-click) Adobe Reader, select Show Package Contents. Inside, navigate to Contents/MacOS/Resource/Font/ where you'll find four files MinionPro-Bold.otf ... MinionPro-Regular.otf . You can drag them into Font Book application to make them available to most programs. Drag copies to the desktop (hold down alt) for later use.

Aside: Note that this only gets you the basic four fonts (roman, italic, and their bold versions.) MinionPro also has a semi-bold and small caps, and comes in four different "optical sizes" (optimised for headings/body/footnotes etc.)

Brown has a site license for the whole Adobe Creative Suite 2, which comes bundled with the complete version of Minion. But unfortunately, what comes with CS2 is a mix of different versions, which means "you'll need to build font metrics yourself using source.tar.gz" (so I'm told.)

Following the instructions at http://www.ctan.org/tex-archive/fonts/minionpro/ :

o 002.000: This version is included in recent Acrobat Reader installations.
  
In all cases you need the archive:
  
o scripts.zip

For font version 002.000 we provide a single additional archive
containing everything else you need:

o base-v2.zip

Installing
==========

...

1) Unpack the scripts archive into some working directory:

2) Copy your OpenType font files into the otf directory.

3) Convert the OpenType fonts into Type1 format:

  $ ./convert-lcdf   (or ./convert-ff, or use some other program)

You can do (1) and (2) below with the finder, I made a folder on the desktop called scratch. Double-clicking scripts.zip generates a subfloder called scripts, whose contents you then drag into scratch.

You'll see that one of the things in scratch was a folder called otf, copy the four MinionPro-etc.otf files into that.

For (3) you'll need to open up the terminal and type

cd ~/Desktop/scratch
./convert-lcdf

(this is guaranteed to happen quicker on your mac than on mine.)

4) Copy the generated Type1 fonts into your local TeX tree:

5) Unpack the other archives directly into the TeX tree, for example:

Copy metrics-base-v2.zip into ~/Library/texmf (using the finder). Then, still in the scratch dir, type:

mkdir -p ~/Library/texmf/fonts/type1/adobe/MinionPro
cp pfb/*.pfb ~/Library/texmf/fonts/type1/adobe/MinionPro

cd ~/Library/texmf
unzip metrics-base-v2.zip

(the -p option tells mkdir to make all necessary directories, not only the last one.)

7) Add the line

  Map MinionPro.map

to your updmap.cfg. Refresh the file database and run updmap:

  $ mktexlsr
  $ updmap

For us, this means you type

sudo texhash
sudo updmap --enable Map MinionPro.map

(mktexlsr and texhash are much the same thing, or one is a link to the other, or something.) Then Edit > Reconfigure in LyX again.

9) You can find the documentation in

  /usr/share/teTeX/texmf-local/doc/latex/MinionPro/MinionPro.pdf

10) Happy TeXing!

The manual is also at online over here.

MinionPro has both upper- and lowercase numbers, each in both fixed- and variable-width. By default it will use lowercase variable-width numbers in text and in mathematics. You might want \usepackage[mathlf]{MinionPro} which will use uppercase ("lining") figures in equations. [mathlf,minionint] will also use a prettier integral symbol. The manual of course explains all the options.

Note that if you've got the full set of fonts, with optical sizes, you'll find that enabling them will increase the size of your PDF output by a few hundred k. (Because many more character shapes are then embedded in the file.) But you can easily not use them when this is a concern.

Others

Arev Sans should be easy to figure out from this.

Adobe Garamond Pro is also bundled with CS2, and I think I should now be able to figure out how to install Zapad using convert-lcdf as above. (It also coms as .otf, needing conversion to postrscript type 1.) Then follow Zapad's instructions.

 

 

Updated 24 June, 2006

Up home to my home page     
or back to my LaTeX page