<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <META name="GENERATOR" content="hevea 1.10"> <META name="Author" content="Luc Maranget"> <LINK rel="stylesheet" type="text/css" href="manual.css"> <TITLE>Font Selection</TITLE> </HEAD> <BODY > <A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A> <A HREF="manual022.html"><IMG SRC="contents_motif.gif" ALT="Up"></A> <A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A> <HR> <H2 CLASS="section"><A NAME="htoc118">B.15</A>  Font Selection</H2><UL> <LI><A HREF="manual037.html#toc92">Changing the Type Style</A> </LI><LI><A HREF="manual037.html#toc93">Changing the Type Size</A> </LI><LI><A HREF="manual037.html#toc94">Special Symbols</A> </LI></UL> <H3 CLASS="subsection"><A NAME="toc92"></A><A NAME="htoc119">B.15.1</A>  Changing the Type Style</H3><P><A NAME="type-style"></A> All L<sup>A</sup>T<sub>E</sub>X 2є declarations and environments for changing type style are recognized. Aspect is rather like L<sup>A</sup>T<sub>E</sub>X 2є output, but there is no guarantee.</P><P>As HTML does not provide the same variety of type styles as L<sup>A</sup>T<sub>E</sub>X, some type style get rendered by using colors. For instance, the slanted shape yields maroon italics. Hence, the following source “<CODE>{\slshape slanted shape} {\scshape small caps shape}</CODE>” yields: “<FONT COLOR=maroon><I>slanted shape</I></FONT> <SPAN STYLE="font-variant:small-caps">small caps shape</SPAN>” Here is how H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A implements text-style declarations by default: </P><DIV CLASS="center"> <TABLE CELLSPACING=6 CELLPADDING=0><TR><TD VALIGN=top ALIGN=left><TABLE CELLSPACING=6 CELLPADDING=0><TR><TD CLASS="hbar" COLSPAN=3></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\itshape</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><I>italics</I></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\slshape</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><FONT COLOR=maroon><I>maroon italics</I></FONT></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\scshape</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><SPAN STYLE="font-variant:small-caps">small caps</SPAN></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\upshape</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP>no style</TD></TR> <TR><TD CLASS="hbar" COLSPAN=3></TD></TR> </TABLE></TD><TD VALIGN=top ALIGN=left><TABLE CELLSPACING=6 CELLPADDING=0><TR><TD CLASS="hbar" COLSPAN=3></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\ttfamily</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><TT>typewriter font</TT></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\sffamily</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><FONT COLOR=purple>purple</FONT></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\rmfamily</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP>no style</TD></TR> <TR><TD CLASS="hbar" COLSPAN=3></TD></TR> </TABLE></TD><TD VALIGN=top ALIGN=left><TABLE CELLSPACING=6 CELLPADDING=0><TR><TD CLASS="hbar" COLSPAN=3></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\bfseries</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP><B>bold</B></TD></TR> <TR><TD ALIGN=left NOWRAP><CODE>\mdseries</CODE></TD><TD VALIGN=top ALIGN=center NOWRAP>  </TD><TD ALIGN=left NOWRAP>no style</TD></TR> <TR><TD CLASS="hbar" COLSPAN=3></TD></TR> </TABLE></TD></TR> </TABLE> </DIV><P> Text-style commands also exists, they are defined as <CODE>\mbox{\</CODE><I>decl</I>…<CODE>}</CODE>. For instance, <CODE>\texttt</CODE> is defined as a command with one argument whose body is <CODE>\mbox{\ttfamily#1}</CODE>. Finally, the <CODE>\emph</CODE> command for emphasized text also exists.</P><P>As in L<sup>A</sup>T<sub>E</sub>X, type styles consists in three components: <EM>shape</EM>, <EM>series</EM> and <EM>family</EM>. However this distinction does not exist in HTML: one specifies a type style and that’s all. H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A implements the three components by making one declaration to cancel the effect of other declarations of the same kind. For instance consider the following source, that exhibits shape changes: </P><PRE CLASS="verbatim">{\itshape italic shape \slshape slanted shape \scshape small caps shape \upshape upright shape} </PRE><P>Then, in the rendering below, “small caps shape” apears in small caps shape only and not in italics: </P><BLOCKQUOTE CLASS="quote"><HR NOSHADE SIZE=1 ALIGN=center> <I>italic shape <FONT COLOR=maroon>slanted shape </FONT></I><SPAN STYLE="font-variant:small-caps">small caps shape </SPAN>upright shape <HR NOSHADE SIZE=1 ALIGN=center></BLOCKQUOTE><P>Old style declarations are also recognized, they translate to text-level elements. However, no elements are canceled when using old style declaration. Thus, the source “<CODE>{\sl\sc slanted and small caps}</CODE>” yields maroon “slanted” small caps : “<FONT COLOR=maroon><I><SPAN STYLE="font-variant:small-caps">slanted and small caps</SPAN></I></FONT>”. Users need probably not worry about this. However this has an important practical consequence: to change the default rendering of type styles, one should redefine old style declaration in order to benefit from the cancelation mechanism. See section <A HREF="manual020.html#customize-style">10.2</A> for a more thorough description.</P><H3 CLASS="subsection"><A NAME="toc93"></A><A NAME="htoc120">B.15.2</A>  Changing the Type Size</H3><P> All declarations, from <CODE>\tiny</CODE> to <CODE>\Huge</CODE> are recognized. Output is not satisfactory inside headers elements generated by sectioning commands.</P><H3 CLASS="subsection"><A NAME="toc94"></A><A NAME="htoc121">B.15.3</A>  Special Symbols</H3><P>The <CODE>\symbol{</CODE><I>num</I><CODE>}</CODE> outputs character number <I>num</I> (decimal) from the Unicode character set. This departs from L<sup>A</sup>T<sub>E</sub>X, which output symbol number <I>num</I> in the current font.</P><HR> <A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A> <A HREF="manual022.html"><IMG SRC="contents_motif.gif" ALT="Up"></A> <A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A> </BODY> </HTML>