Document 572

The LaTeX fontsmpl package

Version: 4.x & 5.x - Scientific WorkPlace, Scientific Word, & Scientific Word

The fontsmpl package produces a test of a font family, such as Computer Modern or Times, showing the font in use in sample text, a table of contents, and a sample of commands. You can use the package to print a sample of the font currently in use in your document. Alternatively, you can open and typeset a sample document that produces a sample of the font family you indicate.

To print a sample of the font currently in use:

  1. Add the fontsmpl package to your document.

  2. Place the insertion point where you want to sample the font.

  3. Enter an encapsulated TeX field.

  4. Type \fontsample and choose OK.

  5. Typeset preview the document.

To produce a font sample with the sample document

  1. Open the file fontsmpl.tex in the TCITeX/TeX/LaTeX/required/tools directory.

  2. Typeset preview the document.

  3. When LaTeX prompts you for a font family, type the font family name, such as cmr for Computer Modern or times for Times Roman.

  4. Press Enter.

  5. Scroll through the document displayed in the TrueTeX Previewer to examine the appearance of the font.

The package has no options. See the package documentation for more information. The installation program places the package in the TCITeX/TeX/LaTeX/required/tools directory.

Last revised 01/20/06

This document was created with Scientific WorkPlace.