Saturday, September 12, 2009

How to Add RSFS Type 1 Fonts to LaTeX

Ralph Smith's Formal Script Font is included in the latest MikTeX for Windows (accessed via WinEdt), loaded using

\usepackage{mathrsfs}

and accessed using, for example,

\mathscr{F}

to produce a script F. However, for TeX Live (or the legacy TeTeX) on Debian Linux (Lenny), this did not immediately work for me (though it did on Fedora 11), whether using Emacs or Kile and loading and accessing as above or using

\scr{F}

After some searching around on the web, I found out how to add them to my LaTeX installations on Debian (or more accurately, how to LaTeX my documents requesting Ralph Smith's script fonts withour errors). If anyone else finds these notes useful, that is all the better. Corrections and comments welcome.
  1. Download the files in the type1 subdirectory for the rsfs package from your CTAN mirror. You can also download the entire directory as rsfs.zip, though we shall just need the type1 subdirectory. (You may prefer to download this package from the rsfs page on the TeX Catalogue Online.)
  2. Download the files mathrsfs.sty, usrsfs.fd, and (optional) mathrsfs.rme (readme) files from jknappen on CTAN. You can also download the entire directory as jknappen.zip though we shall just need the *.sty and *.fd files. (You may prefer to download these files from the jknappen page on the TeX Catalogue Online.)
  3. Follow steps 1-4 of these MikTeX font installation instructions, except that there are no *.tfm files in the rsfs package and while *pfm files are provided, it is not specified where to place them. I copied them to my TeTeX installation, but that did not appear necessary. Specifically:

    • Create an rsfs type1 subdirectory and copy the *.pfb files there:

    /usr/share/texmf/fonts/type1/rsfs

    • Create an rsfs afm subdirectory and copy the *.afm files there:

    /usr/share/texmf/fonts/afm/rsfs

    • Create an rsfs dvips subdirectory and copy the rsfs.map file there:

    /usr/share/texmf/fonts/map/dvips/rsfs

    • There are no *.tfm files provided by the rsfs package on CTAN, so nothing to copy to

    /usr/share/texmf/fonts/tfm

    • The *.pfm files provided by the rsfs package on CTAN did not seem necessary and where to place them was not specified, so I put them in

    /usr/share/texmf/fonts/type1/rsfs

    • Copy the mathrsfs.sty file to

    /usr/share/texmf-texlive/tex/latex/ltxmisc/mathrsfs.sty

    or create a subdirectory, mathrsfs, of

    /usr/share/texmf-texlive/tex/latex/

    and copy the mathrsfs.sty file to

    /usr/share/texmf-texlive/tex/latex/mathrsfs/mathrsfs.sty

    • Copy the ursfs.fd file to

    /usr/share/texmf-texlive/tex/latex/psnfss/

  4. In a command line (as root), install the style file by running


  5. # mktexlsr



  6. LaTeX your document and verify the new font installation.

I am not sure whether I needed to install the rsfs font files, or simply the mathrsfs.sty and ursfs.fd files and run mktexlsr. My TeX Live subdirectory did contain rsfs fonts already (unlike TeTeX), but not the mathrsfs.sty or ursfs.fd files.