-
Notifications
You must be signed in to change notification settings - Fork 0
/
memfonts.sty
186 lines (159 loc) · 5.39 KB
/
memfonts.sty
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
% memfonts.sty font package for memoir
\ProvidesPackage{memfonts}
[2007/11/13 v1.0 Palatino/CMR font mix]
%%%% use Palatino as roman font (which includes italic and small caps)
\renewcommand{\rmdefault}{ppl}
\renewcommand{\oldstylenums}[1]{{\fontfamily{pplj}\selectfont #1}}
%%%\DeclareFontShape{T1}{ppl}{bx}{n}{<-> ssub * ppl/b/n}{}
%%%\DeclareFontShape{T1}{ppl}{bx}{sc}{<-> ssub * ppl/b/sc}{}
%%%\DeclareFontShape{OMS}{ppl}{m}{n}{<-> ssub * cmsy/m/n}{}
%%%%%%%%%% some other odd ones
%%%\DeclareFontShape{T1}{pbk}{m}{n}{<-> ssub pbk/l/n}{}
%%%% use Latin Modern for other fonts
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
%%%% scaled version of t1lmtt
\DeclareFontFamily{T1}{lmtt}{\hyphenchar \font\m@ne}
\DeclareFontShape{T1}{lmtt}{m}{n}
{<-8.5> s * [1.09] ec-lmtt8 <8.5-9.5> s * [1.09] ec-lmtt9
<9.5-11> s * [1.09] ec-lmtt10 <11-> s * [1.09] ec-lmtt12
}{}
\DeclareFontShape{T1}{lmtt}{m}{sl}
{<-> s * [1.09] ec-lmtto10}{}
\DeclareFontShape{T1}{lmtt}{m}{it}
{<-> s * [1.09] ec-lmtti10}{}
\DeclareFontShape{T1}{lmtt}{m}{sc}
{<-> s * [1.09] ec-lmtcsc10}{}
\DeclareFontShape{T1}{lmtt}{m}{scsl}
{<-> s * [1.09] ec-lmtcso10}{}
%%%% light (l), light condensed (lc), and dark (b) variants
\DeclareFontShape{T1}{lmtt}{l}{n}
{<-> s * [1.09] ec-lmtl10}{}
\DeclareFontShape{T1}{lmtt}{l}{sl}
{<-> s * [1.09] ec-lmtlo10}{}
\DeclareFontShape{T1}{lmtt}{l}{it}
{<->sub*lmtt/l/sl}{}
\DeclareFontShape{T1}{lmtt}{lc}{n}
{<-> s * [1.09] ec-lmtlc10}{}
\DeclareFontShape{T1}{lmtt}{lc}{sl}
{<-> s * [1.09] ec-lmtlco10}{}
\DeclareFontShape{T1}{lmtt}{lc}{it}
{<->sub*lmtt/lc/sl}{}
\DeclareFontShape{T1}{lmtt}{b}{n}
{<-> s * [1.09] ec-lmtk10}{}
\DeclareFontShape{T1}{lmtt}{b}{sl}
{<-> s * [1.09] ec-lmtko10}{}
\DeclareFontShape{T1}{lmtt}{b}{it}
{<->sub*lmtt/b/sl}{}
\DeclareFontShape{T1}{lmtt}{bx}{n}
{<->ssub*lmtt/b/n}{}
\DeclareFontShape{T1}{lmtt}{bx}{sl}
{<->ssub*lmtt/b/sl}{}
\DeclareFontShape{T1}{lmtt}{bx}{it}
{<->ssub*lmtt/b/sl}{}
%%%% scaled version of t1lmss
\DeclareFontFamily{T1}{lmss}{}
\DeclareFontShape{T1}{lmss}{m}{n}
{<-8.5> s * [1.07] ec-lmss8 <8.5-9.5> s * [1.07] ec-lmss9
<9.5-11> s * [1.07] ec-lmss10 <11-15.5> s * [1.07] ec-lmss12
<15.5-> s * [1.07] ec-lmss17
}{}
\DeclareFontShape{T1}{lmss}{m}{sl}
{<-8.5> s * [1.07] ec-lmsso8 <8.5-9.5> s * [1.07] ec-lmsso9
<9.5-11> s * [1.07] ec-lmsso10 <11-15.5> s * [1.07] ec-lmsso12
<15.5-> s * [1.07] ec-lmsso17
}{}
\DeclareFontShape{T1}{lmss}{m}{it}
{<->ssub*lmss/m/sl}{}
\DeclareFontShape{T1}{lmss}{m}{sc}
{<->sub*lmr/m/sc}{}
%%%%%%%%%%% semibold condensed
\DeclareFontShape{T1}{lmss}{sbc}{n}
{<-> s * [1.07] ec-lmssdc10}{}
\DeclareFontShape{T1}{lmss}{sbc}{sl}
{<-> s * [1.07] ec-lmssdo10}{}
\DeclareFontShape{T1}{lmss}{sbc}{it}
{<->ssub*lmss/sbc/sl}{}
%%%%%%%%%%%% bold extended
\DeclareFontShape{T1}{lmss}{bx}{n}
{<-> s * [1.07] ec-lmssbx10}{}
\DeclareFontShape{T1}{lmss}{bx}{sl}
{<-> s * [1.07] ec-lmssbo10}{}
\DeclareFontShape{T1}{lmss}{bx}{it}
{<->ssub*lmss/bx/sl}{}
\endinput
%%%%% scaled version of standard ot1cmtt.fd
\DeclareFontFamily{OT1}{cmtt}{\hyphenchar \font-1}
\DeclareFontShape{OT1}{cmtt}{m}{n}
{%
<5><6><7><8> s * [1.09] cmtt8<9> s * [1.09] cmtt9%
<10><10.95> s * [1.09] cmtt10%
<12><14.4><17.28><20.74><24.88> s * [1.09] cmtt12%
}{}
%%%%%% make sure subst shapes are available
\DeclareFontShape{OT1}{cmtt}{m}{it}
{%
<5><6><7><8><9>%
<10><10.95><12><14.4><17.28><20.74><24.88> s * [1.09] cmitt10%
}{}
\DeclareFontShape{OT1}{cmtt}{m}{sl}
{%
<5><6><7><8><9>%
<10><10.95><12><14.4><17.28><20.74><24.88> s * [1.09] cmsltt10%
}{}
\DeclareFontShape{OT1}{cmtt}{m}{sc}
{%
<5><6><7><8><9>%
<10><10.95><12><14.4><17.28><20.74><24.88> s * [1.09] cmtcsc10%
}{}
\DeclareFontShape{OT1}{cmtt}{m}{ui}
{<->ssub*cmtt/m/it}{}
\DeclareFontShape{OT1}{cmtt}{bx}{n}
{<->ssub*cmtt/m/n}{}
\DeclareFontShape{OT1}{cmtt}{bx}{it}
{<->ssub*cmtt/m/it}{}
\DeclareFontShape{OT1}{cmtt}{bx}{ui}
{<->ssub*cmtt/m/it}{}
%%%%% scaled version of standard ot1cmss.fd
\DeclareFontFamily{OT1}{cmss}{\hyphenchar\font45 }
\DeclareFontShape{OT1}{cmss}{m}{n}
{%
<5><6><7><8> s * [1.09] cmss8%
<9> s * [1.09] cmss9%
<10><10.95> s * [1.09] cmss10%
<12><14.4> s * [1.09] cmss12%
<17.28><20.74><24.88> s * [1.09] cmss17%
}{}
% Font undefined, therefore substituted
\DeclareFontShape{OT1}{cmss}{m}{it}
{<->ssub*cmss/m/sl}{}
\DeclareFontShape{OT1}{cmss}{m}{sl}
{%
<5><6><7><8> s * [1.09] cmssi8
<9> s * [1.09] cmssi9%
<10><10.95> s * [1.09] cmssi10%
<12><14.4> s * [1.09] cmssi12%
<17.28><20.74><24.88> s * [1.09] cmssi17%
}{}
%%%%%%% Font/shape undefined, therefore substituted
\DeclareFontShape{OT1}{cmss}{m}{sc}
{<->ssub*cmr/m/sc}{}
%%%%%%% Font/shape undefined, therefore substituted
\DeclareFontShape{OT1}{cmss}{m}{ui}
{<->ssub*cmr/m/ui}{}
%%%%%%%% semibold condensed series
\DeclareFontShape{OT1}{cmss}{sbc}{n}
{%
<5><6><7><8><9> s * [1.09] cmssdc10%
<10><10.95><12><14.4><17.28><20.74><24.88> s * [1.09] cmssdc10%
}{}
%%%%%%%%% bold extended series
\DeclareFontShape{OT1}{cmss}{bx}{n}
{%
<5><6><7><8><9> s * [1.09] cmssbx10%
<10><10.95><12><14.4><17.28><20.74><24.88> s * [1.09] cmssbx10%
}{}
%%%%%%% Font/shape undefined, therefore substituted
\DeclareFontShape{OT1}{cmss}{bx}{ui}
{<->ssub*cmr/bx/ui}{}
\endinput