summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex
blob: 43ea44b17f25b5b089d48a8546f193f42364d7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Example and test for the substitutefont package:
\documentclass{minimal}
\usepackage{lmodern}
\usepackage{parskip}
\usepackage[T1]{fontenc}
\pagestyle{empty}

\usepackage{substitutefont}
\substitutefont{T1}{txtt}{cmtt}

% Teststring
\newcommand{\alphabet}{
ABGDEZHJIKLMNXOPRSTUFQYW
abgdezhjiklmnxoprsctufqyw
}

\begin{document}

The Computer Modern and Latin Modern fonts provide a monospaced font only in
upright shape. The \emph{txfonts} package comes with a nice monospaced font
in the common shapes and real small caps.\\


Normal: \alphabet

Italic: \textit{\alphabet}

Slanted: \textsl{\alphabet}

Bold: \textbf{\alphabet}

Bold Italic: \textbf{\textit\alphabet}

Small-Caps: \textsc{\alphabet}

Monospaced: \texttt{\alphabet}

Monospaced Bold: \texttt{\textbf \alphabet}

Monospaced Italic: \texttt{\textit \alphabet}

Monospaced Slanted: \texttt{\textsl \alphabet}

Monospaced Bold Slanted: \texttt{\textbf{\textit \alphabet}}

Monospaced Small-Caps: \texttt{\textsc \alphabet}


\end{document}