blob: 247592d996783f2e8571b08eede6c75d58beda38 (
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
50
51
52
53
|
% Example and test for the substitutefont package:
\documentclass{minimal}
\usepackage{parskip}
\usepackage[LGR,T1]{fontenc}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet} % scaled to fit Times
\usepackage{courier}
\usepackage{substitutefont}
% Use CMR (actually the CB-Fonts) instead of Times/Helvetica/Courier
% for Greek text (LGR font encoding):
\substitutefont{LGR}{ptm}{cmr}
\substitutefont{LGR}{phv}{cmss}
\substitutefont{LGR}{pcr}{cmtt}
% Teststring
\newcommand{\alphabet}{{\fontencoding{LGR}\selectfont
ABGDEZHJIKLMNXOPRSTUFQYW
abgdezhjiklmnxoprsctufqyw
}}
\begin{document}
Times/Helvetica/Courier with CB for Greek text. (There are better
alternatives, but this example shall demonstrate the package without further
non-standard dependencies.)\\
Normal: \alphabet
Italic: \textit{\alphabet}
Slanted: \textsl{\alphabet}
Bold: \textbf{\alphabet}
Bold Italic: \textbf{\textit\alphabet}
Small-Caps: \textsc{\alphabet}
Bold SC: \textsc{\textbf\alphabet}
Sans-serif: \textsf{\alphabet}
Bold Sans-serif: \textsf{\textbf\alphabet}
Sans-serif Slanted: \textsf{\textsl\alphabet}
Sans-serif SC: \textsf{\textsc\alphabet}
Monospaced: \texttt{\alphabet}
\end{document}
|