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 | |
| \scriptsize | |
| \footnotesize | |
| \small | |
| \normalsize | |
| \large | |
| \Large | |
| \LARGE | |
| \huge | |
| \Huge |
Default font families
| typeface = family | command | switch command | output |
|---|---|---|---|
| serif (roman) | \textrm{Sample Text 0123} |
\rmfamily |
|
| sans serif | \textsf{Sample Text 0123} |
\sffamily |
|
| typewriter (monospace) | \texttt{Sample Text 0123} |
\ttfamily |
Font styles
| style | command | switch command | output |
|---|---|---|---|
| medium | \textmd{Sample Text 0123} |
\mdseries |
|
| bold | \textbf{Sample Text 0123} |
\bfseries |
|
| upright | \textup{Sample Text 0123} |
\upshape |
|
| italic | \textit{Sample Text 0123} |
\itshape |
|
| slanted | \textsl{Sample Text 0123} |
\slshape |
|
| small caps | \textsc{Sample Text 0123} |
\scshape |

浙公网安备 33010602011771号