Debian Codegraph @

texmf-dist/source/latex/esvect/esvect.dtx

raw
1 %\iffalse
2 %
3 %esvect.dtx version 1.3 november 2013
4 %
5 %version 1.1 june 2000 : first version
6 %version 1.2 july 2000 : second version
7 %version 1.3 november 2013 : second version
8 %
9 %Eddie Saudrais ([email protected])
10 %http://phylam.org
11 %
12 %
13 %<*driver>
14 \documentclass[a4paper]{ltxdoc}
15 \usepackage{esvect}
16 \usepackage{mflogo}
17 \DeclareMathSymbol{\fldrap}{\mathrel}{esvector}{'021}
18 \DeclareMathSymbol{\fldrbp}{\mathrel}{esvector}{'022}
19 \DeclareMathSymbol{\fldrcp}{\mathrel}{esvector}{'023}
20 \DeclareMathSymbol{\fldrdp}{\mathrel}{esvector}{'024}
21 \DeclareMathSymbol{\fldrep}{\mathrel}{esvector}{'025}
22 \DeclareMathSymbol{\fldrfp}{\mathrel}{esvector}{'026}
23 \DeclareMathSymbol{\fldrgp}{\mathrel}{esvector}{'027}
24 \DeclareMathSymbol{\fldrhp}{\mathrel}{esvector}{'030}
25 \parindent 0cm
26 \topmargin -1cm
27 \begin{document}
28 \DocInput{esvect.dtx}
29 \end{document}
30 %</driver>
31 %\fi
32 %\title{Typesetting vectors with beautiful arrow with \LaTeXe{}}
33 %\author{Eddie Saudrais}
34 %\date{version 1.3 11/07/2013}
35 %\maketitle
36 %\MakeShortVerb{\|}
37 %\begin{abstract}
38 %The package \textsf{esvect.sty} allows typesetting vectors.
39 %Several arrows are available.
40 %\end{abstract}
41 %\section{Installation}
42 %Run \LaTeXe{} on esvect.ins to generate files:
43 %\begin{enumerate}
44 %\item
45 %Put \textsf{esvect.sty} on TEXINPUT.
46 %\item
47 %Put \textsf{uesvect.fd} on TEXINPUT, for example with \textsf{esvect.sty}.
48 %\item
49 %Put \textsf{vect5.mf}, \textsf{vect6.mf}, \textsf{vect7.mf}, \textsf{vect8.mf},
50 %\textsf{vect9.mf} and \textsf{vect10.mf} on MFINPUT.
51 %\end{enumerate}
52 %
53 %Run METAFONT on *.mf file to generate *.tfm files. For example:
54 %
55 %\verb|mf \mode=localfont; input vect5.mf|
56 %
57 %Put \textsf{vect5.tfm}, ..., \textsf{vect10.tfm} on the right
58 %place.
59 %\section{Using esvect}
60 %Load the package with \verb|\usepackage{esvect}|, and enjoy!
61 %
62 %To obtain a vector, use the command \verb|\vv{arg}|.
63 %
64 %For example, \verb|$\vv{E$}|, \verb|$\vv{AB}$|,
65 %\verb|$\vv{\imath}$| and \verb|$\vv{u}$| give $\vv{E}$,
66 %$\vv{AB}$, $\vv{\imath}$ and $\vv{u}$.
67 %
68 %A star version \verb|\vv*{arg}{ind}| is available to typeset correctly a vector with a subscript:
69 %\verb|$\vv*{e}{r}$| and \verb|$\vv*{L}{\Delta}$| give $\vv*{e}{r}$
70 %and $\vv*{L}{\Delta}$.
71 %
72 %Height differents arrows are available. You have to select one
73 %using an option when you load the package:
74 %\verb|\usepackage[a]{esvect}|, ..., \verb|\usepackage[h]{esvect}|.
75 %The option \verb|d| is selected by default.
76 %
77 %Corresponding arrows are:
78 %
79 %\vskip1em
80 %\begin{tabular}{c c c c c c c c c}
81 %option & a & b & c & d & e & f & g & h \\
82 %fl\`eche & $\fldrap$ & $\fldrbp$ & $\fldrcp$ & $\fldrdp$ & $\fldrep$
83 %& $\fldrfp$ & $\fldrgp$ & $\fldrhp$\\
84 %\end{tabular}
85 %
86 %The size of the arrow is automatically calculated according to
87 %the math environment:
88 %
89 %\verb|$$\vv{E}_{\vv{u}_{\vv{u}}}}$$| gives
90 %$$\vv{E}_{\vv{u}_{\vv{u}}}$$
91 %
92 %\StopEventually{}
93 %\section{The code}
94 %The package identifies himself
95 % \begin{macrocode}
96 %<*package>
97 \NeedsTeXFormat{LaTeX2e}
98 \ProvidesPackage{esvect}
99 % \end{macrocode}
100 %Definition of the symbol font:
101 % \begin{macrocode}
102 \DeclareSymbolFont{esvector} {U}{esvect}{m}{n}
103 % \end{macrocode}
104 %Options processing:
105 % \begin{macrocode}
106 \DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'024} %default
107 \DeclareOption{a}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'021}}
108 \DeclareOption{b}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'022}}
109 \DeclareOption{c}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'023}}
110 \DeclareOption{d}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'024}}
111 \DeclareOption{e}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'025}}
112 \DeclareOption{f}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'026}}
113 \DeclareOption{g}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'027}}
114 \DeclareOption{h}{\DeclareMathSymbol{\fldr}{\mathrel}{esvector}{'030}}
115 \ProcessOptions\relax
116 % \end{macrocode}
117 %Defition of the lines:
118 % \begin{macrocode}
119 \DeclareMathSymbol{\montraita}{\mathrel}{esvector}{'040}
120 \DeclareMathSymbol{\montraitd}{\mathrel}{esvector}{'043}
121 \def\relbareda{\mathrel{\mathpalette\mathsm@sh\montraita}}
122 \def\relbaredd{\mathrel{\mathpalette\mathsm@sh\montraitd}}
123 % \end{macrocode}
124 %Definition of the command:
125 % \begin{macrocode}
126 \def\vv{\@ifstar{\vvstar}{\ESV@vecteur}}
127 \def\vvstar#1#2{\ESV@vecteur{#1}_{\mkern-1mu\relax#2}}
128 \newcommand{\ESV@vecteur}{%
129 \mathpalette{\overvect@\vectfill@}}
130 % \end{macrocode}
131 %Definition of the characters used to draw the vector:
132 % \begin{macrocode}
133 \def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
134 %\end{macrocode}
135 %Construction of the arrow:
136 % \begin{macrocode}
137 \def\traitfill@#1#2#3#4{%
138 $\m@th\mkern2mu\relax#4#1\mkern-1.5mu%on met \relbaredd au d\'ebut
139 \cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill%remplit avec relbareda
140 \mkern-1.5mu#3$%
141 }
142 % \end{macrocode}
143 %Construction of the whole vector:
144 % \begin{macrocode}
145 \def\overvect@#1#2#3{\vbox{\ialign{##\crcr%
146 \noalign{\kern-.7pt\nointerlineskip}#1#2\crcr%
147 \noalign{\kern-.3pt\nointerlineskip}$\m@th\hfil#2#3\hfil$\crcr}}}
148 % \end{macrocode}
149 % \begin{macrocode}
150 %</package>
151 % \end{macrocode}
152 % \begin{macrocode}
153 %<*fdfile>
154 % \end{macrocode}
155 %Font definition file:
156 % \begin{macrocode}
157 \ProvidesFile{uesvect.fd}
158 \DeclareFontFamily{U}{esvect}{}
159 \DeclareFontShape{U}{esvect}{m}{n}{%
160 <5><6><7><8><9><10>gen*vect%
161 <10.95><12><14.4><17.28><20.74><24.88>vect10%
162 }{}
163 % \end{macrocode}
164 % \begin{macrocode}
165 %</fdfile>
166 % \end{macrocode}
167 %\end{document}
168 % \begin{macrocode}
169 %<*mffilea>
170 % Vector Symbols, from Computer Modern Math Symbols 5 point
171 if unknown cmbase: input cmbase fi
172
173 font_identifier:="VECT"; font_size 5pt#;
174
175 u#:=12.5/36pt#; % unit width
176 width_adj#:=0pt#; % width adjustment for certain characters
177 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
178 cap_serif_fit#:=2/36pt#; % extra sidebar near uppercase serifs
179 letter_fit#:=10/36pt#; % extra space added to all sidebars
180
181 body_height#:=135/36pt#; % height of tallest characters
182 asc_height#:=125/36pt#; % height of lowercase ascenders
183 cap_height#:=123/36pt#; % height of caps
184 fig_height#:=116/36pt#; % height of numerals
185 x_height#:=77.5/36pt#; % height of lowercase without ascenders
186 math_axis#:=45/36pt#; % axis of symmetry for math symbols
187 bar_height#:=43.5/36pt#; % height of crossbar in lowercase e
188 comma_depth#:=35/36pt#; % depth of comma below baseline
189 desc_depth#:=35/36pt#; % depth of lowercase descenders
190
191 crisp#:=6/36pt#; % diameter of serif corners
192 tiny#:=6/36pt#; % diameter of rounded corners
193 fine#:=5/36pt#; % diameter of sharply rounded corners
194 thin_join#:=5/36pt#; % width of extrafine details
195 hair#:=7.5/36pt#; % lowercase hairline breadth
196 stem#:=15.5/36pt#; % lowercase stem breadth
197 curve#:=17.5/36pt#; % lowercase curve breadth
198 ess#:=12/36pt#; % breadth in middle of lowercase s
199 flare#:=18.5/36pt#; % diameter of bulbs or breadth of terminals
200 dot_size#:=22/36pt#; % diameter of dots
201 cap_hair#:=8/36pt#; % uppercase hairline breadth
202 cap_stem#:=18.5/36pt#; % uppercase stem breadth
203 cap_curve#:=20.5/36pt#; % uppercase curve breadth
204 cap_ess#:=13.5/36pt#; % breadth in middle of uppercase s
205 rule_thickness#:=.28pt#; % thickness of lines in math symbols
206
207 dish#:=.7/36pt#; % amount erased at top or bottom of serifs
208 bracket#:=10/36pt#; % vertical distance from serif base to tangent
209 jut#:=17/36pt#; % protrusion of lowercase serifs
210 cap_jut#:=20/36pt#; % protrusion of uppercase serifs
211 beak_jut#:=6/36pt#; % horizontal protrusion of beak serifs
212 beak#:=35/36pt#; % vertical protrusion of beak serifs
213 vair#:=6/36pt#; % vertical diameter of hairlines
214 notch_cut#:=5pt#; % maximum breadth above or below notches
215 bar#:=8/36pt#; % lowercase bar thickness
216 slab#:=8/36pt#; % serif and arm thickness
217 cap_bar#:=8/36pt#; % uppercase bar thickness
218 cap_band#:=8/36pt#; % uppercase thickness above/below lobes
219 cap_notch_cut#:=5pt#; % max breadth above/below uppercase notches
220 serif_drop#:=2/36pt#; % vertical drop of sloped serifs
221 stem_corr#:=.7/36pt#; % for small refinements of stem breadth
222 vair_corr#:=.5/36pt#; % for small refinements of hairline height
223 apex_corr#:=0pt#; % extra width at diagonal junctions
224
225 o#:=4/36pt#; % amount of overshoot for curves
226 apex_o#:=4/36pt#; % amount of overshoot for diagonal junctions
227
228 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
229 fudge:=1; % factor applied to weights of heavy characters
230 math_spread:=1; % extra openness of math symbols
231 superness:=1/sqrt2; % parameter for superellipses
232 superpull:=1/6; % extra openness inside bowls
233 beak_darkness:=11/30; % fraction of triangle inside beak serifs
234 ligs:=1; % level of ligatures to be included
235
236 square_dots:=false; % should dots be square?
237 hefty:=false; % should we try hard not to be overweight?
238 serifs:=true; % should serifs and bulbs be attached?
239 monospace:=false; % should all characters have the same width?
240 variant_g:=true; % should an italic-style g be used?
241 low_asterisk:=false; % should the asterisk be centered at the axis?
242 math_fitting:=true; % should math-mode spacing be used?
243
244 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
245 subs:=5/5; % subscripts to 5pt will normally be in 5pt type
246 rth#:=.4pt#; % assume that rules will come from cmex10
247 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
248 math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1
249 math_axis#+1.51rth#+3/36pt#, % num2
250 math_axis#+1.51rth#+24/36pt#, % num3
251 -(math_axis#-3.51rth#-subs*fig_height#-63/36pt#), % denom1
252 -(math_axis#-1.51rth#-subs*fig_height#-3/36pt#), % denom2
253 5.99pt#-subs*asc_height#, % sup1
254 5.49pt#-subs*asc_height#, % sup2
255 53/36pt#, % sup3
256 36/36pt#, % sub1
257 72/36pt#, % sub2
258 subs*asc_height#-36/36pt#, % sup\_drop
259 18/36pt#, % sub\_drop
260 9.9pt#, % delim1
261 7.1pt#, % delim2
262 math_axis#; % axis\_height
263
264 generate mathvec % switch to the driver file
265 % \end{macrocode}
266 % \begin{macrocode}
267 %</mffilea>
268 % \end{macrocode}
269 % \begin{macrocode}
270 %<*mffileb>
271 % Vector Symbols, from Computer Modern Math Symbols 6 point
272 if unknown cmbase: input cmbase fi
273
274 font_identifier:="VECT"; font_size 6pt#;
275
276 u#:=14/36pt#; % unit width
277 width_adj#:=0pt#; % width adjustment for certain characters
278 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
279 cap_serif_fit#:=2.8/36pt#; % extra sidebar near uppercase serifs
280 letter_fit#:=6/36pt#; % extra space added to all sidebars
281
282 body_height#:=162/36pt#; % height of tallest characters
283 asc_height#:=150/36pt#; % height of lowercase ascenders
284 cap_height#:=147.6/36pt#; % height of caps
285 fig_height#:=139.2/36pt#; % height of numerals
286 x_height#:=93/36pt#; % height of lowercase without ascenders
287 math_axis#:=54/36pt#; % axis of symmetry for math symbols
288 bar_height#:=52.2/36pt#; % height of crossbar in lowercase e
289 comma_depth#:=42/36pt#; % depth of comma below baseline
290 desc_depth#:=42/36pt#; % depth of lowercase descenders
291
292 crisp#:=6.5/36pt#; % diameter of serif corners
293 tiny#:=6.5/36pt#; % diameter of rounded corners
294 fine#:=6/36pt#; % diameter of sharply rounded corners
295 thin_join#:=6/36pt#; % width of extrafine details
296 hair#:=8/36pt#; % lowercase hairline breadth
297 stem#:=17.5/36pt#; % lowercase stem breadth
298 curve#:=20/36pt#; % lowercase curve breadth
299 ess#:=17/36pt#; % breadth in middle of lowercase s
300 flare#:=20.5/36pt#; % diameter of bulbs or breadth of terminals
301 dot_size#:=26/36pt#; % diameter of dots
302 cap_hair#:=8.5/36pt#; % uppercase hairline breadth
303 cap_stem#:=21/36pt#; % uppercase stem breadth
304 cap_curve#:=23.5/36pt#; % uppercase curve breadth
305 cap_ess#:=18.5/36pt#; % breadth in middle of uppercase s
306 rule_thickness#:=.31pt#; % thickness of lines in math symbols
307
308 dish#:=.8/36pt#; % amount erased at top or bottom of serifs
309 bracket#:=12/36pt#; % vertical distance from serif base to tangent
310 jut#:=19/36pt#; % protrusion of lowercase serifs
311 cap_jut#:=23/36pt#; % protrusion of uppercase serifs
312 beak_jut#:=6.8/36pt#; % horizontal protrusion of beak serifs
313 beak#:=42/36pt#; % vertical protrusion of beak serifs
314 vair#:=7/36pt#; % vertical diameter of hairlines
315 notch_cut#:=6pt#; % maximum breadth above or below notches
316 bar#:=8.5/36pt#; % lowercase bar thickness
317 slab#:=8.5/36pt#; % serif and arm thickness
318 cap_bar#:=8.5/36pt#; % uppercase bar thickness
319 cap_band#:=8.5/36pt#; % uppercase thickness above/below lobes
320 cap_notch_cut#:=6pt#; % max breadth above/below uppercase notches
321 serif_drop#:=2.4/36pt#; % vertical drop of sloped serifs
322 stem_corr#:=.8/36pt#; % for small refinements of stem breadth
323 vair_corr#:=.7/36pt#; % for small refinements of hairline height
324 apex_corr#:=0pt#; % extra width at diagonal junctions
325
326 o#:=4.5/36pt#; % amount of overshoot for curves
327 apex_o#:=4.5/36pt#; % amount of overshoot for diagonal junctions
328
329 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
330 fudge:=1; % factor applied to weights of heavy characters
331 math_spread:=.8; % extra openness of math symbols
332 superness:=1/sqrt2; % parameter for superellipses
333 superpull:=1/6; % extra openness inside bowls
334 beak_darkness:=11/30; % fraction of triangle inside beak serifs
335 ligs:=2; % level of ligatures to be included
336
337 square_dots:=false; % should dots be square?
338 hefty:=false; % should we try hard not to be overweight?
339 serifs:=true; % should serifs and bulbs be attached?
340 monospace:=false; % should all characters have the same width?
341 variant_g:=true; % should an italic-style g be used?
342 low_asterisk:=false; % should the asterisk be centered at the axis?
343 math_fitting:=true; % should math-mode spacing be used?
344
345 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
346 subs:=5/6; % subscripts to 6pt will normally be in 5pt type
347 rth#:=.4pt#; % assume that rules will come from cmex10
348 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
349 math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1
350 math_axis#+1.51rth#+9/36pt#, % num2
351 math_axis#+1.51rth#+29/36pt#, % num3
352 -(math_axis#-3.51rth#-subs*fig_height#-74/36pt#), % denom1
353 -(math_axis#-1.51rth#-subs*fig_height#-9/36pt#), % denom2
354 6.49pt#-subs*asc_height#, % sup1
355 5.99pt#-subs*asc_height#, % sup2
356 62/36pt#, % sup3
357 36/36pt#, % sub1
358 72/36pt#, % sub2
359 subs*asc_height#-36/36pt#, % sup\_drop
360 18/36pt#, % sub\_drop
361 11.9pt#, % delim1
362 8.1pt#, % delim2
363 math_axis#; % axis\_height
364
365 generate mathvec % switch to the driver file
366 % \end{macrocode}
367 % \begin{macrocode}
368 %</mffileb>
369 % \end{macrocode}
370 % \begin{macrocode}
371 %<*mffilec>
372 % Vector Symbols, from Computer Modern Math Symbols 7 point
373 if unknown cmbase: input cmbase fi
374
375 font_identifier:="VECT"; font_size 7pt#;
376
377 u#:=15.5/36pt#; % unit width
378 width_adj#:=0pt#; % width adjustment for certain characters
379 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
380 cap_serif_fit#:=3.5/36pt#; % extra sidebar near uppercase serifs
381 letter_fit#:=4/36pt#; % extra space added to all sidebars
382
383 body_height#:=189/36pt#; % height of tallest characters
384 asc_height#:=175/36pt#; % height of lowercase ascenders
385 cap_height#:=172.2/36pt#; % height of caps
386 fig_height#:=162.4/36pt#; % height of numerals
387 x_height#:=108.5/36pt#; % height of lowercase without ascenders
388 math_axis#:=63/36pt#; % axis of symmetry for math symbols
389 bar_height#:=60.9/36pt#; % height of crossbar in lowercase e
390 comma_depth#:=49/36pt#; % depth of comma below baseline
391 desc_depth#:=49/36pt#; % depth of lowercase descenders
392
393 crisp#:=7/36pt#; % diameter of serif corners
394 tiny#:=7/36pt#; % diameter of rounded corners
395 fine#:=6/36pt#; % diameter of sharply rounded corners
396 thin_join#:=6/36pt#; % width of extrafine details
397 hair#:=8.5/36pt#; % lowercase hairline breadth
398 stem#:=19.5/36pt#; % lowercase stem breadth
399 curve#:=22.5/36pt#; % lowercase curve breadth
400 ess#:=21/36pt#; % breadth in middle of lowercase s
401 flare#:=23.5/36pt#; % diameter of bulbs or breadth of terminals
402 dot_size#:=29/36pt#; % diameter of dots
403 cap_hair#:=9/36pt#; % uppercase hairline breadth
404 cap_stem#:=23.5/36pt#; % uppercase stem breadth
405 cap_curve#:=26.5/36pt#; % uppercase curve breadth
406 cap_ess#:=22.5/36pt#; % breadth in middle of uppercase s
407 rule_thickness#:=.34pt#; % thickness of lines in math symbols
408
409 dish#:=.9/36pt#; % amount erased at top or bottom of serifs
410 bracket#:=14/36pt#; % vertical distance from serif base to tangent
411 jut#:=21/36pt#; % protrusion of lowercase serifs
412 cap_jut#:=26/36pt#; % protrusion of uppercase serifs
413 beak_jut#:=7.6/36pt#; % horizontal protrusion of beak serifs
414 beak#:=49/36pt#; % vertical protrusion of beak serifs
415 vair#:=7/36pt#; % vertical diameter of hairlines
416 notch_cut#:=7pt#; % maximum breadth above or below notches
417 bar#:=9/36pt#; % lowercase bar thickness
418 slab#:=9/36pt#; % serif and arm thickness
419 cap_bar#:=9/36pt#; % uppercase bar thickness
420 cap_band#:=9/36pt#; % uppercase thickness above/below lobes
421 cap_notch_cut#:=7pt#; % max breadth above/below uppercase notches
422 serif_drop#:=2.8/36pt#; % vertical drop of sloped serifs
423 stem_corr#:=.9/36pt#; % for small refinements of stem breadth
424 vair_corr#:=.9/36pt#; % for small refinements of hairline height
425 apex_corr#:=0pt#; % extra width at diagonal junctions
426
427 o#:=5/36pt#; % amount of overshoot for curves
428 apex_o#:=5/36pt#; % amount of overshoot for diagonal junctions
429
430 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
431 fudge:=1; % factor applied to weights of heavy characters
432 math_spread:=.6; % extra openness of math symbols
433 superness:=1/sqrt2; % parameter for superellipses
434 superpull:=1/6; % extra openness inside bowls
435 beak_darkness:=11/30; % fraction of triangle inside beak serifs
436 ligs:=2; % level of ligatures to be included
437
438 square_dots:=false; % should dots be square?
439 hefty:=false; % should we try hard not to be overweight?
440 serifs:=true; % should serifs and bulbs be attached?
441 monospace:=false; % should all characters have the same width?
442 variant_g:=true; % should an italic-style g be used?
443 low_asterisk:=false; % should the asterisk be centered at the axis?
444 math_fitting:=true; % should math-mode spacing be used?
445
446 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
447 subs:=5/7; % subscripts to 7pt will normally be in 5pt type
448 rth#:=.4pt#; % assume that rules will come from cmex10
449 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
450 math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1
451 math_axis#+1.51rth#+12/36pt#, % num2
452 math_axis#+1.51rth#+34/36pt#, % num3
453 -(math_axis#-3.51rth#-subs*fig_height#-86/36pt#), % denom1
454 -(math_axis#-1.51rth#-subs*fig_height#-12/36pt#), % denom2
455 6.99pt#-subs*asc_height#, % sup1
456 6.49pt#-subs*asc_height#, % sup2
457 72/36pt#, % sup3
458 36/36pt#, % sub1
459 72/36pt#, % sub2
460 subs*asc_height#-36/36pt#, % sup\_drop
461 18/36pt#, % sub\_drop
462 11.9pt#, % delim1
463 8.1pt#, % delim2
464 math_axis#; % axis\_height
465
466 generate mathvec % switch to the driver file
467 % \end{macrocode}
468 % \begin{macrocode}
469 %</mffilec>
470 % \end{macrocode}
471 % \begin{macrocode}
472 %<*mffiled>
473 % Vector Symbols, from Computer Modern Math Symbols 8 point
474 if unknown cmbase: input cmbase fi
475
476 font_identifier:="VECT"; font_size 8pt#;
477
478 u#:=17/36pt#; % unit width
479 width_adj#:=0pt#; % width adjustment for certain characters
480 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
481 cap_serif_fit#:=4.1/36pt#; % extra sidebar near uppercase serifs
482 letter_fit#:=0pt#; % extra space added to all sidebars
483
484 body_height#:=216/36pt#; % height of tallest characters
485 asc_height#:=200/36pt#; % height of lowercase ascenders
486 cap_height#:=196.8/36pt#; % height of caps
487 fig_height#:=185.6/36pt#; % height of numerals
488 x_height#:=124/36pt#; % height of lowercase without ascenders
489 math_axis#:=72/36pt#; % axis of symmetry for math symbols
490 bar_height#:=69.6/36pt#; % height of crossbar in lowercase e
491 comma_depth#:=56/36pt#; % depth of comma below baseline
492 desc_depth#:=56/36pt#; % depth of lowercase descenders
493
494 crisp#:=8/36pt#; % diameter of serif corners
495 tiny#:=8/36pt#; % diameter of rounded corners
496 fine#:=7/36pt#; % diameter of sharply rounded corners
497 thin_join#:=7/36pt#; % width of extrafine details
498 hair#:=9/36pt#; % lowercase hairline breadth
499 stem#:=21.5/36pt#; % lowercase stem breadth
500 curve#:=25/36pt#; % lowercase curve breadth
501 ess#:=23/36pt#; % breadth in middle of lowercase s
502 flare#:=26.5/36pt#; % diameter of bulbs or breadth of terminals
503 dot_size#:=32/36pt#; % diameter of dots
504 cap_hair#:=9.5/36pt#; % uppercase hairline breadth
505 cap_stem#:=25.5/36pt#; % uppercase stem breadth
506 cap_curve#:=29/36pt#; % uppercase curve breadth
507 cap_ess#:=26/36pt#; % breadth in middle of uppercase s
508 rule_thickness#:=.36pt#; % thickness of lines in math symbols
509
510 dish#:=1/36pt#; % amount erased at top or bottom of serifs
511 bracket#:=16/36pt#; % vertical distance from serif base to tangent
512 jut#:=24/36pt#; % protrusion of lowercase serifs
513 cap_jut#:=29/36pt#; % protrusion of uppercase serifs
514 beak_jut#:=8.4/36pt#; % horizontal protrusion of beak serifs
515 beak#:=56/36pt#; % vertical protrusion of beak serifs
516 vair#:=8/36pt#; % vertical diameter of hairlines
517 notch_cut#:=8pt#; % maximum breadth above or below notches
518 bar#:=9.5/36pt#; % lowercase bar thickness
519 slab#:=9.5/36pt#; % serif and arm thickness
520 cap_bar#:=9.5/36pt#; % uppercase bar thickness
521 cap_band#:=9.5/36pt#; % uppercase thickness above/below lobes
522 cap_notch_cut#:=8pt#; % max breadth above/below uppercase notches
523 serif_drop#:=3.2/36pt#; % vertical drop of sloped serifs
524 stem_corr#:=1/36pt#; % for small refinements of stem breadth
525 vair_corr#:=1/36pt#; % for small refinements of hairline height
526 apex_corr#:=0pt#; % extra width at diagonal junctions
527
528 o#:=6/36pt#; % amount of overshoot for curves
529 apex_o#:=6/36pt#; % amount of overshoot for diagonal junctions
530
531 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
532 fudge:=1; % factor applied to weights of heavy characters
533 math_spread:=.4; % extra openness of math symbols
534 superness:=1/sqrt2; % parameter for superellipses
535 superpull:=1/6; % extra openness inside bowls
536 beak_darkness:=11/30; % fraction of triangle inside beak serifs
537 ligs:=2; % level of ligatures to be included
538
539 square_dots:=false; % should dots be square?
540 hefty:=false; % should we try hard not to be overweight?
541 serifs:=true; % should serifs and bulbs be attached?
542 monospace:=false; % should all characters have the same width?
543 variant_g:=true; % should an italic-style g be used?
544 low_asterisk:=false; % should the asterisk be centered at the axis?
545 math_fitting:=true; % should math-mode spacing be used?
546
547 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
548 subs:=6/8; % subscripts to 8pt will normally be in 6pt type
549 rth#:=.4pt#; % assume that rules will come from cmex10
550 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
551 math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1
552 math_axis#+1.51rth#+24/36pt#, % num2
553 math_axis#+1.51rth#+38/36pt#, % num3
554 -(math_axis#-3.51rth#-subs*fig_height#-98/36pt#), % denom1
555 -(math_axis#-1.51rth#-subs*fig_height#-24/36pt#), % denom2
556 7.49pt#-subs*asc_height#, % sup1
557 6.99pt#-subs*asc_height#, % sup2
558 82/36pt#, % sup3
559 36/36pt#, % sub1
560 72/36pt#, % sub2
561 subs*asc_height#-36/36pt#, % sup\_drop
562 18/36pt#, % sub\_drop
563 11.9pt#, % delim1
564 9.1pt#, % delim2
565 math_axis#; % axis\_height
566
567 generate mathvec % switch to the driver file
568 % \end{macrocode}
569 % \begin{macrocode}
570 %</mffiled>
571 % \end{macrocode}
572 % \begin{macrocode}
573 %<*mffilee>
574 % Vector Symbols, from Computer Modern Math Symbols 9 point
575 if unknown cmbase: input cmbase fi
576
577 font_identifier:="VECT"; font_size 9pt#;
578
579 u#:=18.5/36pt#; % unit width
580 width_adj#:=0pt#; % width adjustment for certain characters
581 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
582 cap_serif_fit#:=4.6/36pt#; % extra sidebar near uppercase serifs
583 letter_fit#:=0pt#; % extra space added to all sidebars
584
585 body_height#:=243/36pt#; % height of tallest characters
586 asc_height#:=225/36pt#; % height of lowercase ascenders
587 cap_height#:=221.4/36pt#; % height of caps
588 fig_height#:=208.8/36pt#; % height of numerals
589 x_height#:=139.5/36pt#; % height of lowercase without ascenders
590 math_axis#:=81/36pt#; % axis of symmetry for math symbols
591 bar_height#:=78.3/36pt#; % height of crossbar in lowercase e
592 comma_depth#:=63/36pt#; % depth of comma below baseline
593 desc_depth#:=63/36pt#; % depth of lowercase descenders
594
595 crisp#:=8/36pt#; % diameter of serif corners
596 tiny#:=8/36pt#; % diameter of rounded corners
597 fine#:=7/36pt#; % diameter of sharply rounded corners
598 thin_join#:=7/36pt#; % width of extrafine details
599 hair#:=9/36pt#; % lowercase hairline breadth
600 stem#:=23/36pt#; % lowercase stem breadth
601 curve#:=27/36pt#; % lowercase curve breadth
602 ess#:=25/36pt#; % breadth in middle of lowercase s
603 flare#:=29/36pt#; % diameter of bulbs or breadth of terminals
604 dot_size#:=35/36pt#; % diameter of dots
605 cap_hair#:=10/36pt#; % uppercase hairline breadth
606 cap_stem#:=28/36pt#; % uppercase stem breadth
607 cap_curve#:=32/36pt#; % uppercase curve breadth
608 cap_ess#:=30/36pt#; % breadth in middle of uppercase s
609 rule_thickness#:=.38pt#; % thickness of lines in math symbols
610
611 dish#:=1/36pt#; % amount erased at top or bottom of serifs
612 bracket#:=18/36pt#; % vertical distance from serif base to tangent
613 jut#:=27/36pt#; % protrusion of lowercase serifs
614 cap_jut#:=33/36pt#; % protrusion of uppercase serifs
615 beak_jut#:=9.2/36pt#; % horizontal protrusion of beak serifs
616 beak#:=63/36pt#; % vertical protrusion of beak serifs
617 vair#:=8/36pt#; % vertical diameter of hairlines
618 notch_cut#:=9pt#; % maximum breadth above or below notches
619 bar#:=10/36pt#; % lowercase bar thickness
620 slab#:=10/36pt#; % serif and arm thickness
621 cap_bar#:=10/36pt#; % uppercase bar thickness
622 cap_band#:=10/36pt#; % uppercase thickness above/below lobes
623 cap_notch_cut#:=9pt#; % max breadth above/below uppercase notches
624 serif_drop#:=3.6/36pt#; % vertical drop of sloped serifs
625 stem_corr#:=1/36pt#; % for small refinements of stem breadth
626 vair_corr#:=1/36pt#; % for small refinements of hairline height
627 apex_corr#:=0pt#; % extra width at diagonal junctions
628
629 o#:=7/36pt#; % amount of overshoot for curves
630 apex_o#:=7/36pt#; % amount of overshoot for diagonal junctions
631
632 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
633 fudge:=1; % factor applied to weights of heavy characters
634 math_spread:=.2; % extra openness of math symbols
635 superness:=1/sqrt2; % parameter for superellipses
636 superpull:=1/6; % extra openness inside bowls
637 beak_darkness:=11/30; % fraction of triangle inside beak serifs
638 ligs:=2; % level of ligatures to be included
639
640 square_dots:=false; % should dots be square?
641 hefty:=false; % should we try hard not to be overweight?
642 serifs:=true; % should serifs and bulbs be attached?
643 monospace:=false; % should all characters have the same width?
644 variant_g:=true; % should an italic-style g be used?
645 low_asterisk:=false; % should the asterisk be centered at the axis?
646 math_fitting:=true; % should math-mode spacing be used?
647
648 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
649 subs:=6/9; % subscripts to 9pt will normally be in 6pt type
650 rth#:=.4pt#; % assume that rules will come from cmex10
651 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
652 math_axis#+3.51rth#+36/36pt#+subs*desc_depth#, % num1
653 math_axis#+1.51rth#+30/36pt#, % num2
654 math_axis#+1.51rth#+43/36pt#, % num3
655 -(math_axis#-3.51rth#-subs*fig_height#-111/36pt#), % denom1
656 -(math_axis#-1.51rth#-subs*fig_height#-30/36pt#), % denom2
657 8.49pt#-subs*asc_height#, % sup1
658 7.99pt#-subs*asc_height#, % sup2
659 93/36pt#, % sup3
660 36/36pt#, % sub1
661 -(7.99pt#-2subs*asc_height#-3.1rth#), % sub2
662 subs*asc_height#-36/36pt#, % sup\_drop
663 18/36pt#, % sub\_drop
664 23.9pt#, % delim1
665 9.1pt#, % delim2
666 math_axis#; % axis\_height
667
668 generate mathvec % switch to the driver file
669 % \end{macrocode}
670 % \begin{macrocode}
671 %</mffilee>
672 % \end{macrocode}
673 % \begin{macrocode}
674 %<*mffilef>
675 % Vector symbols, from Computer Modern Math Symbols 10 point
676 if unknown cmbase: input cmbase fi
677
678 font_identifier:="VECT"; font_size 10pt#;
679
680 u#:=20/36pt#; % unit width
681 width_adj#:=0pt#; % width adjustment for certain characters
682 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
683 cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs
684 letter_fit#:=0pt#; % extra space added to all sidebars
685
686 body_height#:=270/36pt#; % height of tallest characters
687 asc_height#:=250/36pt#; % height of lowercase ascenders
688 cap_height#:=246/36pt#; % height of caps
689 fig_height#:=232/36pt#; % height of numerals
690 x_height#:=155/36pt#; % height of lowercase without ascenders
691 math_axis#:=90/36pt#; % axis of symmetry for math symbols
692 bar_height#:=87/36pt#; % height of crossbar in lowercase e
693 comma_depth#:=70/36pt#; % depth of comma below baseline
694 desc_depth#:=70/36pt#; % depth of lowercase descenders
695
696 crisp#:=8/36pt#; % diameter of serif corners
697 tiny#:=8/36pt#; % diameter of rounded corners
698 fine#:=7/36pt#; % diameter of sharply rounded corners
699 thin_join#:=7/36pt#; % width of extrafine details
700 hair#:=9/36pt#; % lowercase hairline breadth
701 stem#:=24/36pt#; % lowercase stem breadth
702 curve#:=29/36pt#; % lowercase curve breadth
703 ess#:=27/36pt#; % breadth in middle of lowercase s
704 flare#:=32/36pt#; % diameter of bulbs or breadth of terminals
705 dot_size#:=38/36pt#; % diameter of dots
706 cap_hair#:=11/36pt#; % uppercase hairline breadth
707 cap_stem#:=30/36pt#; % uppercase stem breadth
708 cap_curve#:=35/36pt#; % uppercase curve breadth
709 cap_ess#:=33/36pt#; % breadth in middle of uppercase s
710 rule_thickness#:=.4pt#; % thickness of lines in math symbols
711
712 dish#:=1/36pt#; % amount erased at top or bottom of serifs
713 bracket#:=20/36pt#; % vertical distance from serif base to tangent
714 jut#:=30/36pt#; % protrusion of lowercase serifs
715 cap_jut#:=37/36pt#; % protrusion of uppercase serifs
716 beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs
717 beak#:=70/36pt#; % vertical protrusion of beak serifs
718 vair#:=8/36pt#; % vertical diameter of hairlines
719 notch_cut#:=10pt#; % maximum breadth above or below notches
720 bar#:=11/36pt#; % lowercase bar thickness
721 slab#:=11/36pt#; % serif and arm thickness
722 cap_bar#:=11/36pt#; % uppercase bar thickness
723 cap_band#:=11/36pt#; % uppercase thickness above/below lobes
724 cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches
725 serif_drop#:=4/36pt#; % vertical drop of sloped serifs
726 stem_corr#:=1/36pt#; % for small refinements of stem breadth
727 vair_corr#:=1/36pt#; % for small refinements of hairline height
728 apex_corr#:=0pt#; % extra width at diagonal junctions
729
730 o#:=8/36pt#; % amount of overshoot for curves
731 apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions
732
733 slant:=.25; % tilt ratio $(\Delta x/\Delta y)$
734 fudge:=1; % factor applied to weights of heavy characters
735 math_spread:=0; % extra openness of math symbols
736 superness:=1/sqrt2; % parameter for superellipses
737 superpull:=1/6; % extra openness inside bowls
738 beak_darkness:=11/30; % fraction of triangle inside beak serifs
739 ligs:=2; % level of ligatures to be included
740
741 square_dots:=false; % should dots be square?
742 hefty:=false; % should we try hard not to be overweight?
743 serifs:=true; % should serifs and bulbs be attached?
744 monospace:=false; % should all characters have the same width?
745 variant_g:=true; % should an italic-style g be used?
746 low_asterisk:=false; % should the asterisk be centered at the axis?
747 math_fitting:=true; % should math-mode spacing be used?
748
749 % the following font parameters are explained in {\sl The \TeX book}, Appendix G
750 subs:=7/10; % subscripts to 10pt will normally be in 7pt type
751 rth#:=.4pt#; % assume that rules will come from cmex10
752 fontdimen 8: % parameters $\sigma_8$ through $\sigma_{22}$ will now be listed
753 math_axis#+3.51rth#+54/36pt#+subs*desc_depth#, % num1
754 math_axis#+1.51rth#+30/36pt#, % num2
755 math_axis#+1.51rth#+48/36pt#, % num3
756 -(math_axis#-3.51rth#-subs*fig_height#-124/36pt#), % denom1
757 -(math_axis#-1.51rth#-subs*fig_height#-30/36pt#), % denom2
758 8.99pt#-subs*asc_height#, % sup1
759 8.49pt#-subs*asc_height#, % sup2
760 104/36pt#, % sup3
761 54/36pt#, % sub1
762 -(8.49pt#-2subs*asc_height#-3.1rth#), % sub2
763 subs*asc_height#-36/36pt#, % sup\_drop
764 18/36pt#, % sub\_drop
765 23.9pt#, % delim1
766 10.1pt#, % delim2
767 math_axis#; % axis\_height
768
769 generate mathvec % switch to the driver file
770 % \end{macrocode}
771 % \begin{macrocode}
772 %</mffilef>
773 % \end{macrocode}
774 % \begin{macrocode}
775 %<*mfmath>
776 % Parameters from The Computer Modern Symbols family (by D. E. Knuth, 1979--1985)
777
778 font_coding_scheme:="TeX math symbols";
779 mode_setup; font_setup;
780
781 autorounding:=0;
782
783 font_slant slant; font_x_height x_height#;
784 font_quad 18u# if not monospace:+4letter_fit# fi;
785 % (The spacing is zero so that \TeX\ will always add the italic correction.)
786 % (The calling file should give the other math symbol font parameters.)
787
788 slant:=mono_charic#:=0; % the remaining characters will not be slanted
789 currenttransform:=identity yscaled aspect_ratio scaled granularity;
790 input vsymbol; % the symbols
791
792 bye.
793 % \end{macrocode}
794 % \begin{macrocode}
795 %</mfmath>
796 % \end{macrocode}
797 % \begin{macrocode}
798 %<*mfsymbol>
799 % D\'efinition des caract\`eres
800 % Character codes \0000--\014, \0020--\0034 and \0040--\0057 are generated.
801
802 % Italic corrections have not been computed for most of these characters,
803 % since they are generally not slanted.
804
805 % Fl\`eches longues
806
807 r_arrow1=oct"000";
808 r_arrow2=oct"001";
809 r_arrow3=oct"002";
810 r_arrow4=oct"003";
811 r_arrow5=oct"004";
812 r_arrow6=oct"005";
813 r_arrow7=oct"006";
814 r_arrow8=oct"007";
815 r_arrow9=oct"010";
816 r_arrow10=oct"011";
817 r_arrow11=oct"012";
818 r_arrow12=oct"013";
819 r_arrow13=oct"014";
820
821 % Fl\`eches courtes
822
823 r_arrow21=oct"020";
824 r_arrow22=oct"021";
825 r_arrow23=oct"022";
826 r_arrow24=oct"023";
827 r_arrow25=oct"024";
828 r_arrow26=oct"025";
829 r_arrow27=oct"026";
830 r_arrow28=oct"027";
831 r_arrow29=oct"030";
832 r_arrow30=oct"031";
833 r_arrow31=oct"032";
834 r_arrow32=oct"033";
835 r_arrow33=oct"034";
836
837 % Traits
838
839 trait01=oct"040";
840 trait02=oct"041";
841 trait03=oct"042";
842 trait04=oct"043";
843 trait05=oct"044";
844 trait06=oct"045";
845 trait07=oct"046";
846 trait08=oct"047";
847
848 % Traits avec extr\'emit\'es
849
850 traittest01=oct"050";
851 traittest02=oct"051";
852 traittest03=oct"052";
853 traittest04=oct"053";
854 traittest05=oct"054";
855 traittest06=oct"055";
856 traittest07=oct"056";
857 traittest08=oct"057";
858
859 input vecsym; % Les symboles
860 % \end{macrocode}
861 % \begin{macrocode}
862 %</mfsymbol>
863 % \end{macrocode}
864 % \begin{macrocode}
865 %<*mfvecsym>
866 % This file generates the following characters when their codes are known:
867 % |right_arrow|.
868
869
870 iff known r_arrow1: cmchar "Dessin original";
871 compute_spread(.45x_height#,.55x_height#);
872 beginchar(r_arrow1,18u#,v_center(spread#+rule_thickness#));
873 adjust_fit(0,0); pickup fine.nib;%crisp -> fine pour tester
874 pos1(rule_thickness,90); pos2(rule_thickness,90);%Trait horizontal
875 pos3(rule_thickness,0); pos4(rule_thickness,0);%Extr\'emit\'e fl\`eche
876 y0=y1=y2=math_axis;%Axe horizontal
877 x1-.5rule_thickness=eps;%Extr\'emit\'e gauche
878 rt x0=hround(w)-eps;%Extr\'emit\'e droite
879 y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;%largeur
880 %fl\`eche
881 x3=x4=x0-if monospace:3u else:4u fi-eps;%longueur fl\`eche
882 pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche
883 pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche
884 z9=.2[.5[z3,z4],z0];%tangente extr\'emit\'es
885 numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche
886 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection
887 %courbe avec ligne horizontale inf\'erieure
888 x2=xpart point t of p;%Abscisse de cette intersection
889 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
890 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
891 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
892 penlabels(0,1,2,3,4,5,6,9); endchar;
893
894 iff known r_arrow5: cmchar "Fl\`eche grande";
895 compute_spread(.45x_height#,.55x_height#);
896 beginchar(r_arrow5,18u#,v_center(spread#+rule_thickness#));
897 adjust_fit(0,0); pickup fine.nib;
898 pos1(rule_thickness,90); pos2(rule_thickness,90);
899 pos3(rule_thickness,0); pos4(rule_thickness,0);
900 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
901 y3-y0=y0-y4=2.5u+eps;
902 x3=x4=x0-4.5u-eps;
903 z9=.35[.5[z3,z4],z0];
904 numeric t; path p; p=z4..z9;
905 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
906 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
907 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
908 --z3..z0 & cycle; % arrowhead and stem
909 penlabels(0,1,2,3,4,9); endchar;
910
911 iff known r_arrow3: cmchar "Fl\`eche normale";
912 compute_spread(.45x_height#,.55x_height#);
913 beginchar(r_arrow3,18u#,v_center(spread#+rule_thickness#));
914 adjust_fit(0,0); pickup fine.nib;
915 pos1(rule_thickness,90); pos2(rule_thickness,90);
916 pos3(rule_thickness,0); pos4(rule_thickness,0);
917 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
918 y3-y0=y0-y4=2.1u+eps;
919 x3=x4=x0-3.8u-eps;
920 z9=.35[.5[z3,z4],z0];
921 numeric t; path p; p=z4..z9;
922 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
923 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
924 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
925 --z3..z0 & cycle; % arrowhead and stem
926 penlabels(0,1,2,3,4,9); endchar;
927
928 iff known r_arrow6: cmchar "Fl\`eche \'etroite";
929 compute_spread(.45x_height#,.55x_height#);
930 beginchar(r_arrow6,18u#,v_center(spread#+rule_thickness#));
931 adjust_fit(0,0); pickup fine.nib;
932 pos1(rule_thickness,90); pos2(rule_thickness,90);
933 pos3(rule_thickness,0); pos4(rule_thickness,0);
934 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
935 y3-y0=y0-y4=1.5u+eps;
936 x3=x4=x0-4.5u-eps;
937 z9=.35[.5[z3,z4],z0];
938 numeric t; path p; p=z4..z9;
939 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
940 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
941 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
942 --z3..z0 & cycle; % arrowhead and stem
943 penlabels(0,1,2,3,4,9); endchar;
944
945 iff known r_arrow8: cmchar "Fleche droite";
946 compute_spread(.45x_height#,.55x_height#);
947 beginchar(r_arrow8,18u#,v_center(spread#+rule_thickness#));
948 adjust_fit(0,0); pickup fine.nib;
949 pos1(rule_thickness,90); pos2(rule_thickness,-90);
950 pos3(hair,0); pos6(hair,0);
951 pos4(rule_thickness,0); pos5(rule_thickness,0);
952 y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u);
953 y3-y1=y1-y6=2.2u+eps;
954 x3=x6=x2-3.5u-eps;
955 x4=x5=hround(w)-0.4rule_thickness;
956 y4-y1=y1-y5=.2hair;
957 filldraw z2l{dir 165}...{z3-z2}z3l--z3r{z4-z3}...
958 z4--z5...{z6-z5}z6r--z6l{z2-z6}...{dir 15}z2r---z1l..z1r---z2l & cycle;
959 penlabels(1,2,3,4,5,6);
960 endchar;
961
962 iff known r_arrow2: cmchar "cmsy plus \'etroit";
963 compute_spread(.45x_height#,.55x_height#);
964 beginchar(r_arrow2,18u#,v_center(spread#+rule_thickness#));%18u->12u
965 adjust_fit(0,0); pickup fine.nib;
966 pos1(rule_thickness,90); pos2(rule_thickness,90);
967 pos3(rule_thickness,0); pos4(rule_thickness,0);
968 y0=y1=y2=math_axis;%Axe horizontal
969 x1-.5rule_thickness=eps;%Extr\'emit\'e gauche
970 rt x0=hround(w)-eps;%Extr\'emit\'e droite
971 y3-y0=y0-y4=if monospace:.16 else:.22 fi asc_height+eps;%largeur
972 %fl\`eche
973 x3=x4=x0-if monospace:4u else:4u fi-eps;%longueur fl\`eche
974 pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche
975 pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche
976 z9=.5[.5[z3,z4],z0];%tangente extr\'emit\'es
977 numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche
978 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection
979 %courbe avec ligne horizontale inf\'erieure
980 x2=xpart point t of p;%Abscisse de cette intersection
981 filldraw z0--z5..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
982 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
983 --z3r{z9-z3}..z6--z0 & cycle; % arrowhead and stem
984 penlabels(0,1,2,3,4,5,6,9); endchar;
985
986 iff known r_arrow4: cmchar "Triangle";
987 compute_spread(.45x_height#,.55x_height#);
988 beginchar(r_arrow4,18u#,v_center(spread#+rule_thickness#));%18u->12u
989 adjust_fit(0,0); pickup fine.nib;
990 pos1(rule_thickness,90); pos2(rule_thickness,90);
991 pos3(rule_thickness,0); pos4(rule_thickness,0);
992 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
993 y3-y0=y0-y4=2.1u+eps;
994 x3=x4=x0-3.8u-eps;
995 %z9=.35[.5[z3,z4],z0];
996 numeric t; path p; p=z4..z3;
997 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
998 filldraw z0..z4--subpath (0,t) of\\(z4..z3)
999 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z4)
1000 --z3..z0 & cycle; % arrowhead and stem
1001 penlabels(0,1,2,3,4); endchar;
1002
1003 iff known r_arrow9: cmchar "Triangle pench\'e";
1004 compute_spread(.45x_height#,.55x_height#);
1005 beginchar(r_arrow9,18u#,v_center(spread#+rule_thickness#));%18u->12u
1006 adjust_fit(0,0); pickup fine.nib;
1007 pos1(rule_thickness,90); pos2(rule_thickness,76);
1008 pos3(rule_thickness,0); pos4(rule_thickness,0);
1009 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1010 y3-y0=y0-y4=2.1u+eps;
1011 x2=hround(w-4u);
1012 x3=.25(y3-y2)+x2-eps;
1013 x4=-.25(y2-y4)+x2-eps;
1014 filldraw z0..z3--z2r---z1r..z1l---z2l--z4..z0 & cycle; % arrowhead and stem
1015 penlabels(0,1,2,3,4); endchar;
1016
1017 iff known r_arrow7: cmchar "Harpon";
1018 compute_spread(.45x_height#,.55x_height#);
1019 beginchar(r_arrow7,18u#,v_center(spread#+rule_thickness#));
1020 adjust_fit(0,0); pickup fine.nib;
1021 pos1(rule_thickness,90); pos2(rule_thickness,-90);
1022 pos3(hair,0); pos6(hair,0);
1023 pos4(rule_thickness,0); pos5(rule_thickness,0);
1024 y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u);
1025 y3-y1=y1-y6=2.5u+eps;
1026 x3=x6=x2-2u-eps;
1027 x4=x5=hround(w)-0.4rule_thickness;
1028 y4-y1=y1-y5=.2hair;
1029 filldraw z2l{dir 175}...{dir 110}z3l--z3r{dir -60}...{dir
1030 -5}z4--z5{dir 185}...{dir -120}z6r--z6l{dir 70}...{dir
1031 5}z2r---z1l..z1r---z2l & cycle;
1032 penlabels(1,2,3,4,5,6);
1033 endchar;
1034
1035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1036 %
1037 % Version plus \'etroite
1038 %
1039 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1040
1041 iff known r_arrow21: cmchar "Dessin original";
1042 compute_spread(.45x_height#,.55x_height#);
1043 beginchar(r_arrow21,10u#,v_center(spread#+rule_thickness#));
1044 adjust_fit(0,0); pickup fine.nib;%crisp -> fine pour tester
1045 pos1(rule_thickness,90); pos2(rule_thickness,90);%Trait horizontal
1046 pos3(rule_thickness,0); pos4(rule_thickness,0);%Extr\'emit\'e fl\`eche
1047 y0=y1=y2=math_axis;%Axe horizontal
1048 x1-.5rule_thickness=eps;%Extr\'emit\'e gauche
1049 rt x0=hround(w-u);%Extr\'emit\'e droite
1050 y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;%largeur
1051 %fl\`eche
1052 x3=x4=x0-if monospace:3u else:4u fi-eps;%longueur fl\`eche
1053 pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche
1054 pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche
1055 z9=.2[.5[z3,z4],z0];%tangente extr\'emit\'es
1056 numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche
1057 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection
1058 %courbe avec ligne horizontale inf\'erieure
1059 x2=xpart point t of p;%Abscisse de cette intersection
1060 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
1061 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
1062 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
1063 penlabels(0,1,2,3,4,5,6,9); endchar;
1064
1065 iff known r_arrow25: cmchar "Fl\`eche grande";
1066 compute_spread(.45x_height#,.55x_height#);
1067 beginchar(r_arrow25,10u#,v_center(spread#+rule_thickness#));
1068 adjust_fit(0,0); pickup fine.nib;
1069 pos1(rule_thickness,90); pos2(rule_thickness,90);
1070 pos3(rule_thickness,0); pos4(rule_thickness,0);
1071 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1072 y3-y0=y0-y4=2.5u+eps;
1073 x3=x4=x0-4.5u-eps;
1074 z9=.35[.5[z3,z4],z0];
1075 numeric t; path p; p=z4..z9;
1076 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1077 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
1078 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
1079 --z3..z0 & cycle; % arrowhead and stem
1080 penlabels(0,1,2,3,4,9); endchar;
1081
1082 iff known r_arrow23: cmchar "Fl\`eche normale";
1083 compute_spread(.45x_height#,.55x_height#);
1084 beginchar(r_arrow23,10u#,v_center(spread#+rule_thickness#));
1085 adjust_fit(0,0); pickup fine.nib;
1086 pos1(rule_thickness,90); pos2(rule_thickness,90);
1087 pos3(rule_thickness,0); pos4(rule_thickness,0);
1088 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1089 y3-y0=y0-y4=2.1u+eps;
1090 x3=x4=x0-3.8u-eps;
1091 z9=.35[.5[z3,z4],z0];
1092 numeric t; path p; p=z4..z9;
1093 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1094 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
1095 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
1096 --z3..z0 & cycle; % arrowhead and stem
1097 penlabels(0,1,2,3,4,9); endchar;
1098
1099 iff known r_arrow26: cmchar "Fl\`eche \'etroite";
1100 compute_spread(.45x_height#,.55x_height#);
1101 beginchar(r_arrow26,10u#,v_center(spread#+rule_thickness#));
1102 adjust_fit(0,0); pickup fine.nib;
1103 pos1(rule_thickness,90); pos2(rule_thickness,90);
1104 pos3(rule_thickness,0); pos4(rule_thickness,0);
1105 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1106 y3-y0=y0-y4=1.5u+eps;
1107 x3=x4=x0-4.5u-eps;
1108 z9=.35[.5[z3,z4],z0];
1109 numeric t; path p; p=z4..z9;
1110 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1111 filldraw z0..z4--subpath (0,t) of\\(z4..z9)
1112 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9)
1113 --z3..z0 & cycle; % arrowhead and stem
1114 penlabels(0,1,2,3,4,9); endchar;
1115
1116 iff known r_arrow28: cmchar "Fl\`eche droite";
1117 compute_spread(.45x_height#,.55x_height#);
1118 beginchar(r_arrow28,10u#,v_center(spread#+rule_thickness#));
1119 adjust_fit(0,0); pickup fine.nib;
1120 pos1(rule_thickness,90); pos2(rule_thickness,-90);
1121 pos3(hair,0); pos6(hair,0);
1122 pos4(rule_thickness,0); pos5(rule_thickness,0);
1123 y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u);
1124 y3-y1=y1-y6=2.2u+eps;
1125 x3=x6=x2-3.5u-eps;
1126 x4=x5=hround(w)-0.4rule_thickness;
1127 y4-y1=y1-y5=.2hair;
1128 filldraw z2l{dir 165}...{z3-z2}z3l--z3r{z4-z3}...
1129 z4--z5...{z6-z5}z6r--z6l{z2-z6}...{dir 15}z2r---z1l..z1r---z2l & cycle;
1130 penlabels(1,2,3,4,5,6);
1131 endchar;
1132
1133 iff known r_arrow22: cmchar "cmsy plus \'etroit";
1134 compute_spread(.45x_height#,.55x_height#);
1135 beginchar(r_arrow22,10u#,v_center(spread#+rule_thickness#));%18u->12u
1136 adjust_fit(0,0); pickup fine.nib;
1137 pos1(rule_thickness,90); pos2(rule_thickness,90);
1138 pos3(rule_thickness,0); pos4(rule_thickness,0);
1139 y0=y1=y2=math_axis;%Axe horizontal
1140 x1-.5rule_thickness=eps;%Extr\'emit\'e gauche
1141 rt x0=hround(w)-eps;%Extr\'emit\'e droite
1142 y3-y0=y0-y4=if monospace:.16 else:.22 fi asc_height+eps;%largeur
1143 %fl\`eche
1144 x3=x4=x0-if monospace:4u else:4u fi-eps;%longueur fl\`eche
1145 pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche
1146 pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche
1147 z9=.5[.5[z3,z4],z0];%tangente extr\'emit\'es
1148 numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche
1149 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection
1150 %courbe avec ligne horizontale inf\'erieure
1151 x2=xpart point t of p;%Abscisse de cette intersection
1152 filldraw z0--z5..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
1153 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
1154 --z3r{z9-z3}..z6--z0 & cycle; % arrowhead and stem
1155 penlabels(0,1,2,3,4,5,6,9); endchar;
1156
1157 iff known r_arrow24: cmchar "Triangle";
1158 compute_spread(.45x_height#,.55x_height#);
1159 beginchar(r_arrow24,10u#,v_center(spread#+rule_thickness#));%18u->12u
1160 adjust_fit(0,0); pickup fine.nib;
1161 pos1(rule_thickness,90); pos2(rule_thickness,90);
1162 pos3(rule_thickness,0); pos4(rule_thickness,0);
1163 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1164 y3-y0=y0-y4=2.1u+eps;
1165 x3=x4=x0-3.8u-eps;
1166 %z9=.35[.5[z3,z4],z0];
1167 numeric t; path p; p=z4..z3;
1168 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1169 filldraw z0..z4--subpath (0,t) of\\(z4..z3)
1170 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z4)
1171 --z3..z0 & cycle; % arrowhead and stem
1172 penlabels(0,1,2,3,4); endchar;
1173
1174 iff known r_arrow29: cmchar "Triangle pench\'e";
1175 compute_spread(.45x_height#,.55x_height#);
1176 beginchar(r_arrow29,10u#,v_center(spread#+rule_thickness#));%18u->12u
1177 adjust_fit(0,0); pickup fine.nib;
1178 pos1(rule_thickness,90); pos2(rule_thickness,76);
1179 pos3(rule_thickness,0); pos4(rule_thickness,0);
1180 y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps;
1181 y3-y0=y0-y4=2.1u+eps;
1182 x2=hround(w-4u);
1183 x3=.25(y3-y2)+x2-eps;
1184 x4=-.25(y2-y4)+x2-eps;
1185 filldraw z0..z3--z2r---z1r..z1l---z2l--z4..z0 & cycle; % arrowhead and stem
1186 penlabels(0,1,2,3,4); endchar;
1187
1188 iff known r_arrow27: cmchar "Harpon";
1189 compute_spread(.45x_height#,.55x_height#);
1190 beginchar(r_arrow27,10u#,v_center(spread#+rule_thickness#));
1191 adjust_fit(0,0); pickup fine.nib;
1192 pos1(rule_thickness,90); pos2(rule_thickness,-90);
1193 pos3(hair,0); pos6(hair,0);
1194 pos4(rule_thickness,0); pos5(rule_thickness,0);
1195 y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u);
1196 y3-y1=y1-y6=2.5u+eps;
1197 x3=x6=x2-2u-eps;
1198 x4=x5=hround(w)-0.4rule_thickness;
1199 y4-y1=y1-y5=.2hair;
1200 filldraw z2l{dir 175}...{dir 110}z3l--z3r{dir -60}...{dir
1201 -5}z4--z5{dir 185}...{dir -120}z6r--z6l{dir 70}...{dir
1202 5}z2r---z1l..z1r---z2l & cycle;
1203 penlabels(1,2,3,4,5,6);
1204 endchar;
1205
1206 %%%%%%%%%%%%%%%%%%%% Trait pour remplissage
1207
1208 iff known trait01: cmchar "trait 3u";
1209 compute_spread(.45x_height#,.55x_height#);
1210 beginchar(trait01,3u#,v_center(spread#+rule_thickness#));
1211 adjust_fit(0,0); pickup rule.nib;
1212 x1=eps;
1213 x2=w-eps;
1214 y1=y2=math_axis;
1215 draw z1--z2;
1216 penlabels(1,2);
1217 endchar;
1218
1219 iff known trait02: cmchar "trait 4u";
1220 compute_spread(.45x_height#,.55x_height#);
1221 beginchar(trait02,4u#,v_center(spread#+rule_thickness#));
1222 adjust_fit(0,0); pickup rule.nib;
1223 x1=eps;
1224 x2=w-eps;
1225 y1=y2=math_axis;
1226 draw z1--z2;
1227 penlabels(1,2);
1228 endchar;
1229
1230 iff known trait03: cmchar "trait 5u";
1231 compute_spread(.45x_height#,.55x_height#);
1232 beginchar(trait03,5u#,v_center(spread#+rule_thickness#));
1233 adjust_fit(0,0); pickup rule.nib;
1234 x1=eps;
1235 x2=w-eps;
1236 y1=y2=math_axis;
1237 draw z1--z2;
1238 penlabels(1,2);
1239 endchar;
1240
1241 iff known trait04: cmchar "trait 6u";
1242 compute_spread(.45x_height#,.55x_height#);
1243 beginchar(trait04,6u#,v_center(spread#+rule_thickness#));
1244 adjust_fit(0,0); pickup rule.nib;
1245 x1=eps;
1246 x2=w-eps;
1247 y1=y2=math_axis;
1248 draw z1--z2;
1249 penlabels(1,2);
1250 endchar;
1251
1252 iff known trait05: cmchar "trait 7u";
1253 compute_spread(.45x_height#,.55x_height#);
1254 beginchar(trait05,7u#,v_center(spread#+rule_thickness#));
1255 adjust_fit(0,0); pickup rule.nib;
1256 x1=eps;
1257 x2=w-eps;
1258 y1=y2=math_axis;
1259 draw z1--z2;
1260 penlabels(1,2);
1261 endchar;
1262
1263 iff known trait06: cmchar "trait 8u";
1264 compute_spread(.45x_height#,.55x_height#);
1265 beginchar(trait06,8u#,v_center(spread#+rule_thickness#));
1266 adjust_fit(0,0); pickup rule.nib;
1267 x1=eps;
1268 x2=w-eps;
1269 y1=y2=math_axis;
1270 draw z1--z2;
1271 penlabels(1,2);
1272 endchar;
1273
1274 iff known trait07: cmchar "trait 9u";
1275 compute_spread(.45x_height#,.55x_height#);
1276 beginchar(trait07,9u#,v_center(spread#+rule_thickness#));
1277 adjust_fit(0,0); pickup rule.nib;
1278 x1=eps;
1279 x2=w-eps;
1280 y1=y2=math_axis;
1281 draw z1--z2;
1282 penlabels(1,2);
1283 endchar;
1284
1285 iff known trait08: cmchar "trait 10u";
1286 compute_spread(.45x_height#,.55x_height#);
1287 beginchar(trait08,10u#,v_center(spread#+rule_thickness#));
1288 adjust_fit(0,0); pickup rule.nib;
1289 x1=eps;
1290 x2=w-eps;
1291 y1=y2=math_axis;
1292 draw z1--z2;
1293 penlabels(1,2);
1294 endchar;
1295 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \`a virer traits pour tester
1296
1297 iff known traittest01: cmchar "traittest 3u";
1298 compute_spread(.45x_height#,.55x_height#);
1299 beginchar(traittest01,3u#,v_center(spread#+rule_thickness#));
1300 adjust_fit(0,0); pickup rule.nib;
1301 x1=eps;
1302 x2=w-eps;
1303 y1=y2=math_axis;
1304 x3=x4=x1;
1305 y3-y1=y1-y4=1.5u;
1306 x5=x6=x2;
1307 y5-y2=y2-y6=1.5u;
1308 draw z1--z2;
1309 draw z3--z4;
1310 draw z5--z6;
1311 penlabels(1,2,3,4,5,6);
1312 endchar;
1313
1314 iff known traittest02: cmchar "traittest 4u";
1315 compute_spread(.45x_height#,.55x_height#);
1316 beginchar(traittest02,4u#,v_center(spread#+rule_thickness#));
1317 adjust_fit(0,0); pickup rule.nib;
1318 x1=eps;
1319 x2=w-eps;
1320 y1=y2=math_axis;
1321 x3=x4=x1;
1322 y3-y1=y1-y4=1.5u;
1323 x5=x6=x2;
1324 y5-y2=y2-y6=1.5u;
1325 draw z1--z2;
1326 draw z3--z4;
1327 draw z5--z6;
1328 penlabels(1,2,3,4,5,6);
1329 endchar;
1330
1331 iff known traittest03: cmchar "traittest 5u";
1332 compute_spread(.45x_height#,.55x_height#);
1333 beginchar(traittest03,5u#,v_center(spread#+rule_thickness#));
1334 adjust_fit(0,0); pickup rule.nib;
1335 x1=eps;
1336 x2=w-eps;
1337 y1=y2=math_axis;
1338 x3=x4=x1;
1339 y3-y1=y1-y4=1.5u;
1340 x5=x6=x2;
1341 y5-y2=y2-y6=1.5u;
1342 draw z1--z2;
1343 draw z3--z4;
1344 draw z5--z6;
1345 penlabels(1,2,3,4,5,6);
1346 endchar;
1347
1348 iff known traittest04: cmchar "traittest 6u";
1349 compute_spread(.45x_height#,.55x_height#);
1350 beginchar(traittest04,6u#,v_center(spread#+rule_thickness#));
1351 adjust_fit(0,0); pickup rule.nib;
1352 x1=eps;
1353 x2=w-eps;
1354 y1=y2=math_axis;
1355 x3=x4=x1;
1356 y3-y1=y1-y4=1.5u;
1357 x5=x6=x2;
1358 y5-y2=y2-y6=1.5u;
1359 draw z1--z2;
1360 draw z3--z4;
1361 draw z5--z6;
1362 penlabels(1,2,3,4,5,6);
1363 endchar;
1364
1365 iff known traittest05: cmchar "traittest 7u";
1366 compute_spread(.45x_height#,.55x_height#);
1367 beginchar(traittest05,7u#,v_center(spread#+rule_thickness#));
1368 adjust_fit(0,0); pickup rule.nib;
1369 x1=eps;
1370 x2=w-eps;
1371 y1=y2=math_axis;
1372 x3=x4=x1;
1373 y3-y1=y1-y4=1.5u;
1374 x5=x6=x2;
1375 y5-y2=y2-y6=1.5u;
1376 draw z1--z2;
1377 draw z3--z4;
1378 draw z5--z6;
1379 penlabels(1,2,3,4,5,6);
1380 endchar;
1381
1382 iff known traittest06: cmchar "traittest 8u";
1383 compute_spread(.45x_height#,.55x_height#);
1384 beginchar(traittest06,8u#,v_center(spread#+rule_thickness#));
1385 adjust_fit(0,0); pickup rule.nib;
1386 x1=eps;
1387 x2=w-eps;
1388 y1=y2=math_axis;
1389 x3=x4=x1;
1390 y3-y1=y1-y4=1.5u;
1391 x5=x6=x2;
1392 y5-y2=y2-y6=1.5u;
1393 draw z1--z2;
1394 draw z3--z4;
1395 draw z5--z6;
1396 penlabels(1,2,3,4,5,6);
1397 endchar;
1398
1399 iff known traittest07: cmchar "traittest 9u";
1400 compute_spread(.45x_height#,.55x_height#);
1401 beginchar(traittest07,9u#,v_center(spread#+rule_thickness#));
1402 adjust_fit(0,0); pickup rule.nib;
1403 x1=eps;
1404 x2=w-eps;
1405 y1=y2=math_axis;
1406 x3=x4=x1;
1407 y3-y1=y1-y4=1.5u;
1408 x5=x6=x2;
1409 y5-y2=y2-y6=1.5u;
1410 draw z1--z2;
1411 draw z3--z4;
1412 draw z5--z6;
1413 penlabels(1,2,3,4,5,6);
1414 endchar;
1415
1416 iff known traittest08: cmchar "traittest 10u";
1417 compute_spread(.45x_height#,.55x_height#);
1418 beginchar(traittest08,10u#,v_center(spread#+rule_thickness#));
1419 adjust_fit(0,0); pickup rule.nib;
1420 x1=eps;
1421 x2=w-eps;
1422 y1=y2=math_axis;
1423 x3=x4=x1;
1424 y3-y1=y1-y4=1.5u;
1425 x5=x6=x2;
1426 y5-y2=y2-y6=1.5u;
1427 draw z1--z2;
1428 draw z3--z4;
1429 draw z5--z6;
1430 penlabels(1,2,3,4,5,6);
1431 endchar;
1432 % \end{macrocode}
1433 % \begin{macrocode}
1434 %</mfvecsym>
1435 % \end{macrocode}
1436 %\Finale