summaryrefslogtreecommitdiff
path: root/tex/context/base/font-lbr.tex
blob: a6d76f3e5156f5353fad018215c4e84977398cdd (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
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
%D \module
%D   [       file=font-lbr,
%D        version=1995.1.1,
%D          title=\CONTEXT\ Font Macros,
%D       subtitle=Lucida Bright,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

%D The Lucida Bright fonts are both good looking and and
%D complete. These fonts have prebuilt accented characters,
%D which means that we use another encoding vector: \YandY\
%D texnansi. These fonts are a good illustration that a 12 
%D point bodyfont is indeed never that size. The Lucida Bright 
%D fonts come in one design size. 

\definefontsynonym [Serif]              [LucidaBright]
\definefontsynonym [SerifBold]          [LucidaBright-Demi]
\definefontsynonym [SerifItalic]        [LucidaBright-Italic]
\definefontsynonym [SerifSlanted]       [LucidaBright-Oblique]
\definefontsynonym [SerifBoldItalic]    [LucidaBright-DemiItalic]
\definefontsynonym [SerifBoldSlanted]   [LucidaBright-DemiItalic]
\definefontsynonym [SerifCaps]          [LucidaBrightSmallcaps]

\definefontsynonym [Sans]               [LucidaSans]
\definefontsynonym [SansBold]           [LucidaSans-Demi]
\definefontsynonym [SansItalic]         [LucidaSans-Italic]
\definefontsynonym [SansSlanted]        [LucidaSans-Italic]
\definefontsynonym [SansBoldItalic]     [LucidaSans-DemiItalic]
\definefontsynonym [SansBoldSlanted]    [LucidaSans-DemiItalic]
\definefontsynonym [SansCaps]           [LucidaSans]

\definefontsynonym [Mono]               [LucidaSans-Typewriter]
\definefontsynonym [MonoBold]           [LucidaSans-TypewriterBold]
\definefontsynonym [MonoItalic]         [LucidaSans-TypewriterOblique]
\definefontsynonym [MonoSlanted]        [LucidaSans-TypewriterOblique]
\definefontsynonym [MonoBoldItalic]     [LucidaSans-TypewriterBoldOblique]
\definefontsynonym [MonoBoldSlanted]    [LucidaSans-TypewriterBoldOblique]
\definefontsynonym [MonoCaps]           [LucidaSans-Typewriter]

\definefontsynonym [MathRoman]          [LucidaBright]
\definefontsynonym [MathExtension]      [LucidaNewMath-Extension]
\definefontsynonym [MathItalic]         [LucidaNewMath-AltItalic]
\definefontsynonym [MathSymbol]         [LucidaNewMath-Symbol]
\definefontsynonym [MathAlpha]          [LucidaNewMath-Arrows]

\definefontsynonym [Handwriting]        [LucidaHandwriting-Italic]
\definefontsynonym [Calligraphy]        [LucidaCalligraphy-Italic]

\definefontsynonym [OldStyle]           [MathItalic]

\definebodyfont 
  [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] 
  [rm,ss,tt,mm] 
  [default]

%D Some nice aditional ones.

\definebodyfont 
  [14.4pt,12pt,11pt,10pt,9pt,8pt] 
  [hw,cg]
  [default]

%D The Lucida Bright TeleType font does not contain \TEX's 
%D visual space. The next definition offers an alternative.

\def\controlspace% slow slow slow
  {\hbox to .5em
     {\font\next=cmtt10 at \bodyfontsize\next
      \hss\char32\hss}}

% \def\controlspace% 
%   {\hbox to .5em
%      {\hss
%       \vrule\!!width .1\dp\strutbox \!!height\!!zeropoint \!!depth .7\dp\strutbox 
%       \vrule\!!width .4em\!!height -.6\dp\strutbox\!!depth .7\dp\strutbox
%       \vrule\!!width .1\dp\strutbox \!!height\!!zeropoint \!!depth .7\dp\strutbox
%       \hss}}

%D Next we implement some alternatives for \AMS\ symbols. 
%D These can be overrules by loading the \AMS\ font module 
%D afterwards. 

\unprotect 

\mathchardef\blacktriangleleft ="01F0 
\mathchardef\blacktriangleright="01F1 
\mathchardef\boxtimes          ="02EC 

%D Here I copied the definition file that is part of the 
%D \YandY\ distribution.  

%D \framed[breedte=\hsize]
%D   {Copyright (C) 1991 - 1993 \YandY, Inc. All Rights Reserved} 

%D This part of the definition is adapted bij J. Hagen. There
%D is already an extra family: \type{\mafam} (Math A ). Also, 
%D the loading of fonts is done somewhere else. 

\let\arfam    = \mafam
\let\thearfam = \hexmafam

%D This part is adapted to the \CONTEXT\ font||naming method.
%D Also, we use \type{\setskewchar}, which activates the not 
%D yet loaded font.   

%D The next definitions are already taken care of.  

%D \starttypen
%D % \setskewchar{12ptmmmi}='177
%D % \setskewchar{11ptmmmi}='177 
%D % \setskewchar{10ptmmmi}='177 
%D % \setskewchar{9ptmmmi}='177
%D % \setskewchar{8ptmmmi}='177 
%D % \setskewchar{7ptmmmi}='177 
%D % \setskewchar{6ptmmmi}='177
%D % \setskewchar{5ptmmmi}='177
%D \stoptypen
 
%D \starttypen
%D % \setskewchar{12ptmmsy}='60
%D % \setskewchar{11ptmmsy}='60 
%D % \setskewchar{10ptmmsy}='60 
%D % \setskewchar{9ptmmsy}='60
%D % \setskewchar{8ptmmsy}='60 
%D % \setskewchar{7ptmmsy}='60 
%D % \setskewchar{6ptmmsy}='60
%D % \setskewchar{5ptmmsy}='60
%D \stoptypen

%D Adjusted for LucidaNewMath||Extension at 10pt and math axis
%D at 3.13pt Note: delimiter increments are 5.5pt (as opposed
%D to 6pt in \kap{CM}). 

%D Should these be adapted to \type {\bodyfontsize} ? 

\def\big    #1{{\hbox{$\left#1\vbox to8.20\p@{}\right.\n@space$}}}
\def\Big    #1{{\hbox{$\left#1\vbox to10.80\p@{}\right.\n@space$}}}
\def\bigg   #1{{\hbox{$\left#1\vbox to13.42\p@{}\right.\n@space$}}}
\def\Bigg   #1{{\hbox{$\left#1\vbox to16.03\p@{}\right.\n@space$}}}
\def\biggg  #1{{\hbox{$\left#1\vbox to17.72\p@{}\right.\n@space$}}}
\def\Biggg  #1{{\hbox{$\left#1\vbox to21.25\p@{}\right.\n@space$}}}
\def\n@space  {\nulldelimiterspace\z@ \m@th}

%D Define some extra large sizes. It's always done using 
%D extensible parts.

\def\bigggl{\mathopen \biggg}
\def\bigggr{\mathclose\biggg}
\def\Bigggl{\mathopen \Biggg}
\def\Bigggr{\mathclose\Biggg}

%D The following is needed if the roman text font is {\em 
%D not} just \kap{LBR}.

%D Draw the small sizes of $[$ and $]$ from \kap{LBMO} instead
%D of \kap{LBR}.

\mathcode`\[="4186 \delcode`\[="186302
\mathcode`\]="5187 \delcode`\]="187303

%D Draw the small sizes of $($ and $)$ from \kap{LBMO} instead 
%D of \kap{LBR}.

\mathcode`\(="4184 \delcode`\(="184300
\mathcode`\)="5185 \delcode`\)="185301

%D The small sizes of $\{$ and $\}$ are already drawn from 
%D \kap{LBMS}. 

%D Draw small $/$ from \kap{LBMO} instead of \kap{LBR}.

\mathcode`\/="013D \delcode`\/="13D30E

%D Draw $=$ and $+$ from \kap{LBMS} instead of \kap{LBR}.

% interferes with \mf settings 
%
% \mathcode`\=="3283 \mathcode`\+="2282

%D Make open face brackets accessible, i.e. [[ and ]].

\def\ldbrack{\delimiter"4182382}
\def\rdbrack{\delimiter"5183383}

%D Provide access to surface integral signs (linked from text 
%D to display size).

\mathchardef\surfintop="1390 
\def\surfint{\surfintop\nolimits}

%D Make medium size integrals available ({\em not} linked to 
%D display size).

\mathchardef\midintop="1392 
\def\midint{\midintop\nolimits}

\mathchardef\midointop="1393 
\def\midoint{\midointop\nolimits}

\mathchardef\midsurfintop="1394 
\def\midsurfint{\midsurfintop\nolimits}

%D Extensible integral (use with \type{\bigg}, \type{\Bigg}, 
%D \type{\biggg}, \type{\Biggg} etc).

\def\largeint{\delimiter"135A395}

%D Various types of small integrals.

\mathchardef\dblint  ="0188
\mathchardef\trplint ="0189
\mathchardef\contint ="018A
\mathchardef\surfint ="018B
\mathchardef\volint  ="018C
\mathchardef\clwint  ="018D
\mathchardef\cclwcint="018E
\mathchardef\clwcint ="018F

%D To close up gaps in special math characters constructed 
%D from pieces.

\def\joinrel{\mathrel{\mkern-4mu}} 

%D Some characters that need construction in \kap{CM} exist 
%D complete in \kap{LBMO} or \kap{LBMS}.

\mathchardef\bowtie="31F6
\mathchardef\models="32EE
\mathchardef\doteq ="32C9
\mathchardef\cong  ="329B
\mathchardef\angle ="028B

%D Some more characters.

% \mathchardef\hbar           ="0\thearfam 1B

\mathchardef\hbar             ="019D
\mathchardef\neq              ="3\thearfam 94
\mathchardef\rightleftharpoons="3\thearfam 7A
\mathchardef\leftrightharpoons="3\thearfam 79
\mathchardef\hookleftarrow    ="3\thearfam 3C
\mathchardef\hookrightarrow   ="3\thearfam 3E
\mathchardef\mapsto           ="3\thearfam 2C

% \def\longmapsto{\mapstochar\longrightarrow}

%D The ( is not large enough for strut in \kap{LBMO}.

\def\mathstrut{\vphantom{f}}

%D In $n$\hoog{th} root, don't want the $n$ to come too close 
%D to the radical.

\def\r@@t#1#2%
  {\setbox\z@\hbox{$\m@th#1\sqrt{#2}$}
   \dimen@\ht\z@ \advance\dimen@-\dp\z@
   \mkern5mu\raise.6\dimen@\copy\rootbox \mkern-7.5mu \box\z@}

%D Draw upper case upright greek from LucidaNewMath||Extension.

\mathchardef\Gamma  ="03D0
\mathchardef\Delta  ="03D1
\mathchardef\Theta  ="03D2
\mathchardef\Lambda ="03D3
\mathchardef\Xi     ="03D4
\mathchardef\Pi     ="03D5
\mathchardef\Sigma  ="03D6
\mathchardef\Upsilon="03D7
\mathchardef\Phi    ="03D8
\mathchardef\Psi    ="03D9
\mathchardef\Omega  ="03DA

%D Draw upper case italic greek from LucidaNewMath||Italic. 

\mathchardef\varGamma  ="0100
\mathchardef\varDelta  ="0101
\mathchardef\varTheta  ="0102
\mathchardef\varLambda ="0103
\mathchardef\varXi     ="0104
\mathchardef\varPi     ="0105
\mathchardef\varSigma  ="0106
\mathchardef\varUpsilon="0107
\mathchardef\varPhi    ="0108
\mathchardef\varPsi    ="0109
\mathchardef\varOmega  ="010A

%D \type{\matrix} is changed because \kap{LBMO} is not at 10pt.

\def\matrix#1%
  {\null\,\vcenter{\normalbaselines\m@th
   \ialign{\hfil$##$\hfil&&\quad\hfil$##$\hfil\crcr
   \mathstrut\crcr\noalign{\kern-0.9\baselineskip}
   #1\crcr\mathstrut\crcr\noalign{\kern-0.9\baselineskip}}}\,}

\protect

\endinput