-
Notifications
You must be signed in to change notification settings - Fork 0
/
t-textappearance.mkiv
113 lines (84 loc) · 2.8 KB
/
t-textappearance.mkiv
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
%D \module
%D [ file=t-textappearance, % e.g. t-xxx
%D version=2020.03.18, % e.g. 20xx.xx.xx
%D title=Simple Textappearance, % e.g. \CONTEXT\ User Module
%D subtitle=Fonts and spacing et al,
%D author=Joseph Berner,
%D date=\currentdate, % e.g. \currentdate
%D copyright=Berner, % e.g. <author>
%D license=2-Clause BSD] % e.g. 'Public Domain' or 'GNU GPL 2.0'
\unprotect
% Load legacy fonts
\font\tensy =cmsy10 at \mathstyleface\textstyle
\font\sevensy=cmsy7 at \mathstyleface\scriptstyle
\font\fivesy =cmsy5 at \mathstyleface\scriptscriptstyle
\font\tenscr =rsfs10 at \mathstyleface\textstyle
\font\sevenscr=rsfs7 at \mathstyleface\scriptstyle
\font\fivescr =rsfs5 at \mathstyleface\scriptscriptstyle
\font\teneuscr =eusm10 at \mathstyleface\textstyle
\font\seveneuscr=eusm7 at \mathstyleface\scriptstyle
\font\fiveeuscr =eusm5 at \mathstyleface\scriptscriptstyle
% \skewchar
\skewchar\tensy ='60
\skewchar\sevensy='60
\skewchar\fivesy ='60
\skewchar\tenscr ='177
\skewchar\sevenscr='177
\skewchar\fivescr ='177
\skewchar\teneuscr ='60
\skewchar\seveneuscr='60
\skewchar\fiveeuscr ='60
% Allocate family
\newfam\calfam
\newfam\scrfam
\newfam\euscrfam
% Assign font families
\textfont \calfam=\tensy
\scriptfont \calfam=\sevensy
\scriptscriptfont\calfam=\fivesy
\textfont \scrfam=\tenscr
\scriptfont \scrfam=\sevenscr
\scriptscriptfont\scrfam=\fivescr
\textfont \euscrfam=\teneuscr
\scriptfont \euscrfam=\seveneuscr
\scriptscriptfont\euscrfam=\fiveeuscr
% Make a macro wrapper
% Backup original definition of \cal and \mathcal
\let\normalcal\cal
\let\normalmathcal\mathcal
\def\cal{\fam\calfam}
\unexpanded\def\mathcal#1{{\cal#1}}
\def\scr{\fam\scrfam}
\unexpanded\def\mathscr#1{{\scr#1}}
\def\euscr{\fam\euscrfam}
\unexpanded\def\EuScr#1{{\euscr#1}}
\definefontfamily[mainface][serif][TeX Gyre Schola][it=style:italic,bf=style:bold,bi=style:bolditalic,tf=style:regular]
\definefontfamily[mainface][math][TeX Gyre Schola Math][it=style:italic,bf=style:bold,bi=style:bolditalic,tf=style:regular]
\definefallbackfamily[mainface][serif][Latin Modern][range=ipaextensions]
%\definefont[ipa][name:Doulos SIL]
\definefont[ipa][name:dejavusans]
\setupbodyfont[mainface]
\setuphead[section][
header=empty,
%alternative=middle,
style=\tfb\bf,
number=no,
% numbercommand=\S\groupedcommand{}{},
after={\blank[\openlineheight]},
]
\setuphead[subsection][
header=empty,
%alternative=middle,
style=\tfa\bf,
number=no,
% numbercommand=\S\groupedcommand{}{},
after={\blank[0.5\openlineheight]},
]
\setuppagenumbering[location={footer,middle}]
\setupindenting[yes,medium]
% indent paragraphs after section heads
\setuphead[section][indentnext=yes]
% indent the paragraphs after all sectioning heads
\setupheads[indentnext=yes]
\protect
\endinput