next up previous contents
Next: If you need to Up: Miscellanea Previous: Accented characters

Naming conventions

Whenever possible, you should use the series and shape names suggested in The LaTeX Companion since this will make it easier to combine new fonts with existing fonts.

Where possible, text symbols should be named as \text followed by the Adobe glyph name: for example \textonequarter or \textsterling. Similarly, math symbols should be named as \math followed by the glyph name, for example \mathonequarter or \mathsterling. Commands which can be used in text or math can then be defined using \ifmmode, for example:

   \DeclareRobustCommand{\pounds}{%
      \ifmmode \mathsterling \else \textsterling \fi
   }
Note that commands defined in this way must be robust, in case they get put into a section title or other moving argument.


next up previous contents
Next: If you need to Up: Miscellanea Previous: Accented characters

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