latex font

The styles are categorized into family, series, and shape. The typestyle in the output is composed of these three characteristics.

The table for the styles is given below:

Style command
Roman \textrm{roman}
Typewriter \texttt{typewriter}
Sans serif \textsf{sans serif}

The table for the series is given below:

Style command
boldface \textbf{boldface}
medium \textmd{medium}

The table for the shape is given below:

Style command
italic \textit{italic}
slanted \textsl{slanted}
upright \textup{upright}
SMALL CAP \textsc{small cap]

 

The common font families are listed below:

Font Families Full Form
cmm Computer Modern Italic
cmsy Computer Modern Symbols
cmex Computer Modern Extensions
cmr Computer Modern Roman
cmss Computer Modern Sans
cmtt Computer Modern Typewriter
ptm Adobe Times
phv Adobe Helvetica
pcr Adobe Courier

The standard supported for the weights and width for the font series are listed in the table below:

sb- Semi Bold

ub- Ultra Bold

b- Bold

eb- Extra Bold

ul- Ultra Light

el- Extra Light

l- Light

sl- Semi Light

m- Medium (normal)

Standard Full-form % Percentage
uc Ultra Condensed 50%
ec Extra Condensed 62.5%
c Condensed 75%
sc Semi Condensed 87.5%
x Expanded 125%
ex Extra Expanded 150%
ux Ultra Expanded 200%
m Medium 100%
sx Semi Expanded 112.5%

 

Font sizes

Command Output
\tiny latex font
\scriptsize latex font
\footnotesize latex font
\small latex font
\normalsize latex font
\large latex font
\Large latex font
\LARGE latex font
\huge latex font
\Huge latex font

Default font families

typeface = family command switch command output
serif (roman) \textrm{Sample Text 0123} \rmfamily latex font
sans serif \textsf{Sample Text 0123} \sffamily latex font
typewriter (monospace) \texttt{Sample Text 0123} \ttfamily latex font

Font styles

style command switch command output
medium \textmd{Sample Text 0123} \mdseries latex font
bold \textbf{Sample Text 0123} \bfseries latex font
upright \textup{Sample Text 0123} \upshape latex font
italic \textit{Sample Text 0123} \itshape latex font
slanted \textsl{Sample Text 0123} \slshape latex font
small caps \textsc{Sample Text 0123} \scshape latex font
上一篇:Imprecise Computer - ( 思维 / 递推 )


下一篇:建造者模式(Builder Pattern)