Thursday, September 6, 2007

LaTeX bold typewriter fonts for listings

LuxiMono package

Thanks to xemacs for his update!

### Get and unpack the font archive
wget http://tug.ctan.org/fonts/LuxiMono.zip
unzip LuxiMono.zip
cd LuxiMono

### Install the files and call the font tools for the system
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/type1/public/luxi
sudo cp *.pfb `kpsexpand '$TEXMFLOCAL'`/fonts/type1/public/luxi
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/afm/public/luxi
sudo cp *.afm `kpsexpand '$TEXMFLOCAL'`/fonts/afm/public/luxi
sudo unzip -d `kpsexpand '$TEXMFLOCAL'` ul9.zip
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/luxi
sudo mv `kpsexpand '$TEXMFLOCAL'`/dvips/config/ul9.map `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/luxi
sudo rm -rf `kpsexpand '$TEXMFLOCAL'`/dvips
sudo texhash
sudo updmap-sys --enable Map ul9.map


### Clean up ...
cd ..
rm -rf LuxiMono

4 comments:

XEmacs said...

A slightly updated version that solved a problem on my Gutsy system:

http://www.kloss-familie.de/moin/Root/LatexFontInstall

leo said...

Thank you very much, xemacs! I will update my post using your HowTo.

leo said...

@xemacs: I've changed the
unzip -l LuxiMono.zip
at the beginning to
unzip LuxiMono.zip
since the first one only lists the files instead of extracting them.

I also had to add a
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/config
before the
sudo mv `kpsexpand '$TEXMFLOCAL'`/dvips/config/ul9.map `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/config
command.

leo said...

I've changed some more things.
sudo updmap-sys --enable Map ul9.map seems to work better on my system.