next up previous contents
Next: Declaring math symbols Up: Math fonts Previous: Declaring math alphabets

Declaring symbol fonts

 


\DeclareSymbolFont {<sym-font-name>} {<encoding>} {<family>} {<series>} {<shape>}

Defines <sym-font-name> to be a new symbol font.

The arguments <encoding> <family> <series> <shape> are the default values for this symbol font in all math versions; these can be reset later for a particular math version by a \SetSymbolFont command.

Checks that <sym-font-name> can be used and that <encoding> is a declared encoding scheme.

For example, the following sets up the first four standard math symbol fonts:

   \DeclareSymbolFont{operators}{OT1}{cmr}{m}{n}
   \DeclareSymbolFont{letters}{OML}{cmm}{m}{it}
   \DeclareSymbolFont{symbols}{OMS}{cmsy}{m}{n}
   \DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}


\SetSymbolFont {<sym-font-name>} {<version name>}
{<encoding>} {<family>} {<series>} {<shape>}

Changes the symbol font <sym-font-name> for math version <version name> to <encoding> <family> <series> <shape>.

Checks that <sym-font-name> is a symbol font, <version name> is a known math version and <encoding> is a declared encoding scheme.

For example, the following come from the set up of the `bold' math version:

   \SetSymbolFont{operators}{bold}{OT1}{cmr}{bx}{n}
   \SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}


\DeclareSymbolFontAlphabet {<math-alph>} {<sym-font-name>}

Allows the previously declared symbol font <sym-font-name> to be also the math alphabet <id> (in all math versions).

This declaration should be used in preference to \DeclareMathAlphabet and \SetMathAlphabet when a math alphabet is the same as a symbol font; this is because it makes better use of the limited number (only 16) of TeX's math groups.

Checks that <math-alph> can be defined and that <sym-font-name> is a symbol font.

Example:

   \DeclareSymbolFontAlphabet{\mathrm}{operators}
   \DeclareSymbolFontAlphabet{\mathcal}{symbols}



Rainer Schoepf
Thu Jul 31 16:42:26 MEST 1997