Prev Next latexfont

Changing Latex Font

$latex font $$

Display in Latex using the specified font where font is one of the commands in the following table:
font    Meaning    Example
default @(@ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
\bf bold @(@ \bf abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
\rm roman @(@ \rm abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
\tt typewriter @(@ \tt abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
\cal calligraphic @(@ \cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
\sf sans serif @(@ \sf abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @)@
Note that these font commands affect all output text and this is different from the description in Section 3.3.8 of Lamport's book . Also note that, in Firefox, the \cal commands does not display properly do to a bug in it's mathvariant display.

Latex font commands are terminated by their enclosing braces. For example, the input
     { abc \bf abc }  abc
results in the following output @[@ { abc \bf abc } abc @]@ Note that the bold font is terminate by the }.

Latex Font commands that appear with in an entry in an array are limited to that entry in the array. For example, the input
               \bf \sqrt{x y} & \sqrt{x y } \\
               \sqrt{x y}     & \sqrt{x y }
results in the following output @[@ \begin{array}{cc} \bf \sqrt{x y} & \sqrt{x y } \\ \sqrt{x y} & \sqrt{x y } \end{array} @]@
Input File: latex/latexfont.omh