Random Tech Thoughts

The title above is not random


Getting TeX information

Run the following command:

tlmgr conf

Locations of various configuration files will be printed. Like updmap.cfg, TEXMFHOME (On OS X, ~/Library/texmf) path etc.

Useful Packages to install after installing BasicTeX

BasicTeX is a texlive distribution for OS X.

  • collection-bibtexextra
  • collection-fontsrecommended
  • marvosym
  • subfig
  • preprint
  • fontawesome

Adding customize font map file

Since texlive 2011, updmap uses config in ~/Library/texlive/2011basic/texmf-config/web2c/updmap.cfg. (Which is copied from /usr/local/texlive/2011basic/texmf-config/web2c/updmap.cfg if it does not exist when calling updmap.)

There are 2 ways to customize updmap.cfg as mentioned in the above file. One is to write the customized map entry in TEXMFLOCAL/web2c/updmap-local.cfg, and then call (sudo) tlmgr generate updmap. The entries in updmap-local.cfg will be added to the final updmap.cfg file.

Another way is to call updmap --enable Map=<foo.map>, this will add an entry in the updmap.cfg config file.

Because TEXMFLOCAL is under a specific version of TeXLive and will be deleted after upgrading TeXLive, so I just write my customize map file entries under TEXMFHOME. Just add these to updmap.cfg after upgrading. After that, run updmap.