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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
%% (C) Antonis Tsolomitis, GPL3.
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmainfont[%
SizeFeatures={%
{Size=-8, Font=NewCM08-Regular.otf,
ItalicFont=NewCM08-Italic.otf,%
BoldFont=NewCM10-Bold.otf,%
BoldItalicFont=NewCM10-BoldItalic.otf,%
SlantedFont=NewCM08-Regular.otf,%
BoldSlantedFont=NewCM10-Bold.otf,%
SmallCapsFeatures={Numbers=OldStyle}},
{Size=8, Font=NewCM08-Regular.otf,
ItalicFont=NewCM08-Italic.otf,%
BoldFont=NewCM10-Bold.otf,%
BoldItalicFont=NewCM10-BoldItalic.otf,%
SlantedFont=NewCM08-Regular.otf,%
BoldSlantedFont=NewCM10-Bold.otf,%
SmallCapsFeatures={Numbers=OldStyle}},
{Size= 9-, Font = NewCM10-Regular.otf,
ItalicFont=NewCM10-Italic.otf,%
BoldFont=NewCM10-Bold.otf,%
BoldItalicFont=NewCM10-BoldItalic.otf,%
SlantedFont=NewCM10-Regular.otf,%
BoldSlantedFont=NewCM10-Bold.otf,%
SmallCapsFeatures={Numbers=OldStyle}}%
},%
SmallCapsFeatures={Numbers=OldStyle},%
BoldSlantedFont=NewCM10-Bold.otf,%
SlantedFont=NewCM10-Regular.otf,%
BoldItalicFont=NewCM10-BoldItalic.otf,%
BoldFont=NewCM10-Bold.otf,%
ItalicFont=NewCM10-Italic.otf,%
SlantedFeatures={FakeSlant=0.25},%
BoldSlantedFeatures={FakeSlant=0.25},%
]{NewCM10-Regular.otf}
\setsansfont[%
SizeFeatures={%
{Size= -8, Font=NewCMSans08-Regular.otf,%
ItalicFont=NewCMSans08-Oblique.otf,%
BoldFont=NewCMSans10-Bold.otf,%
BoldItalicFont=NewCMSans10-BoldOblique.otf,%
SmallCapsFeatures={Numbers=OldStyle},%
},
{Size= 8, Font=NewCMSans08-Regular.otf,%
ItalicFont=NewCMSans08-Oblique.otf,%
BoldFont=NewCMSans10-Bold.otf,%
BoldItalicFont=NewCMSans10-BoldOblique.otf,%
SmallCapsFeatures={Numbers=OldStyle},%
},
{Size= 9-, Font=NewCMSans10-Regular.otf,%
ItalicFont=NewCMSans10-Oblique.otf,%
BoldFont=NewCMSans10-Bold.otf,%
BoldItalicFont=NewCMSans10-BoldOblique.otf,%
SmallCapsFeatures={Numbers=OldStyle},%
}},
ItalicFont=NewCMSans10-Oblique.otf,%
BoldFont=NewCMSans10-Bold.otf,%
BoldItalicFont=NewCMSans10-BoldOblique.otf,%
SmallCapsFeatures={Numbers=OldStyle},%
SlantedFont=NewCMSans10-Oblique.otf,%
BoldSlantedFont=NewCMSans10-BoldOblique.otf,%
]{NewCMSans10-Regular.otf}
\setmonofont[%
ItalicFont=NewCMMono10-Italic.otf,%
BoldFont=NewCMMono10-Bold.otf,%
BoldItalicFont=NewCMMono10-BoldOblique.otf,%
SlantedFont=NewCMMono10-Regular.otf,%
SlantedFeatures={FakeSlant=0.25},
BoldSlantedFont=NewCMMono10-Bold.otf,%
BoldSlantedFeatures={FakeSlant=0.25},
SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf}
\newfontfamily\uncial[%
SizeFeatures={%
{Size=-8, Font=NewCMUncial08-Regular.otf,
BoldFont=NewCMUncial10-Bold.otf,%
SlantedFont=NewCMUncial08-Regular.otf,%
BoldSlantedFont=NewCMUncial10-Bold.otf,%
},
{Size=8, Font=NewCMUncial08-Regular.otf,
BoldFont=NewCMUncial08-Bold.otf,%
SlantedFont=NewCMUncial08-regular.otf,%
BoldSlantedFont=NewCMUncial10-Bold.otf,%
},
{Size= 9-, Font = NewCMUncial10-Regular.otf,
BoldFont=NewCMUncial10-Bold.otf,%
SlantedFont=NewCMUncial10-Regular.otf,%
BoldSlantedFont=NewCMUncial10-Bold.otf,%
}%
},%
BoldSlantedFont=NewCMUncial10-Bold.otf,%
SlantedFont=NewCMUncial10-Regular.otf,%
BoldFont=NewCMUncial10-Bold.otf,%
SlantedFeatures={FakeSlant=0.25},%
BoldSlantedFeatures={FakeSlant=0.25},%
]{NewCMUncial10-Regular.otf}
\newcommand{\textuncial}[1]{{\uncial #1}}
\setmathfont{NewCMMath-Regular.otf}
\DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf}}
\ProcessOptions
\setmathfont[range={\mathscr,\mathbfscr},StylisticSet=1]{NewCMMath-Regular.otf}
\newcommand{\tttextsc}[1]{{\ttscshape#1}}
%
\newcommand{\prosgegrammeni}{\addfontfeature{StylisticSet=1}}
\newcommand{\textprosgegrammeni}[1]{{\prosgegrammeni#1}}
%
%\newfontfamily{\ivbce}[StylisticSet=2]{NewCMSans10-Regular.otf}
\newcommand{\ivbce}{\sffamily\addfontfeature{StylisticSet=2}}
\newcommand{\textivbce}[1]{{\ivbce#1}}
%
%\newfontfamily{\ivbcealt}[StylisticSet=3]{NewCMSans10-Regular.otf}
\newcommand{\ivbcealt}{\sffamily\addfontfeature{StylisticSet=3}}
\newcommand{\textivbcealt}[1]{{\ivbcealt#1}}
%
%\newfontfamily{\vibce}[StylisticSet=4]{NewCMSans10-Regular.otf}
\newcommand{\vibce}{\sffamily\addfontfeature{StylisticSet=4}}
\newcommand{\textvibce}[1]{{\vibce#1}}
%
%% math (upright) sans Greek
\newcommand{\msansAlpha}{\char"E000}
\newcommand{\msansBeta}{\char"E001}
\newcommand{\msansGamma}{\char"E002}
\newcommand{\msansDelta}{\char"E003}
\newcommand{\msansEpsilon}{\char"E004}
\newcommand{\msansZeta}{\char"E005}
\newcommand{\msansEta}{\char"E006}
\newcommand{\msansTheta}{\char"E007}
\newcommand{\msansIota}{\char"E008}
\newcommand{\msansKappa}{\char"E009}
\newcommand{\msansLambda}{\char"E00A}
\newcommand{\msansMu}{\char"E00B}
\newcommand{\msansNu}{\char"E00C}
\newcommand{\msansXi}{\char"E00D}
\newcommand{\msansOmicron}{\char"E00E}
\newcommand{\msansPi}{\char"E00F}
\newcommand{\msansRho}{\char"E010}
\newcommand{\msansSigma}{\char"E011}
\newcommand{\msansTau}{\char"E012}
\newcommand{\msansUpsilon}{\char"E013}
\newcommand{\msansPhi}{\char"E014}
\newcommand{\msansChi}{\char"E015}
\newcommand{\msansPsi}{\char"E016}
\newcommand{\msansOmega}{\char"E017}
\newcommand{\msansalpha}{\char"E018}
\newcommand{\msansbeta}{\char"E019}
\newcommand{\msansgamma}{\char"E01A}
\newcommand{\msansdelta}{\char"E01B}
\newcommand{\msansepsilon}{\char"E01C}
\newcommand{\msanszeta}{\char"E01D}
\newcommand{\msanseta}{\char"E01E}
\newcommand{\msanstheta}{\char"E01F}
\newcommand{\msansiota}{\char"E020}
\newcommand{\msanskappa}{\char"E021}
\newcommand{\msanslambda}{\char"E022}
\newcommand{\msansmu}{\char"E023}
\newcommand{\msansnu}{\char"E024}
\newcommand{\msansxi}{\char"E025}
\newcommand{\msansomicron}{\char"E026}
\newcommand{\msanspi}{\char"E027}
\newcommand{\msansrho}{\char"E028}
\newcommand{\msansvarsigma}{\char"E029}
\newcommand{\msanssigma}{\char"E02A}
\newcommand{\msanstau}{\char"E02B}
\newcommand{\msansupsilon}{\char"E02C}
\newcommand{\msansphi}{\char"E02D}
\newcommand{\msanschi}{\char"E02E}
\newcommand{\msanspsi}{\char"E02F}
\newcommand{\msansomega}{\char"E030}
\newcommand{\msansvarepsilon}{\char"E031}
% math italic sans Greek
\newcommand{\mitsansAlpha}{\char"E041}
\newcommand{\mitsansBeta}{\char"E042}
\newcommand{\mitsansGamma}{\char"E043}
\newcommand{\mitsansDelta}{\char"E044}
\newcommand{\mitsansEpsilon}{\char"E045}
\newcommand{\mitsansZeta}{\char"E046}
\newcommand{\mitsansEta}{\char"E047}
\newcommand{\mitsansTheta}{\char"E048}
\newcommand{\mitsansIota}{\char"E049}
\newcommand{\mitsansKappa}{\char"E04A}
\newcommand{\mitsansLambda}{\char"E04B}
\newcommand{\mitsansMu}{\char"E04C}
\newcommand{\mitsansNu}{\char"E04D}
\newcommand{\mitsansXi}{\char"E04E}
\newcommand{\mitsansOmicron}{\char"E04F}
\newcommand{\mitsansPi}{\char"E050}
\newcommand{\mitsansRho}{\char"E051}
\newcommand{\mitsansSigma}{\char"E052}
\newcommand{\mitsansTau}{\char"E053}
\newcommand{\mitsansUpsilon}{\char"E054}
\newcommand{\mitsansPhi}{\char"E055}
\newcommand{\mitsansChi}{\char"E056}
\newcommand{\mitsansPsi}{\char"E057}
\newcommand{\mitsansOmega}{\char"E058}
\newcommand{\mitsansalpha}{\char"E059}
\newcommand{\mitsansbeta}{\char"E05A}
\newcommand{\mitsansgamma}{\char"E05B}
\newcommand{\mitsansdelta}{\char"E05C}
\newcommand{\mitsansepsilon}{\char"E05D}
\newcommand{\mitsanszeta}{\char"E05E}
\newcommand{\mitsanseta}{\char"E05F}
\newcommand{\mitsanstheta}{\char"E060}
\newcommand{\mitsansiota}{\char"E061}
\newcommand{\mitsanskappa}{\char"E062}
\newcommand{\mitsanslambda}{\char"E063}
\newcommand{\mitsansmu}{\char"E064}
\newcommand{\mitsansnu}{\char"E065}
\newcommand{\mitsansxi}{\char"E066}
\newcommand{\mitsansomicron}{\char"E067}
\newcommand{\mitsanspi}{\char"E068}
\newcommand{\mitsansrho}{\char"E069}
\newcommand{\mitsansvarsigma}{\char"E06A}
\newcommand{\mitsanssigma}{\char"E06B}
\newcommand{\mitsanstau}{\char"E06C}
\newcommand{\mitsansupsilon}{\char"E06D}
\newcommand{\mitsansphi}{\char"E06E}
\newcommand{\mitsanschi}{\char"E06F}
\newcommand{\mitsanspsi}{\char"E070}
\newcommand{\mitsansomega}{\char"E071}
\newcommand{\mitsansvarepsilon}{\char"E072}
% Ancient Greek Numerals u10140-u1018E
\newcommand{\atticonequarter}{\char"10140}
\newcommand{\atticonehalf}{\char"10141}
\newcommand{\atticonedrachma}{\char"10142}
\newcommand{\atticfive}{\char"10143}
\newcommand{\atticfifty}{\char"10144}
\newcommand{\atticfivehundred}{\char"10145}
\newcommand{\atticfivethousand}{\char"10146}
\newcommand{\atticfiftythousand}{\char"10147}
\newcommand{\atticfivetalents}{\char"10148}
\newcommand{\attictentalents}{\char"10149}
\newcommand{\atticfiftytalents}{\char"1014A}
\newcommand{\atticonehundredtalents}{\char"1014B}
\newcommand{\atticfivehundredtalents}{\char"1014C}
\newcommand{\atticonethousandtalents}{\char"1014D}
\newcommand{\atticfivethousandtalents}{\char"1014E}
\newcommand{\atticfivestaters}{\char"1014F}
\newcommand{\attictenstaters}{\char"10150}
\newcommand{\atticfiftystaters}{\char"10151}
\newcommand{\atticonehundredstaters}{\char"10152}
\newcommand{\atticfivehundredstaters}{\char"10153}
\newcommand{\atticonethousandstaters}{\char"10154}
\newcommand{\attictenthousandstaters}{\char"10155}
\newcommand{\atticfiftythousandstaters}{\char"10156}
\newcommand{\attictenmnas}{\char"10157}
\newcommand{\heraleumoneplethron}{\char"10158}
\newcommand{\thespianone}{\char"10159}
\newcommand{\ermionianone}{\char"1015A}
\newcommand{\epidauriantwo}{\char"1015B}
\newcommand{\thespiantwo}{\char"1015C}
\newcommand{\cyrenaictwodrachmas}{\char"1015D}
\newcommand{\epidauriantwodrachmas}{\char"1015E}
\newcommand{\troezenianfive}{\char"1015F}
\newcommand{\troezenianten}{\char"10160}
\newcommand{\troezeniantenalt}{\char"10161}
\newcommand{\hermionianten}{\char"10162}
\newcommand{\messenianten}{\char"10163}
\newcommand{\thespianten}{\char"10164}
\newcommand{\thespianthirty}{\char"10165}
\newcommand{\troezenianfifty}{\char"10166}
\newcommand{\troezenianfiftyalt}{\char"10167}
\newcommand{\hermionianfifty}{\char"10168}
\newcommand{\thespianfifty}{\char"10169}
\newcommand{\thespianonehundred}{\char"1016A}
\newcommand{\thespianthreehundred}{\char"1016B}
\newcommand{\epidaurianfivehundred}{\char"1016C}
\newcommand{\troezenianfivehundred}{\char"1016D}
\newcommand{\thespianfivehundred}{\char"1016E}
\newcommand{\carystianfivehundred}{\char"1016F}
\newcommand{\naxianfivehundred}{\char"10170}
\newcommand{\thespianonethousand}{\char"10171}
\newcommand{\thespianfivethousand}{\char"10172}
\newcommand{\delphicfivemnas}{\char"10173}
\newcommand{\stratianfiftymnas}{\char"10174}
\newcommand{\greekonehalfsign}{\char"10175}
\newcommand{\greekonehalfsignalt}{\char"10176}
\newcommand{\greektwothirdssign}{\char"10177}
\newcommand{\greekthreequarterssign}{\char"10178}
\newcommand{\greekyearsign}{\char"10179}
\newcommand{\greektalentsign}{\char"1017A}
\newcommand{\greekdrachmasign}{\char"1017B}
\newcommand{\greekobolsign}{\char"1017C}
\newcommand{\greektwoobolssign}{\char"1017D}
\newcommand{\greekthreeobolssign}{\char"1017E}
\newcommand{\greekfourobolssign}{\char"1017F}
\newcommand{\greekfiveobolssign}{\char"10180}
\newcommand{\greekmetretessign}{\char"10181}
\newcommand{\greekkyathosbasesign}{\char"10182}
\newcommand{\greeklytrasign}{\char"10183}
\newcommand{\greekounkiasign}{\char"10184}
\newcommand{\greekxestessign}{\char"10185}
\newcommand{\greekartabesign}{\char"10186}
\newcommand{\greekarourasign}{\char"10187}
\newcommand{\greekgrammasign}{\char"10188}
\newcommand{\greektryblionbasesign}{\char"10189}
\newcommand{\greekzerosign}{\char"1018A}
\newcommand{\greekonequartersign}{\char"1018B}
\newcommand{\greeksinusoidsign}{\char"1018C}
\newcommand{\greekindictionsign}{\char"1018D}
\newcommand{\nomismasign}{\char"1018E}
%
% some math symbols
\DeclareRobustCommand\nrightrightarrows{\mathrel{\char"E033}}
\DeclareRobustCommand\nleftleftarrows{\mathrel{\char"E032}}
%
% select ss02 lookup table for IPA symbols
%\newfontfamily{\ipatext}[StylisticSet=5,%
%BoldFont=NewCM10-Bold.otf,%
%SlantedFont=NewCM10-Regular.otf,%
%SlantedFeatures={FakeSlant=0.25},
%BoldSlantedFont=NewCM10-Bold.otf,%
%BoldSlantedFeatures={FakeSlant=0.25},
%SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf}
\newcommand{\ipatext}{\addfontfeature{StylisticSet=5}}
\newcommand{\textipa}[1]{{\ipatext#1}}
\newcommand{\oldipatext}{\addfontfeature{StylisticSet=5,RawFeature=+lipa}}
\newcommand{\textoldipa}[1]{{\oldipatext#1}}
%\newfontfamily{\ipatextsans}[StylisticSet=5,%
%ItalicFont=NewCMSans10-Oblique.otf,%
%BoldFont=NewCMSans10-Bold.otf,%
%BoldItalicFont=NewCMSans10-BoldOblique.otf,%
%SlantedFont=NewCMSans10-Oblique.otf,%
%BoldSlantedFont=NewCMSans10-BoldOblique.otf,%
%SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf}
%\newcommand{\ipatextsans}{\sffamily\addfontfeature{StylisticSet=5}}
%\newcommand{\textsansipa}[1]{{\ipatextsans#1}}
%
% Up versions for chemistry
\newcommand{\chemalpha}{\textrm{α}}
\newcommand{\chembeta}{\textrm{β}}
\newcommand{\chemgamma}{\textrm{γ}}
\newcommand{\chemdelta}{\textrm{δ}}
\newcommand{\chemepsilon}{\textrm{ε}}
\newcommand{\chemzeta}{\textrm{ζ}}
\newcommand{\chemeta}{\textrm{η}}
\newcommand{\chemtheta}{\textrm{θ}}
\newcommand{\chemiota}{\textrm{ι}}
\newcommand{\chemkappa}{\textrm{\char"03F0}}
\newcommand{\chemlambda}{\textrm{λ}}
\newcommand{\chemmu}{\textrm{μ}}
\newcommand{\chemnu}{\textrm{ν}}
\newcommand{\chemxi}{\textrm{ξ}}
\newcommand{\chemomicron}{\textrm{ο}}
\newcommand{\chempi}{\textrm{π}}
\newcommand{\chemrho}{\textrm{ρ}}
\newcommand{\chemrhoalt}{\textrm{\char"03F1}}
\newcommand{\chemsigma}{\textrm{σ}}
\newcommand{\chemsigmaalt}{\textrm{ς}}
\newcommand{\chemtau}{\textrm{τ}}
\newcommand{\chemupsilon}{\textrm{υ}}
\newcommand{\chemphi}{\textrm{φ}}
\newcommand{\chemchi}{\textrm{χ}}
\newcommand{\chempsi}{\textrm{ψ}}
\newcommand{\chemomega}{\textrm{ω}}
%
\newcommand{\chemAlpha}{\textrm{Α}}
\newcommand{\chemBeta}{\textrm{Β}}
\newcommand{\chemGamma}{\textrm{Γ}}
\newcommand{\chemDelta}{\textrm{Δ}}
\newcommand{\chemEpsilon}{\textrm{Ε}}
\newcommand{\chemZeta}{\textrm{Ζ}}
\newcommand{\chemEta}{\textrm{Η}}
\newcommand{\chemTheta}{\textrm{Θ}}
\newcommand{\chemIota}{\textrm{Ι}}
\newcommand{\chemKappa}{\textrm{Κ}}
\newcommand{\chemLambda}{\textrm{Λ}}
\newcommand{\chemMu}{\textrm{Μ}}
\newcommand{\chemNu}{\textrm{Ν}}
\newcommand{\chemXi}{\textrm{Ξ}}
\newcommand{\chemOmicron}{\textrm{Ο}}
\newcommand{\chemPi}{\textrm{Π}}
\newcommand{\chemRho}{\textrm{Ρ}}
\newcommand{\chemSigma}{\textrm{Σ}}
\newcommand{\chemTau}{\textrm{Τ}}
\newcommand{\chemUpsilon}{\textrm{Υ}}
\newcommand{\chemPhi}{\textrm{Φ}}
\newcommand{\chemChi}{\textrm{Χ}}
\newcommand{\chemPsi}{\textrm{Ψ}}
\newcommand{\chemOmega}{\textrm{Ω}}
%
|