Debian Codegraph @

texmf-dist/fonts/source/public/esrelation/esrelation.mf

raw
1 %%
2 %% This is file `esrelation.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% esrelation.dtx (with options: `mf')
8 %%
9 %% Copyright (C) 2015
10 %% by Byron Cook, Tauba Auerbach, and David Reinfurt
11 %%
12 %% This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is [here](http://www.latex-project.org/lppl.txt) and version 1.3c or later is part of all distributions of LaTeX version 2005/12/01 or later.
13 %%
14
15 %% mf setup
16
17 font_coding_scheme:="TeX math symbols";
18 mode_setup; font_setup;
19
20 autorounding:=0;
21 font_slant slant; font_x_height x_height#;
22 font_quad 18u# if not monospace:+4letter_fit# fi;
23 slant:=mono_charic#:=0; % the remaining characters will not be slanted
24 currenttransform:=identity yscaled aspect_ratio scaled granularity;
25
26 %% identify symbols
27
28 %% brackets
29
30 bracket_project_right=oct"025";
31 bracket_project_left=oct"024";
32 bracket_lifting=oct"026";
33
34 %% symbols
35
36 restrict_wand=oct"027";
37 restrict_barb=oct"030";
38 restrict_mallet=oct"021";
39 restrict_wand_up=oct"050";
40 restrict_barb_up=oct"051";
41 restrict_mallet_up=oct"052";
42
43 %% arrows
44
45 r_arrow22=oct"021";
46
47 arrow_project_right=oct"022";
48 arrow_project_left=oct"023";
49
50 %% bars
51
52 barshort=oct"040";
53 barlong=oct"043";
54 verticalbarlongleft=oct"044";
55 verticalbarlongright=oct"046";
56 verticalbarshort=oct"045";
57
58 %% declare extensible
59
60 extensible oct"025": oct"025",0,0,oct"044";
61 extensible oct"024": oct"024",0,0,oct"044";
62
63 %% define pixels
64
65 define_pixels(em, cap, sb, penscaler); % Convert to device-specific units.
66 define_corrected_pixels(o); % Same, but add a device-specific fudge factor.
67
68 %% relation utility dims
69
70 %% u = (w-(2*sb))/8; % utility measurement
71 uu = (h-(2*sb))/8; % utility measurement (using h, not w)
72 super = 3.9; % offset utility for curve roundness [2.8]
73
74 %% Arrow project Right
75
76 iff known arrow_project_right: cmchar "arrow_project_right";
77 compute_spread(.45x_height#,.55x_height#);
78 beginchar(arrow_project_right,10u#,cap#, 1pt#);
79
80 adjust_fit(0,0);
81 pickup pencircle scaled (penscaler); % small, circular tip
82
83 %% Points
84
85 z1 = (-5u, math_axis);
86 z2 = (10u, y1);
87 z3 = (x2-5u, y2+5u);
88
89 %% Draw
90
91 draw z1 -- z2 -- z3; % right arrow
92 penlabels(1,2,3,4,5,6);
93
94 endchar;
95
96 %% Arrow project Left
97
98 iff known arrow_project_left: cmchar "arrow_project_left";
99 compute_spread(.45x_height#,.55x_height#);
100 beginchar(arrow_project_left,10u#,cap#, 1pt#);
101
102 adjust_fit(0,0);
103 pickup pencircle scaled (penscaler); % small, circular tip
104
105 %% Points
106
107 z1 = (15u, math_axis);
108 z2 = (0, y1);
109 z3 = (x2+5u, y2+5u);
110
111 %% Draw
112
113 draw z1 -- z2 -- z3; % right arrow
114 penlabels(1,2,3,4,5,6);
115
116 endchar;
117
118 %% Bracket project Right
119
120 iff known bracket_project_right: cmchar "bracket_project_right";
121 compute_spread(.45x_height#,.55x_height#);
122 beginchar(bracket_project_right,5u#,cap#, 1pt#);
123
124 adjust_fit(0,0);
125 pickup pencircle scaled (penscaler); % small, circular tip
126
127 %% Points
128
129 z1 = (0, -3*desc_depth);
130 z2 = (x1, math_axis-4u);
131 z3 = (x1+5u/super, y4-5u/super);
132 z4 = (x1+4u, math_axis);
133 z5 = (15u, y4);
134
135 %% Draw
136
137 draw z1 -- z2 .. z3 .. z4 -- z5; % right bracket
138 penlabels(1,2,3,4,5,6);
139
140 endchar;
141
142 %% Bracket project Left
143
144 iff known bracket_project_left: cmchar "bracket_project_left";
145 compute_spread(.45x_height#,.55x_height#);
146 beginchar(bracket_project_left,5u#,cap#, 1pt#);
147
148 adjust_fit(0,0);
149 pickup pencircle scaled (penscaler); % small, circular tip
150
151 %% Points
152
153 z1 = (w, -3*desc_depth);
154 z2 = (x1, math_axis-4u);
155 z3 = (x1-5u/super, y4-5u/super);
156 z4 = (x1-4u, math_axis);
157 z5 = (-10u, y4);
158
159 %% Draw
160
161 draw z1 -- z2 .. z3 .. z4 -- z5; % right bracket
162 penlabels(1,2,3,4,5,6);
163
164 endchar;
165
166 %% Bracket Lifting
167
168 iff known bracket_lifting: cmchar "bracket_lifting";
169 compute_spread(.45x_height#,.55x_height#);
170 beginchar(bracket_lifting,5u#,cap#, 1pt#);
171
172 adjust_fit(0,0);
173 pickup pencircle scaled (penscaler); % small, circular tip
174
175 %% Points
176
177 z1 = (0, h+10u);
178 z2 = (x1, math_axis+4u);
179 z3 = (x1+5u/super, y4+5u/super);
180 z4 = (4u, math_axis);
181 z5 = (w+10u, y4);
182
183 %% Draw
184
185 draw z1 -- z2 .. z3 .. z4 -- z5; % bracket
186 penlabels(1,2,3,4,5,6);
187
188 endchar;
189
190
191 iff known barshort: cmchar "barshort";
192 compute_spread(.45x_height#,.55x_height#);
193 beginchar(barshort,3u#,v_center(spread#+rule_thickness#));
194
195 adjust_fit(0,0);
196 pickup pencircle scaled (penscaler); % small, circular tip
197 x1=eps;
198 x2=w-eps+1u;
199 y1=y2=math_axis;
200 draw z1--z2;
201 penlabels(1,2);
202
203 endchar;
204
205 %% Bar Long
206
207 iff known barlong: cmchar "barlong";
208 compute_spread(.45x_height#,.55x_height#);
209 beginchar(barlong,6u#,v_center(spread#+rule_thickness#));
210
211 adjust_fit(0,0);
212 pickup pencircle scaled (penscaler); % small, circular tip
213 x1=eps;
214 x2=w-eps+1u;
215 y1=y2=math_axis;
216 draw z1--z2;
217 penlabels(1,2);
218
219 endchar;
220
221 %% Vertical Bar Long Left
222
223 iff known verticalbarlongleft: cmchar "verticalbarlongleft";
224 compute_spread(.45x_height#,.55x_height#);
225 beginchar(verticalbarlongleft,5u#,v_center(spread#+rule_thickness#));
226
227 adjust_fit(0,0);
228 pickup pencircle scaled (penscaler); % small, circular tip
229 x1=x2=0;
230 y1=asc_height-5u;
231 y2=0;
232 draw z1--z2;
233 penlabels(1,2);
234
235 endchar;
236
237 %% Vertical Bar Long Right
238
239 iff known verticalbarlongright: cmchar "verticalbarlongright";
240 compute_spread(.45x_height#,.55x_height#);
241 beginchar(verticalbarlongright,5u#,v_center(spread#+rule_thickness#));
242
243 adjust_fit(0,0);
244 pickup pencircle scaled (penscaler); % small, circular tip
245 x1=x2=w;
246 y1=asc_height-5u;
247 y2=0;
248 draw z1--z2;
249 penlabels(1,2);
250
251 endchar;
252
253 %% Vertical Bar Short
254
255 iff known verticalbarshort: cmchar "verticalbarshort";
256 compute_spread(.45x_height#,.55x_height#);
257 beginchar(verticalbarshort,5u#,v_center(spread#+rule_thickness#));
258
259 adjust_fit(0,0);
260 pickup pencircle scaled (penscaler); % small, circular tip
261 x1=x2=0;
262 y1=1u;
263 y2=0;
264 draw z1--z2;
265 penlabels(1,2);
266
267 endchar;
268
269 %% restrict Wand
270
271 iff known restrict_wand: cmchar "restrict_wand";
272 compute_spread(.45x_height#,.55x_height#);
273 beginchar(restrict_wand,5u#,v_center(spread#+rule_thickness#));
274
275 pickup pencircle scaled (penscaler);
276
277 %% Points
278
279 z1 = (3u, asc_height); % bar
280 z2 = (x1, -2*u);
281
282 z3 = (x1-2*u, 0); % asterisk
283 z4 = (x1+2*u, y3);
284 z5 = (x1-1.4*u, y3+1.4*u);
285 z6 = (x1+1.4*u, y3-1.4*u);
286 z7 = (x6, y5);
287 z8 = (x5, y6);
288
289 %% Draw
290
291 draw z1 -- z2; % |
292 draw z3 -- z4; % *
293 draw z5 -- z6;
294 draw z7 -- z8;
295
296 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
297
298 endchar;
299
300 %% restrict Wand Up
301
302 iff known restrict_wand_up: cmchar "restrict_wand_up";
303 compute_spread(.45x_height#,.55x_height#);
304 beginchar(restrict_wand_up,5u#,v_center(spread#+rule_thickness#));
305
306 pickup pencircle scaled (penscaler);
307
308 %% Points
309
310 z1 = (3u, -2u); % bar
311 z2 = (x1, asc_height);
312
313 z3 = (x1-2*u, y2-2u); % asterisk
314 z4 = (x1+2*u, y3);
315 z5 = (x1-1.4*u, y3+1.4*u);
316 z6 = (x1+1.4*u, y3-1.4*u);
317 z7 = (x6, y5);
318 z8 = (x5, y6);
319
320 %% Draw
321
322 draw z1 -- z2; % |
323 draw z3 -- z4; % *
324 draw z5 -- z6;
325 draw z7 -- z8;
326
327 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
328
329 endchar;
330
331 %% restrict Barb
332
333 iff known restrict_barb: cmchar "restrict_barb";
334 compute_spread(.45x_height#,.55x_height#);
335 beginchar(restrict_barb,5u#,v_center(spread#+rule_thickness#));
336
337 pickup pencircle scaled (penscaler); % Use a pen with a small, circular tip.
338
339 %% Points
340
341 z1 = (3u, asc_height); % bar
342 z2 = (x1, -2*u);
343
344 z3 = (x1-2*u, 0); % diamond
345 z4 = (x1+2*u, y3);
346 z5 = (x1, 2*u);
347
348 %% Draw
349
350 draw z1 -- z2; % |
351 draw z3 -- z4 -- z5; % _\
352 draw z2 -- z3; % \
353
354 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
355
356 endchar;
357
358 %% restrict Barb Up
359
360 iff known restrict_barb_up: cmchar "restrict_barb_up";
361 compute_spread(.45x_height#,.55x_height#);
362 beginchar(restrict_barb_up,5u#,v_center(spread#+rule_thickness#));
363
364 pickup pencircle scaled (penscaler); % Use a pen with a small, circular tip.
365
366 %% Points
367
368 z1 = (3u, -2u); % bar
369 z2 = (x1, asc_height);
370
371 z3 = (x1-2*u, y2-2u); % diamond
372 z4 = (x1+2*u, y3);
373 z5 = (x1, y3-2u);
374
375 %% Draw
376
377 draw z1 -- z2; % |
378 draw z3 -- z4 -- z5; % _\
379 draw z2 -- z3; % \
380
381 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
382
383 endchar;
384
385 %% restrict Mallet
386
387 iff known restrict_mallet: cmchar "restrict_mallet";
388 compute_spread(.45x_height#,.55x_height#);
389 beginchar(restrict_mallet,5u#,v_center(spread#+rule_thickness#));
390
391 pickup pencircle scaled (penscaler); % Use a pen with a small, circular tip.
392
393 %% Points
394
395 z1 = (3u, asc_height); % bar
396 z2 = (x1, -2*u);
397
398 z3 = (x1-(4/3)*u, (-2/3)*u); % diamond
399 z4 = (x1+(4/3)*u, y3);
400 z5 = (x1, (2/3)*u);
401
402 %% Draw
403
404 draw z1 -- z2; % |
405 draw z3 .. z5 .. z4 .. z2 .. z3; % o
406
407 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
408
409 endchar;
410
411 %% restrict Mallet up
412
413 iff known restrict_mallet_up: cmchar "restrict_mallet_up";
414 compute_spread(.45x_height#,.55x_height#);
415 beginchar(restrict_mallet_up,5u#,v_center(spread#+rule_thickness#));
416
417 pickup pencircle scaled (penscaler); % Use a pen with a small, circular tip.
418
419 %% Points
420
421 z1 = (3u, -2u); % bar
422 z2 = (x1, asc_height);
423
424 z3 = (x1-(4/3)*u, y2-4/3u); % diamond
425 z4 = (x1+(4/3)*u, y3);
426 z5 = (x1, y3-4/3u);
427
428 %% Draw
429
430 draw z1 -- z2; % |
431 draw z3 .. z5 .. z4 .. z2 .. z3; % o
432
433 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
434
435 endchar;
436
437 bye.
438
439 \endinput
440 %%
441 %% End of file `esrelation.mf'.