Prev Next latexfont

Changing Latex Font
Syntax $latex font $$

Description
XML dependently interpret the Latex font command 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.

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

Arrays
Latex Font commands that appear with in an entry in an array are limited to that entry in the array. For example, the input
 
	$latex
	\[
		\begin{array}{cc}
			\bf \sqrt{x y} & \sqrt{x y } \\
			\sqrt{x y}     & \sqrt{x y }
		\end{array}
	\]
	$$
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