Thursday, September 6, 2007

LaTeX bold typewriter fonts for listings

LuxiMono package

Thanks to xemacs for his update!

### Get and unpack the font archive
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'`
sudo mkdir -p `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/luxi
sudo mv `kpsexpand '$TEXMFLOCAL'`/dvips/config/ `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/luxi
sudo rm -rf `kpsexpand '$TEXMFLOCAL'`/dvips
sudo texhash
sudo updmap-sys --enable Map

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


XEmacs said...

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

leo said...

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

leo said...

@xemacs: I've changed the
unzip -l
at the beginning to
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/ `kpsexpand '$TEXMFLOCAL'`/fonts/map/dvips/config

leo said...

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