[OS X TeX] Lucida and MathTime installation instructions: (1) Lucida
Bruno Voisin
bvoisin at mac.com
Wed Jan 17 03:01:48 CET 2007
Here are installation instructions for the Lucida Bright and Lucida
New Math fonts, on the two most recent OS X TeX distributions to
date: gwTeX installed via i-Installer, and TeXLive-2007 (the full
version) installed via MacTeX.
The instructions are aimed primarily at people who purchased the
fonts at the time of their original release circa 1995, most likely
from Blue Sky Research (the makers of Textures), and who can't or
won't update for now.
For those who can or will, it makes more sense to update, by
purchasing the current version of the fonts from either TUG <http://
tug.org/store/lucida/> or PCTeX <http://www.pctex.com/
Lucida_Fonts.html>. For one thing, with the update you'll get the
Euro symbol missing from the original fonts, as well as correction of
any bug that may have been found in the fonts in the meantime.
In addition, the PCTeX version includes a reworked LaTeX support
package lucimatx, supposedly more versatile and more advanced than
the standard package lucidabr from TUG; see <http://www.pctex.com/
files/managed/b/bf/lucimatxAbbrev.pdf>. I've not updated yet, and I'm
not sure to what extent that statement is true, but I'm curious to
try. For example, lucimatx is said to allow the choice between
nonlinear scaling of the font with size (as lucidabr does), or linear
scaling, or no scaling at all.
Now let the fun begin! In all the following:
- It's assumed the reader has enough familiarity with the command-
line to (i) use the commands cd to navigate through directories,
mkdir to create directories, mv to move or rename files or
directories, cp to copy them and rm to erase them, and (ii) preface
these commands by sudo whenever read-only files and directories are
affected. For those who haven't this familiarity, I recommend
installing ManOpen <http://www.clindberg.org/projects/ManOpen.html>
and reading the associated man pages in it.
- TexmfLocal is used as a shorthand to the system-wide local texmf
tree, namely, for gwTeX and TeXLive, respectively,
/usr/local/gwTeX/texmf.local
/usr/local/texlive/texmf-local
This tree will be used to install the fonts. It's possible, of
course, to perform the installation in the user-specific local texmf
tree ~/Library/texmf, in which case neither the above command (cd,
mkdir, mv, cp and rm) nor the command mktexlsr below will be
necessary, and "sudo -H updmap-sys" will be replaced by "sudo updmap-
sys". For consistency I recommend, however, installation in
TexmfLocal whenever possible.
1. Conversion of the fonts to .pfb format
=========================================
Those, like me, who purchased the fonts from Blue Sky Research got
floppies with resource-fork PostScript files, in LWFN format.
Preliminary conversion to .pfb format is necessary, as well as
renaming of the files.
We use t1unmac, part of every TeX distribution. Place all the LWFN
font files in a folder, open Terminal, use cd to navigate to this
folder and type (each line followed by Return):
t1unmac -r LucidBla/rsrc lbl.pfb
t1unmac -r LucidBri/rsrc lbr.pfb
t1unmac -r LucidBriDem/rsrc lbd.pfb
t1unmac -r LucidBriDemIta/rsrc lbdi.pfb
t1unmac -r LucidBriIta/rsrc lbi.pfb
t1unmac -r LucidBriObl/rsrc lbsl.pfb
t1unmac -r LucidCalIta/rsrc lbc.pfb
t1unmac -r LucidFax/rsrc lfr.pfb
t1unmac -r LucidFaxDem/rsrc lfd.pfb
t1unmac -r LucidFaxDemIta/rsrc lfdi.pfb
t1unmac -r LucidFaxIta/rsrc lfi.pfb
t1unmac -r LucidHanIta/rsrc lbh.pfb
t1unmac -r LucidNewMatAltIta/rsrc lbmo.pfb
t1unmac -r LucidNewMatArr/rsrc lbma.pfb
t1unmac -r LucidNewMatExt/rsrc lbme.pfb
t1unmac -r LucidNewMatIta/rsrc lbmi.pfb
t1unmac -r LucidNewMatSym/rsrc lbms.pfb
t1unmac -r LucidSan/rsrc lsr.pfb
t1unmac -r LucidSanDem/rsrc lsd.pfb
t1unmac -r LucidSanDemIta/rsrc lsdi.pfb
t1unmac -r LucidSanIta/rsrc lsi.pfb
t1unmac -r LucidSanTyp/rsrc lstr.pfb
t1unmac -r LucidSanTypBol/rsrc lstb.pfb
t1unmac -r LucidSanTypBolObl/rsrc lstbo.pfb
t1unmac -r LucidSanTypObl/rsrc lsto.pfb
t1unmac -r LucidBriSma/rsrc lbrsc.pfb
t1unmac -r LucidBriSmaDem/rsrc lbdsc.pfb
t1unmac -r LucidCas/rsrc lbkr.pfb
t1unmac -r LucidCasIta/rsrc lbki.pfb
t1unmac -r LucidNewMatAltDemIta/rsrc lbmdo.pfb
t1unmac -r LucidNewMatArrDem/rsrc lbmad.pfb
t1unmac -r LucidNewMatDem/rsrc lbmd.pfb
t1unmac -r LucidNewMatDemIta/rsrc lbmdi.pfb
t1unmac -r LucidNewMatRom/rsrc lbmr.pfb
t1unmac -r LucidNewMatSymDem/rsrc lbmsd.pfb
t1unmac -r LucidSanBol/rsrc lsb.pfb
t1unmac -r LucidSanBolIta/rsrc lsbi.pfb
t1unmac -r LucidTyp/rsrc lbtr.pfb
t1unmac -r LucidTypBol/rsrc lbtb.pfb
t1unmac -r LucidTypBolObl/rsrc lbtbo.pfb
t1unmac -r LucidTypObl/rsrc lbto.pfb
The first group corresponds to the 25 standard fonts and the second
group to the 16 expert fonts, sold as two separate sets by Blue Sky
Research.
Move the .pfb files to TexmfLocal/fonts/type1/bh/lucida/ (using mkdir
to create directories as needed).
2. Installation of the LaTeX support package
============================================
The LaTeX package psnfss-luc (aka lucidabr) is included in both gwTeX
and TeXLive, but in a version (4.2) slightly older than that (4.3) on
CTAN. Hence, retrieve the newer version from CTAN at <ftp://
tug.ctan.org/pub/tex-archive/macros/latex/contrib/psnfssx/
lucidabr.zip> and then:
- Run LaTeX on lucidabr.ins.
- Move the .sty and .fd files to TexmfLocal/tex/latex/lucidabr/, namely:
lmrhlcm.fd
lucidbrb.sty
lucmtime.sty
omlhlh.fd
omxhlcv.fd
lucbmath.sty
lucidbry.sty
luctime.sty
omshlcy.fd
lucidabr.sty
lucmin.sty
omlhlcm.fd
omshlh.fd
- Move the documentation files to TexmfLocal/doc/latex/lucidabr/,
namely:
lucfont.tex
lucida-amsmath.pdf
lucida-amsmath.tex
lucida-oneline-samples.tex
lucida-sample.pdf
lucida-sample.tex
lucidabr.pdf
README.TUG
You can then erase the rest of the content of lucidabr.zip: it won't
be needed any more.
3. Installation of the LaTeX-style metrics and map files
========================================================
The LaTeX-style metrics and map files for Lucida are no longer part
of either gwTeX or TeXLive, but remain available on CTAN. Hence,
retrieve them from CTAN at <ftp://tug.ctan.org/pub/tex-archive/fonts/
psfonts/bh/lucida.zip> and then:
- Install the .afm files: move the content of fonts/afm/bh/lucida/ to
TexmfLocal/fonts/afm/bh/lucida/.
- Install the .tfm files: move the content of fonts/tfm/bh/lucida/ to
TexmfLocal/fonts/tfm/bh/lucida/.
- Install the .vf files: move the content of fonts/vf/bh/lucida/ to
TexmfLocal/fonts/vf/bh/lucida/.
- Install the .map file: move the file fonts/map/dvips/lucida.map to
TexmfLocal/fonts/map/dvips/lucida/lucida.map.
- Install the .fd files: move the content of tex/latex/lucida/ to
TexmfLocal/tex/latex/lucida/.
- Install the documentation files: move the content of doc/fonts/
lucida/ to TexmfLocal/doc/fonts/lucida/.
- Update the kpathsea database, and the global map files such as
psfonts.map, pdftex.map, dvipdfm.map and ps2pk.map. We use mktexlsr
(= texhash) for the first task, and updmap-sys for the second. In
Terminal, type:
sudo mktexlsr
sudo -H updmap-sys --enable Map lucida.map
You can then erase the rest of the content of lucida.zip: it won't be
needed any more.
4. Installation of the plain-TeX-style metrics and map files
============================================================
For people who would like to be able to re-process their old TeX
files, or who are using the Lucida fonts in plain TeX with the
original Y&Y macro files (such as lcdplain.tex and amssymlb.tex),
something is missing: the original metrics, using the original Y&Y
font names such as lbr instead of the Karl-Berry-style names such as
hlhr8y. Nothing is lost though, as the Karl-Berry-style metrics such
as hlhr8y.tfm turn out to be the original Y&Y metrics such as lbr.tfm
with only the name changed; see "How this collection was created" in
TexmfLocal/doc/fonts/lucida/readme.lucida. Hence, all that remains is
setting the correspondence between the two naming schemes.
In gwTeX, the problem is solved by using the "aliases" file of teTeX,
actually /usr/local/gwTeX/texmf.texlive/aliases, making lbr.tfm an
alias of hlhr8y.tfm and so forth.
For TeXLive, there is no aliases file built-in; the functionality
exists, but the aliases file has been suppressed. Says Karl Berry
(TUG president and TeXLive maintainer):
> TL has alias file support (it's part of kpathsea), but I removed the
> actual alias files. They seemed to cause a lot more confusion than
> they
> solved.
We'll use symlinks instead. Navigate to the directory TexmfLocal/
fonts/tfm/bh/lucida/ and type:
sudo ln -s hlcbot8y.tfm lbtbo.tfm
sudo ln -s hlcbt8y.tfm lbtb.tfm
sudo ln -s hlcda.tfm lbmad.tfm
sudo ln -s hlcdim.tfm lbmdi.tfm
sudo ln -s hlcdima.tfm lbmdo.tfm
sudo ln -s hlcdm.tfm lbmd.tfm
sudo ln -s hlcdy.tfm lbmsd.tfm
sudo ln -s hlcra.tfm lbma.tfm
sudo ln -s hlcrf8y.tfm lbl.tfm
sudo ln -s hlcrie8y.tfm lbc.tfm
sudo ln -s hlcrim.tfm lbmi.tfm
sudo ln -s hlcrima.tfm lbmo.tfm
sudo ln -s hlcrin8y.tfm lbki.tfm
sudo ln -s hlcriw8y.tfm lbh.tfm
sudo ln -s hlcrm.tfm lbmr.tfm
sudo ln -s hlcrn8y.tfm lbkr.tfm
sudo ln -s hlcrot8y.tfm lbto.tfm
sudo ln -s hlcrt8y.tfm lbtr.tfm
sudo ln -s hlcrv.tfm lbme.tfm
sudo ln -s hlcry.tfm lbms.tfm
sudo ln -s hlhb8y.tfm lbd.tfm
sudo ln -s hlhbc8y.tfm lbdsc.tfm
sudo ln -s hlhbi8y.tfm lbdi.tfm
sudo ln -s hlhr8y.tfm lbr.tfm
sudo ln -s hlhrc8y.tfm lbrsc.tfm
sudo ln -s hlhri8y.tfm lbi.tfm
sudo ln -s hlhro8y.tfm lbsl.tfm
sudo ln -s hlsb8y.tfm lsd.tfm
sudo ln -s hlsbi8y.tfm lsdi.tfm
sudo ln -s hlsbot8y.tfm lstbo.tfm
sudo ln -s hlsbt8y.tfm lstb.tfm
sudo ln -s hlsr8y.tfm lsr.tfm
sudo ln -s hlsri8y.tfm lsi.tfm
sudo ln -s hlsrot8y.tfm lsto.tfm
sudo ln -s hlsrt8y.tfm lstr.tfm
sudo ln -s hlsu8y.tfm lsb.tfm
sudo ln -s hlsui8y.tfm lsbi.tfm
sudo ln -s hlxb8y.tfm lfd.tfm
sudo ln -s hlxbi8y.tfm lfdi.tfm
sudo ln -s hlxr8y.tfm lfr.tfm
sudo ln -s hlxri8y.tfm lfi.tfm
Next the global map files need to be updated, by adding entries for
the added metrics. teTeX created map files lucidabr-o.map and lumath-
o.map specially for this. gwTeX includes them inside /usr/local/gwTeX/
texmf.texlive/fonts/map/dvips/tetex/. TeXLive doesn't. For it, there
are two ways to proceed:
- Either retrieve teTeX from CTAN at <ftp://tug.ctan.org/pub/tex-
archive/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz> and
then add the files
fonts/map/dvips/tetex/lucidabr-o.map
fonts/map/dvips/tetex/lumath-o.map
to TexmfLocal/fonts/map/dvips/lucida/. (If you plan to install the
MathTime fonts as well, keep the teTeX archive around: it will prove
useful later.)
- Or recreate the files, by creating lucidabr-o.map with content:
lbc LucidaCalligraphy-Italic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbc.pfb
lbd LucidaBright-Demi "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lbd.pfb
lbdi LucidaBright-DemiItalic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbdi.pfb
lbdsc LucidaBrightSmallcaps-Demi "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbdsc.pfb
lbh LucidaHandwriting-Italic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbh.pfb
lbi LucidaBright-Italic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbi.pfb
lbki LucidaCasual-Italic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbki.pfb
lbkr LucidaCasual "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lbkr.pfb
lbl LucidaBlackletter "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lbl.pfb
lbr LucidaBright "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <lbr.pfb
lbrsc LucidaBrightSmallcaps "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbrsc.pfb
lbsl LucidaBright-Oblique "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbsl.pfb
lbtb LucidaTypewriterBold "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbtb.pfb
lbtbo LucidaTypewriterBoldOblique "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbtbo.pfb
lbto LucidaTypewriterOblique "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lbto.pfb
lbtr LucidaTypewriter "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lbtr.pfb
lfd LucidaFax-Demi "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lfd.pfb
lfdi LucidaFax-DemiItalic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lfdi.pfb
lfi LucidaFax-Italic "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lfi.pfb
lfr LucidaFax "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <lfr.pfb
lsb LucidaSans-Bold "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lsb.pfb
lsbi LucidaSans-BoldItalic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lsbi.pfb
lsd LucidaSans-Demi "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lsd.pfb
lsdi LucidaSans-DemiItalic "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lsdi.pfb
lsi LucidaSans-Italic "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
<lsi.pfb
lsr LucidaSans "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <lsr.pfb
lstb LucidaSans-TypewriterBold "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lstb.pfb
lstbo LucidaSans-TypewriterBoldOblique "TeXnANSIEncoding
ReEncodeFont" <texnansi.enc <lstbo.pfb
lsto LucidaSans-TypewriterOblique "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lsto.pfb
lstr LucidaSans-Typewriter "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <lstr.pfb
and lumath-o.map with content:
lbma LucidaNewMath-Arrows <lbma.pfb
lbmad LucidaNewMath-Arrows-Demi <lbmad.pfb
lbmd LucidaNewMath-Demibold <lbmd.pfb
lbmdi LucidaNewMath-DemiItalic <lbmdi.pfb
lbmdo LucidaNewMath-AltDemiItalic <lbmdo.pfb
lbme LucidaNewMath-Extension <lbme.pfb
lbmi LucidaNewMath-Italic <lbmi.pfb
lbmo LucidaNewMath-AltItalic <lbmo.pfb
lbmr LucidaNewMath-Roman <lbmr.pfb
lbms LucidaNewMath-Symbol <lbms.pfb
lbmsd LucidaNewMath-Symbol-Demi <lbmsd.pfb
Now is time to update the kpathsea database and the global map files.
In Terminal, type:
sudo mktexlsr
sudo -H updmap-sys --enable Map lucidabr-o.map
sudo -H updmap-sys --enable Map lumath-o.map
5. Installation of the plain TeX support macros
===============================================
The original Y&Y plain TeX support macros for the Lucida fonts used
to be available on CTAN and in teTeX up to and including version 2.
Unfortunately, they have been removed in version 3 due to licensing
issues. Hence, you'll have to use the macros from your original
Lucida font distribution.
In case you got the fonts from Blue Sky Research, the floppies have
TeX Inputs folders containing:
- Font-specific macro files such as lcdplain.tex (adapting plain TeX)
and amssymlb.tex (adapting amssym.tex).
- Encoding-specific macro files such as texnansi.tex, stanacce.tex
and macacce.tex.
- Test files such as accentst.tex, amstest.tex, mathtest.tex and
torture.tex.
I've never quite understood the role of the encoding-specific macro
files. It seems they are not used at all by lcdplain.tex and
amssymlb.tex (the lines calling them are commented out), but I prefer
to keep them around just in case. If you get awkward results with the
fonts, you may try to uncomment the lines calling the encoding-
specific files, and experiment until you identify which encoding
gives satisfactory results.
Move the files afterwards to the corresponding places inside the
TexmfLocal tree:
- Font-specific macro files to TexmfLocal/tex/plain/lucida/.
- Encoding-specific macro files to TexmfLocal/tex/plain/yandy/.
- Test files tp TexmfLocal/doc/plain/lucida/.
And finally update the kpathsea database again:
sudo mktexlsr
You're done!
Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list