| 1 |
%% |
| 2 |
%% This is file `vecsym.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% esvect.dtx (with options: `mfvecsym') |
| 8 |
%% |
| 9 |
%% esvect package to typeset vectors. |
| 10 |
%% |
| 11 |
%% See also http://perso.wanadoo.fr/eddie.saudrais (in french) |
| 12 |
%% |
| 13 |
%% Run LaTeX on escevt.ins to generate files. |
| 14 |
%% |
| 15 |
%% Install the files: |
| 16 |
%% |
| 17 |
%% -- esvect.sty and uesvect.fd on TEXINPUT; |
| 18 |
%% -- vect5.mf, vect6.mf, vect7.mf, vect8.mf, vect9.mf, vect10.mf on |
| 19 |
%% MFINPUT; |
| 20 |
%% -- generate tfm files running METAFONT on *.mf files, and put |
| 21 |
%% *.tfm files on the right location. |
| 22 |
%% |
| 23 |
%% Run LaTeX on esvect.dtx to generate |
| 24 |
%% documentation. |
| 25 |
%% |
| 26 |
|
| 27 |
iff known r_arrow1: cmchar "Dessin original"; |
| 28 |
compute_spread(.45x_height#,.55x_height#); |
| 29 |
beginchar(r_arrow1,18u#,v_center(spread#+rule_thickness#)); |
| 30 |
adjust_fit(0,0); pickup fine.nib;%crisp -> fine pour tester |
| 31 |
pos1(rule_thickness,90); pos2(rule_thickness,90);%Trait horizontal |
| 32 |
pos3(rule_thickness,0); pos4(rule_thickness,0);%Extr\'emit\'e fl\`eche |
| 33 |
y0=y1=y2=math_axis;%Axe horizontal |
| 34 |
x1-.5rule_thickness=eps;%Extr\'emit\'e gauche |
| 35 |
rt x0=hround(w)-eps;%Extr\'emit\'e droite |
| 36 |
y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;%largeur |
| 37 |
x3=x4=x0-if monospace:3u else:4u fi-eps;%longueur fl\`eche |
| 38 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche |
| 39 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche |
| 40 |
z9=.2[.5[z3,z4],z0];%tangente extr\'emit\'es |
| 41 |
numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche |
| 42 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection |
| 43 |
x2=xpart point t of p;%Abscisse de cette intersection |
| 44 |
filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) |
| 45 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) |
| 46 |
--z3r{z9-z3}..z0 & cycle; % arrowhead and stem |
| 47 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 48 |
|
| 49 |
iff known r_arrow5: cmchar "Fl\`eche grande"; |
| 50 |
compute_spread(.45x_height#,.55x_height#); |
| 51 |
beginchar(r_arrow5,18u#,v_center(spread#+rule_thickness#)); |
| 52 |
adjust_fit(0,0); pickup fine.nib; |
| 53 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 54 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 55 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 56 |
y3-y0=y0-y4=2.5u+eps; |
| 57 |
x3=x4=x0-4.5u-eps; |
| 58 |
z9=.35[.5[z3,z4],z0]; |
| 59 |
numeric t; path p; p=z4..z9; |
| 60 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 61 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 62 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 63 |
--z3..z0 & cycle; % arrowhead and stem |
| 64 |
penlabels(0,1,2,3,4,9); endchar; |
| 65 |
|
| 66 |
iff known r_arrow3: cmchar "Fl\`eche normale"; |
| 67 |
compute_spread(.45x_height#,.55x_height#); |
| 68 |
beginchar(r_arrow3,18u#,v_center(spread#+rule_thickness#)); |
| 69 |
adjust_fit(0,0); pickup fine.nib; |
| 70 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 71 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 72 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 73 |
y3-y0=y0-y4=2.1u+eps; |
| 74 |
x3=x4=x0-3.8u-eps; |
| 75 |
z9=.35[.5[z3,z4],z0]; |
| 76 |
numeric t; path p; p=z4..z9; |
| 77 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 78 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 79 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 80 |
--z3..z0 & cycle; % arrowhead and stem |
| 81 |
penlabels(0,1,2,3,4,9); endchar; |
| 82 |
|
| 83 |
iff known r_arrow6: cmchar "Fl\`eche \'etroite"; |
| 84 |
compute_spread(.45x_height#,.55x_height#); |
| 85 |
beginchar(r_arrow6,18u#,v_center(spread#+rule_thickness#)); |
| 86 |
adjust_fit(0,0); pickup fine.nib; |
| 87 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 88 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 89 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 90 |
y3-y0=y0-y4=1.5u+eps; |
| 91 |
x3=x4=x0-4.5u-eps; |
| 92 |
z9=.35[.5[z3,z4],z0]; |
| 93 |
numeric t; path p; p=z4..z9; |
| 94 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 95 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 96 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 97 |
--z3..z0 & cycle; % arrowhead and stem |
| 98 |
penlabels(0,1,2,3,4,9); endchar; |
| 99 |
|
| 100 |
iff known r_arrow8: cmchar "Fleche droite"; |
| 101 |
compute_spread(.45x_height#,.55x_height#); |
| 102 |
beginchar(r_arrow8,18u#,v_center(spread#+rule_thickness#)); |
| 103 |
adjust_fit(0,0); pickup fine.nib; |
| 104 |
pos1(rule_thickness,90); pos2(rule_thickness,-90); |
| 105 |
pos3(hair,0); pos6(hair,0); |
| 106 |
pos4(rule_thickness,0); pos5(rule_thickness,0); |
| 107 |
y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u); |
| 108 |
y3-y1=y1-y6=2.2u+eps; |
| 109 |
x3=x6=x2-3.5u-eps; |
| 110 |
x4=x5=hround(w)-0.4rule_thickness; |
| 111 |
y4-y1=y1-y5=.2hair; |
| 112 |
filldraw z2l{dir 165}...{z3-z2}z3l--z3r{z4-z3}... |
| 113 |
z4--z5...{z6-z5}z6r--z6l{z2-z6}...{dir 15}z2r---z1l..z1r---z2l & cycle; |
| 114 |
penlabels(1,2,3,4,5,6); |
| 115 |
endchar; |
| 116 |
|
| 117 |
iff known r_arrow2: cmchar "cmsy plus \'etroit"; |
| 118 |
compute_spread(.45x_height#,.55x_height#); |
| 119 |
beginchar(r_arrow2,18u#,v_center(spread#+rule_thickness#));%18u->12u |
| 120 |
adjust_fit(0,0); pickup fine.nib; |
| 121 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 122 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 123 |
y0=y1=y2=math_axis;%Axe horizontal |
| 124 |
x1-.5rule_thickness=eps;%Extr\'emit\'e gauche |
| 125 |
rt x0=hround(w)-eps;%Extr\'emit\'e droite |
| 126 |
y3-y0=y0-y4=if monospace:.16 else:.22 fi asc_height+eps;%largeur |
| 127 |
x3=x4=x0-if monospace:4u else:4u fi-eps;%longueur fl\`eche |
| 128 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche |
| 129 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche |
| 130 |
z9=.5[.5[z3,z4],z0];%tangente extr\'emit\'es |
| 131 |
numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche |
| 132 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection |
| 133 |
x2=xpart point t of p;%Abscisse de cette intersection |
| 134 |
filldraw z0--z5..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) |
| 135 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) |
| 136 |
--z3r{z9-z3}..z6--z0 & cycle; % arrowhead and stem |
| 137 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 138 |
|
| 139 |
iff known r_arrow4: cmchar "Triangle"; |
| 140 |
compute_spread(.45x_height#,.55x_height#); |
| 141 |
beginchar(r_arrow4,18u#,v_center(spread#+rule_thickness#));%18u->12u |
| 142 |
adjust_fit(0,0); pickup fine.nib; |
| 143 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 144 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 145 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 146 |
y3-y0=y0-y4=2.1u+eps; |
| 147 |
x3=x4=x0-3.8u-eps; |
| 148 |
numeric t; path p; p=z4..z3; |
| 149 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 150 |
filldraw z0..z4--subpath (0,t) of\\(z4..z3) |
| 151 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z4) |
| 152 |
--z3..z0 & cycle; % arrowhead and stem |
| 153 |
penlabels(0,1,2,3,4); endchar; |
| 154 |
|
| 155 |
iff known r_arrow9: cmchar "Triangle pench\'e"; |
| 156 |
compute_spread(.45x_height#,.55x_height#); |
| 157 |
beginchar(r_arrow9,18u#,v_center(spread#+rule_thickness#));%18u->12u |
| 158 |
adjust_fit(0,0); pickup fine.nib; |
| 159 |
pos1(rule_thickness,90); pos2(rule_thickness,76); |
| 160 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 161 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 162 |
y3-y0=y0-y4=2.1u+eps; |
| 163 |
x2=hround(w-4u); |
| 164 |
x3=.25(y3-y2)+x2-eps; |
| 165 |
x4=-.25(y2-y4)+x2-eps; |
| 166 |
filldraw z0..z3--z2r---z1r..z1l---z2l--z4..z0 & cycle; % arrowhead and stem |
| 167 |
penlabels(0,1,2,3,4); endchar; |
| 168 |
|
| 169 |
iff known r_arrow7: cmchar "Harpon"; |
| 170 |
compute_spread(.45x_height#,.55x_height#); |
| 171 |
beginchar(r_arrow7,18u#,v_center(spread#+rule_thickness#)); |
| 172 |
adjust_fit(0,0); pickup fine.nib; |
| 173 |
pos1(rule_thickness,90); pos2(rule_thickness,-90); |
| 174 |
pos3(hair,0); pos6(hair,0); |
| 175 |
pos4(rule_thickness,0); pos5(rule_thickness,0); |
| 176 |
y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u); |
| 177 |
y3-y1=y1-y6=2.5u+eps; |
| 178 |
x3=x6=x2-2u-eps; |
| 179 |
x4=x5=hround(w)-0.4rule_thickness; |
| 180 |
y4-y1=y1-y5=.2hair; |
| 181 |
filldraw z2l{dir 175}...{dir 110}z3l--z3r{dir -60}...{dir |
| 182 |
-5}z4--z5{dir 185}...{dir -120}z6r--z6l{dir 70}...{dir |
| 183 |
5}z2r---z1l..z1r---z2l & cycle; |
| 184 |
penlabels(1,2,3,4,5,6); |
| 185 |
endchar; |
| 186 |
|
| 187 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 188 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 189 |
|
| 190 |
iff known r_arrow21: cmchar "Dessin original"; |
| 191 |
compute_spread(.45x_height#,.55x_height#); |
| 192 |
beginchar(r_arrow21,10u#,v_center(spread#+rule_thickness#)); |
| 193 |
adjust_fit(0,0); pickup fine.nib;%crisp -> fine pour tester |
| 194 |
pos1(rule_thickness,90); pos2(rule_thickness,90);%Trait horizontal |
| 195 |
pos3(rule_thickness,0); pos4(rule_thickness,0);%Extr\'emit\'e fl\`eche |
| 196 |
y0=y1=y2=math_axis;%Axe horizontal |
| 197 |
x1-.5rule_thickness=eps;%Extr\'emit\'e gauche |
| 198 |
rt x0=hround(w-u);%Extr\'emit\'e droite |
| 199 |
y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;%largeur |
| 200 |
x3=x4=x0-if monospace:3u else:4u fi-eps;%longueur fl\`eche |
| 201 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche |
| 202 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche |
| 203 |
z9=.2[.5[z3,z4],z0];%tangente extr\'emit\'es |
| 204 |
numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche |
| 205 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection |
| 206 |
x2=xpart point t of p;%Abscisse de cette intersection |
| 207 |
filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) |
| 208 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) |
| 209 |
--z3r{z9-z3}..z0 & cycle; % arrowhead and stem |
| 210 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 211 |
|
| 212 |
iff known r_arrow25: cmchar "Fl\`eche grande"; |
| 213 |
compute_spread(.45x_height#,.55x_height#); |
| 214 |
beginchar(r_arrow25,10u#,v_center(spread#+rule_thickness#)); |
| 215 |
adjust_fit(0,0); pickup fine.nib; |
| 216 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 217 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 218 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 219 |
y3-y0=y0-y4=2.5u+eps; |
| 220 |
x3=x4=x0-4.5u-eps; |
| 221 |
z9=.35[.5[z3,z4],z0]; |
| 222 |
numeric t; path p; p=z4..z9; |
| 223 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 224 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 225 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 226 |
--z3..z0 & cycle; % arrowhead and stem |
| 227 |
penlabels(0,1,2,3,4,9); endchar; |
| 228 |
|
| 229 |
iff known r_arrow23: cmchar "Fl\`eche normale"; |
| 230 |
compute_spread(.45x_height#,.55x_height#); |
| 231 |
beginchar(r_arrow23,10u#,v_center(spread#+rule_thickness#)); |
| 232 |
adjust_fit(0,0); pickup fine.nib; |
| 233 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 234 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 235 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 236 |
y3-y0=y0-y4=2.1u+eps; |
| 237 |
x3=x4=x0-3.8u-eps; |
| 238 |
z9=.35[.5[z3,z4],z0]; |
| 239 |
numeric t; path p; p=z4..z9; |
| 240 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 241 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 242 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 243 |
--z3..z0 & cycle; % arrowhead and stem |
| 244 |
penlabels(0,1,2,3,4,9); endchar; |
| 245 |
|
| 246 |
iff known r_arrow26: cmchar "Fl\`eche \'etroite"; |
| 247 |
compute_spread(.45x_height#,.55x_height#); |
| 248 |
beginchar(r_arrow26,10u#,v_center(spread#+rule_thickness#)); |
| 249 |
adjust_fit(0,0); pickup fine.nib; |
| 250 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 251 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 252 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 253 |
y3-y0=y0-y4=1.5u+eps; |
| 254 |
x3=x4=x0-4.5u-eps; |
| 255 |
z9=.35[.5[z3,z4],z0]; |
| 256 |
numeric t; path p; p=z4..z9; |
| 257 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 258 |
filldraw z0..z4--subpath (0,t) of\\(z4..z9) |
| 259 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z9) |
| 260 |
--z3..z0 & cycle; % arrowhead and stem |
| 261 |
penlabels(0,1,2,3,4,9); endchar; |
| 262 |
|
| 263 |
iff known r_arrow28: cmchar "Fl\`eche droite"; |
| 264 |
compute_spread(.45x_height#,.55x_height#); |
| 265 |
beginchar(r_arrow28,10u#,v_center(spread#+rule_thickness#)); |
| 266 |
adjust_fit(0,0); pickup fine.nib; |
| 267 |
pos1(rule_thickness,90); pos2(rule_thickness,-90); |
| 268 |
pos3(hair,0); pos6(hair,0); |
| 269 |
pos4(rule_thickness,0); pos5(rule_thickness,0); |
| 270 |
y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u); |
| 271 |
y3-y1=y1-y6=2.2u+eps; |
| 272 |
x3=x6=x2-3.5u-eps; |
| 273 |
x4=x5=hround(w)-0.4rule_thickness; |
| 274 |
y4-y1=y1-y5=.2hair; |
| 275 |
filldraw z2l{dir 165}...{z3-z2}z3l--z3r{z4-z3}... |
| 276 |
z4--z5...{z6-z5}z6r--z6l{z2-z6}...{dir 15}z2r---z1l..z1r---z2l & cycle; |
| 277 |
penlabels(1,2,3,4,5,6); |
| 278 |
endchar; |
| 279 |
|
| 280 |
iff known r_arrow22: cmchar "cmsy plus \'etroit"; |
| 281 |
compute_spread(.45x_height#,.55x_height#); |
| 282 |
beginchar(r_arrow22,10u#,v_center(spread#+rule_thickness#));%18u->12u |
| 283 |
adjust_fit(0,0); pickup fine.nib; |
| 284 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 285 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 286 |
y0=y1=y2=math_axis;%Axe horizontal |
| 287 |
x1-.5rule_thickness=eps;%Extr\'emit\'e gauche |
| 288 |
rt x0=hround(w)-eps;%Extr\'emit\'e droite |
| 289 |
y3-y0=y0-y4=if monospace:.16 else:.22 fi asc_height+eps;%largeur |
| 290 |
x3=x4=x0-if monospace:4u else:4u fi-eps;%longueur fl\`eche |
| 291 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0;%Pointe inf\'erieure fl\`eche |
| 292 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0;%Pointe sup\'erieure fl\`eche |
| 293 |
z9=.5[.5[z3,z4],z0];%tangente extr\'emit\'es |
| 294 |
numeric t; path p; p=z4l{z9-z4}..z6r;%Courbe fl\`eche |
| 295 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));%Intersection |
| 296 |
x2=xpart point t of p;%Abscisse de cette intersection |
| 297 |
filldraw z0--z5..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) |
| 298 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r) |
| 299 |
--z3r{z9-z3}..z6--z0 & cycle; % arrowhead and stem |
| 300 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 301 |
|
| 302 |
iff known r_arrow24: cmchar "Triangle"; |
| 303 |
compute_spread(.45x_height#,.55x_height#); |
| 304 |
beginchar(r_arrow24,10u#,v_center(spread#+rule_thickness#));%18u->12u |
| 305 |
adjust_fit(0,0); pickup fine.nib; |
| 306 |
pos1(rule_thickness,90); pos2(rule_thickness,90); |
| 307 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 308 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 309 |
y3-y0=y0-y4=2.1u+eps; |
| 310 |
x3=x4=x0-3.8u-eps; |
| 311 |
numeric t; path p; p=z4..z3; |
| 312 |
t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; |
| 313 |
filldraw z0..z4--subpath (0,t) of\\(z4..z3) |
| 314 |
--z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3..z4) |
| 315 |
--z3..z0 & cycle; % arrowhead and stem |
| 316 |
penlabels(0,1,2,3,4); endchar; |
| 317 |
|
| 318 |
iff known r_arrow29: cmchar "Triangle pench\'e"; |
| 319 |
compute_spread(.45x_height#,.55x_height#); |
| 320 |
beginchar(r_arrow29,10u#,v_center(spread#+rule_thickness#));%18u->12u |
| 321 |
adjust_fit(0,0); pickup fine.nib; |
| 322 |
pos1(rule_thickness,90); pos2(rule_thickness,76); |
| 323 |
pos3(rule_thickness,0); pos4(rule_thickness,0); |
| 324 |
y0=y1=y2=math_axis; x1-.5rule_thickness=eps; rt x0=hround(w)-eps; |
| 325 |
y3-y0=y0-y4=2.1u+eps; |
| 326 |
x2=hround(w-4u); |
| 327 |
x3=.25(y3-y2)+x2-eps; |
| 328 |
x4=-.25(y2-y4)+x2-eps; |
| 329 |
filldraw z0..z3--z2r---z1r..z1l---z2l--z4..z0 & cycle; % arrowhead and stem |
| 330 |
penlabels(0,1,2,3,4); endchar; |
| 331 |
|
| 332 |
iff known r_arrow27: cmchar "Harpon"; |
| 333 |
compute_spread(.45x_height#,.55x_height#); |
| 334 |
beginchar(r_arrow27,10u#,v_center(spread#+rule_thickness#)); |
| 335 |
adjust_fit(0,0); pickup fine.nib; |
| 336 |
pos1(rule_thickness,90); pos2(rule_thickness,-90); |
| 337 |
pos3(hair,0); pos6(hair,0); |
| 338 |
pos4(rule_thickness,0); pos5(rule_thickness,0); |
| 339 |
y1=y2=math_axis; x1-.5rule_thickness=eps; rt x2=hround(w-2u); |
| 340 |
y3-y1=y1-y6=2.5u+eps; |
| 341 |
x3=x6=x2-2u-eps; |
| 342 |
x4=x5=hround(w)-0.4rule_thickness; |
| 343 |
y4-y1=y1-y5=.2hair; |
| 344 |
filldraw z2l{dir 175}...{dir 110}z3l--z3r{dir -60}...{dir |
| 345 |
-5}z4--z5{dir 185}...{dir -120}z6r--z6l{dir 70}...{dir |
| 346 |
5}z2r---z1l..z1r---z2l & cycle; |
| 347 |
penlabels(1,2,3,4,5,6); |
| 348 |
endchar; |
| 349 |
|
| 350 |
%%%%%%%%%%%%%%%%%%%% Trait pour remplissage |
| 351 |
|
| 352 |
iff known trait01: cmchar "trait 3u"; |
| 353 |
compute_spread(.45x_height#,.55x_height#); |
| 354 |
beginchar(trait01,3u#,v_center(spread#+rule_thickness#)); |
| 355 |
adjust_fit(0,0); pickup rule.nib; |
| 356 |
x1=eps; |
| 357 |
x2=w-eps; |
| 358 |
y1=y2=math_axis; |
| 359 |
draw z1--z2; |
| 360 |
penlabels(1,2); |
| 361 |
endchar; |
| 362 |
|
| 363 |
iff known trait02: cmchar "trait 4u"; |
| 364 |
compute_spread(.45x_height#,.55x_height#); |
| 365 |
beginchar(trait02,4u#,v_center(spread#+rule_thickness#)); |
| 366 |
adjust_fit(0,0); pickup rule.nib; |
| 367 |
x1=eps; |
| 368 |
x2=w-eps; |
| 369 |
y1=y2=math_axis; |
| 370 |
draw z1--z2; |
| 371 |
penlabels(1,2); |
| 372 |
endchar; |
| 373 |
|
| 374 |
iff known trait03: cmchar "trait 5u"; |
| 375 |
compute_spread(.45x_height#,.55x_height#); |
| 376 |
beginchar(trait03,5u#,v_center(spread#+rule_thickness#)); |
| 377 |
adjust_fit(0,0); pickup rule.nib; |
| 378 |
x1=eps; |
| 379 |
x2=w-eps; |
| 380 |
y1=y2=math_axis; |
| 381 |
draw z1--z2; |
| 382 |
penlabels(1,2); |
| 383 |
endchar; |
| 384 |
|
| 385 |
iff known trait04: cmchar "trait 6u"; |
| 386 |
compute_spread(.45x_height#,.55x_height#); |
| 387 |
beginchar(trait04,6u#,v_center(spread#+rule_thickness#)); |
| 388 |
adjust_fit(0,0); pickup rule.nib; |
| 389 |
x1=eps; |
| 390 |
x2=w-eps; |
| 391 |
y1=y2=math_axis; |
| 392 |
draw z1--z2; |
| 393 |
penlabels(1,2); |
| 394 |
endchar; |
| 395 |
|
| 396 |
iff known trait05: cmchar "trait 7u"; |
| 397 |
compute_spread(.45x_height#,.55x_height#); |
| 398 |
beginchar(trait05,7u#,v_center(spread#+rule_thickness#)); |
| 399 |
adjust_fit(0,0); pickup rule.nib; |
| 400 |
x1=eps; |
| 401 |
x2=w-eps; |
| 402 |
y1=y2=math_axis; |
| 403 |
draw z1--z2; |
| 404 |
penlabels(1,2); |
| 405 |
endchar; |
| 406 |
|
| 407 |
iff known trait06: cmchar "trait 8u"; |
| 408 |
compute_spread(.45x_height#,.55x_height#); |
| 409 |
beginchar(trait06,8u#,v_center(spread#+rule_thickness#)); |
| 410 |
adjust_fit(0,0); pickup rule.nib; |
| 411 |
x1=eps; |
| 412 |
x2=w-eps; |
| 413 |
y1=y2=math_axis; |
| 414 |
draw z1--z2; |
| 415 |
penlabels(1,2); |
| 416 |
endchar; |
| 417 |
|
| 418 |
iff known trait07: cmchar "trait 9u"; |
| 419 |
compute_spread(.45x_height#,.55x_height#); |
| 420 |
beginchar(trait07,9u#,v_center(spread#+rule_thickness#)); |
| 421 |
adjust_fit(0,0); pickup rule.nib; |
| 422 |
x1=eps; |
| 423 |
x2=w-eps; |
| 424 |
y1=y2=math_axis; |
| 425 |
draw z1--z2; |
| 426 |
penlabels(1,2); |
| 427 |
endchar; |
| 428 |
|
| 429 |
iff known trait08: cmchar "trait 10u"; |
| 430 |
compute_spread(.45x_height#,.55x_height#); |
| 431 |
beginchar(trait08,10u#,v_center(spread#+rule_thickness#)); |
| 432 |
adjust_fit(0,0); pickup rule.nib; |
| 433 |
x1=eps; |
| 434 |
x2=w-eps; |
| 435 |
y1=y2=math_axis; |
| 436 |
draw z1--z2; |
| 437 |
penlabels(1,2); |
| 438 |
endchar; |
| 439 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \`a virer traits pour tester |
| 440 |
|
| 441 |
iff known traittest01: cmchar "traittest 3u"; |
| 442 |
compute_spread(.45x_height#,.55x_height#); |
| 443 |
beginchar(traittest01,3u#,v_center(spread#+rule_thickness#)); |
| 444 |
adjust_fit(0,0); pickup rule.nib; |
| 445 |
x1=eps; |
| 446 |
x2=w-eps; |
| 447 |
y1=y2=math_axis; |
| 448 |
x3=x4=x1; |
| 449 |
y3-y1=y1-y4=1.5u; |
| 450 |
x5=x6=x2; |
| 451 |
y5-y2=y2-y6=1.5u; |
| 452 |
draw z1--z2; |
| 453 |
draw z3--z4; |
| 454 |
draw z5--z6; |
| 455 |
penlabels(1,2,3,4,5,6); |
| 456 |
endchar; |
| 457 |
|
| 458 |
iff known traittest02: cmchar "traittest 4u"; |
| 459 |
compute_spread(.45x_height#,.55x_height#); |
| 460 |
beginchar(traittest02,4u#,v_center(spread#+rule_thickness#)); |
| 461 |
adjust_fit(0,0); pickup rule.nib; |
| 462 |
x1=eps; |
| 463 |
x2=w-eps; |
| 464 |
y1=y2=math_axis; |
| 465 |
x3=x4=x1; |
| 466 |
y3-y1=y1-y4=1.5u; |
| 467 |
x5=x6=x2; |
| 468 |
y5-y2=y2-y6=1.5u; |
| 469 |
draw z1--z2; |
| 470 |
draw z3--z4; |
| 471 |
draw z5--z6; |
| 472 |
penlabels(1,2,3,4,5,6); |
| 473 |
endchar; |
| 474 |
|
| 475 |
iff known traittest03: cmchar "traittest 5u"; |
| 476 |
compute_spread(.45x_height#,.55x_height#); |
| 477 |
beginchar(traittest03,5u#,v_center(spread#+rule_thickness#)); |
| 478 |
adjust_fit(0,0); pickup rule.nib; |
| 479 |
x1=eps; |
| 480 |
x2=w-eps; |
| 481 |
y1=y2=math_axis; |
| 482 |
x3=x4=x1; |
| 483 |
y3-y1=y1-y4=1.5u; |
| 484 |
x5=x6=x2; |
| 485 |
y5-y2=y2-y6=1.5u; |
| 486 |
draw z1--z2; |
| 487 |
draw z3--z4; |
| 488 |
draw z5--z6; |
| 489 |
penlabels(1,2,3,4,5,6); |
| 490 |
endchar; |
| 491 |
|
| 492 |
iff known traittest04: cmchar "traittest 6u"; |
| 493 |
compute_spread(.45x_height#,.55x_height#); |
| 494 |
beginchar(traittest04,6u#,v_center(spread#+rule_thickness#)); |
| 495 |
adjust_fit(0,0); pickup rule.nib; |
| 496 |
x1=eps; |
| 497 |
x2=w-eps; |
| 498 |
y1=y2=math_axis; |
| 499 |
x3=x4=x1; |
| 500 |
y3-y1=y1-y4=1.5u; |
| 501 |
x5=x6=x2; |
| 502 |
y5-y2=y2-y6=1.5u; |
| 503 |
draw z1--z2; |
| 504 |
draw z3--z4; |
| 505 |
draw z5--z6; |
| 506 |
penlabels(1,2,3,4,5,6); |
| 507 |
endchar; |
| 508 |
|
| 509 |
iff known traittest05: cmchar "traittest 7u"; |
| 510 |
compute_spread(.45x_height#,.55x_height#); |
| 511 |
beginchar(traittest05,7u#,v_center(spread#+rule_thickness#)); |
| 512 |
adjust_fit(0,0); pickup rule.nib; |
| 513 |
x1=eps; |
| 514 |
x2=w-eps; |
| 515 |
y1=y2=math_axis; |
| 516 |
x3=x4=x1; |
| 517 |
y3-y1=y1-y4=1.5u; |
| 518 |
x5=x6=x2; |
| 519 |
y5-y2=y2-y6=1.5u; |
| 520 |
draw z1--z2; |
| 521 |
draw z3--z4; |
| 522 |
draw z5--z6; |
| 523 |
penlabels(1,2,3,4,5,6); |
| 524 |
endchar; |
| 525 |
|
| 526 |
iff known traittest06: cmchar "traittest 8u"; |
| 527 |
compute_spread(.45x_height#,.55x_height#); |
| 528 |
beginchar(traittest06,8u#,v_center(spread#+rule_thickness#)); |
| 529 |
adjust_fit(0,0); pickup rule.nib; |
| 530 |
x1=eps; |
| 531 |
x2=w-eps; |
| 532 |
y1=y2=math_axis; |
| 533 |
x3=x4=x1; |
| 534 |
y3-y1=y1-y4=1.5u; |
| 535 |
x5=x6=x2; |
| 536 |
y5-y2=y2-y6=1.5u; |
| 537 |
draw z1--z2; |
| 538 |
draw z3--z4; |
| 539 |
draw z5--z6; |
| 540 |
penlabels(1,2,3,4,5,6); |
| 541 |
endchar; |
| 542 |
|
| 543 |
iff known traittest07: cmchar "traittest 9u"; |
| 544 |
compute_spread(.45x_height#,.55x_height#); |
| 545 |
beginchar(traittest07,9u#,v_center(spread#+rule_thickness#)); |
| 546 |
adjust_fit(0,0); pickup rule.nib; |
| 547 |
x1=eps; |
| 548 |
x2=w-eps; |
| 549 |
y1=y2=math_axis; |
| 550 |
x3=x4=x1; |
| 551 |
y3-y1=y1-y4=1.5u; |
| 552 |
x5=x6=x2; |
| 553 |
y5-y2=y2-y6=1.5u; |
| 554 |
draw z1--z2; |
| 555 |
draw z3--z4; |
| 556 |
draw z5--z6; |
| 557 |
penlabels(1,2,3,4,5,6); |
| 558 |
endchar; |
| 559 |
|
| 560 |
iff known traittest08: cmchar "traittest 10u"; |
| 561 |
compute_spread(.45x_height#,.55x_height#); |
| 562 |
beginchar(traittest08,10u#,v_center(spread#+rule_thickness#)); |
| 563 |
adjust_fit(0,0); pickup rule.nib; |
| 564 |
x1=eps; |
| 565 |
x2=w-eps; |
| 566 |
y1=y2=math_axis; |
| 567 |
x3=x4=x1; |
| 568 |
y3-y1=y1-y4=1.5u; |
| 569 |
x5=x6=x2; |
| 570 |
y5-y2=y2-y6=1.5u; |
| 571 |
draw z1--z2; |
| 572 |
draw z3--z4; |
| 573 |
draw z5--z6; |
| 574 |
penlabels(1,2,3,4,5,6); |
| 575 |
endchar; |
| 576 |
\endinput |
| 577 |
%% |
| 578 |
%% End of file `vecsym.mf'. |