| 1 |
% Common symbols for CMLL and EULL. |
| 2 |
|
| 3 |
% The code for arrows is the one from the downward and upward arrows |
| 4 |
% (characters '041 and '042 in cmsy, defined in sym.mf) |
| 5 |
% with some coordinates moved. |
| 6 |
|
| 7 |
cmchar "Short downward arrow (positive shift)"; |
| 8 |
beginchar(1,9u#,body_height#,0); |
| 9 |
adjust_fit(0,0); pickup crisp.nib; |
| 10 |
pos1(rule_thickness,0); pos2(rule_thickness,0); |
| 11 |
pos3(rule_thickness,90); pos4(rule_thickness,90); |
| 12 |
lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h; |
| 13 |
x0=x1=x2; bot y0=-d-o; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; |
| 14 |
y3=y4=y0+if monospace:.24 else:.36 fi asc_height+eps; |
| 15 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0; |
| 16 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0; |
| 17 |
z9=.2[.5[z3,z4],z0]; |
| 18 |
numeric t; path p; p=z4r{z9-z4}..z6r; |
| 19 |
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; |
| 20 |
filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) |
| 21 |
---z1r..z1l---subpath (t,0) of\\(z3r{z9-z3}..z5r) |
| 22 |
--z3l{z9-z3}..z0 & cycle; % arrowhead and stem |
| 23 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 24 |
|
| 25 |
cmchar "Short upward arrow (negative shift)"; |
| 26 |
beginchar(2,9u#,body_height#,0); |
| 27 |
italcorr .76asc_height#*slant+.5crisp#-u#; |
| 28 |
adjust_fit(0,0); pickup crisp.nib; |
| 29 |
pos1(rule_thickness,0); pos2(rule_thickness,0); |
| 30 |
pos3(rule_thickness,90); pos4(rule_thickness,90); |
| 31 |
lft x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d; |
| 32 |
x0=x1=x2; top y0=h+o; x0-x3=x4-x0=if monospace:3u else:4u fi+eps; |
| 33 |
y3=y4=y0-if monospace:.24 else:.36 fi asc_height-eps; |
| 34 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0; |
| 35 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0; |
| 36 |
z9=.2[.5[z3,z4],z0]; |
| 37 |
numeric t; path p; p=z4l{z9-z4}..z6r; |
| 38 |
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; |
| 39 |
filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r) |
| 40 |
---z1r..z1l---subpath (t,0) of\\(z3l{z9-z3}..z5r) |
| 41 |
--z3r{z9-z3}..z0 & cycle; % arrowhead and stem |
| 42 |
penlabels(0,1,2,3,4,5,6,9); endchar; |
| 43 |
|
| 44 |
cmchar "Short up-and-down arrow"; |
| 45 |
beginchar(3,9u#,body_height#,0); |
| 46 |
adjust_fit(0,0); pickup crisp.nib; |
| 47 |
pos1(rule_thickness,0); pos2(rule_thickness,0); |
| 48 |
pos3(rule_thickness,90); pos4(rule_thickness,90); |
| 49 |
lft x1l=hround(.5w-.5rule_thickness); y1=.5[-d,h]; |
| 50 |
x0=x1=x2; bot y0=-d-o; x0-x3=x4-x0=4u+eps; |
| 51 |
y3=y4=y0+.36asc_height+eps; |
| 52 |
pos5(rule_thickness,angle(z4-z0)); z5l=z0; |
| 53 |
pos6(rule_thickness,angle(z3-z0)); z6l=z0; |
| 54 |
z9=.2[.5[z3,z4],z0]; |
| 55 |
numeric t; path p; p=z4r{z9-z4}..z6r; |
| 56 |
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p; |
| 57 |
filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r) |
| 58 |
---z1r..z1l---subpath (t,0) of\\(z3r{z9-z3}..z5r) |
| 59 |
--z3l{z9-z3}..z0 & cycle; % lower arrowhead and stem |
| 60 |
pos11(rule_thickness,0); pos12(rule_thickness,0); z11=z1; |
| 61 |
pos13(rule_thickness,90); pos14(rule_thickness,90); |
| 62 |
x10=x11=x12; top y10=h+o; x10-x13=x14-x10=4u+eps; |
| 63 |
y13=y14=y10-.36asc_height-eps; |
| 64 |
pos15(rule_thickness,angle(z14-z10)); z15l=z10; |
| 65 |
pos16(rule_thickness,angle(z13-z10)); z16l=z10; |
| 66 |
z19=.2[.5[z13,z14],z10]; |
| 67 |
numeric t; path p; p=z14l{z19-z14}..z16r; |
| 68 |
t=xpart(p intersectiontimes((x12r,-d)--(x12r,h))); y12=ypart point t of p; |
| 69 |
filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r) |
| 70 |
---z11r..z11l---subpath (t,0) of\\(z13l{z19-z13}..z15r) |
| 71 |
--z13r{z19-z13}..z10 & cycle; % upper arrowhead and stem |
| 72 |
penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,19); endchar; |
| 73 |
|
| 74 |
|
| 75 |
% The code for coherence relations is based on the \asymp symbol (named |
| 76 |
% "Hardy's asymptotic equivalence sign" number '020 in symbols.mf). |
| 77 |
|
| 78 |
cmchar "Coherence sign"; |
| 79 |
compute_spread(.45x_height#,.55x_height#); |
| 80 |
beginchar(4,14u#,v_center(2spread#+rule_thickness#)); |
| 81 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 82 |
lft x1=hround u-eps; x3=x1; x2=x4=w-x1; x5=x6=.5w; |
| 83 |
y1=y2; y5=good.y h; y3=y4; .5[y1,y3]=.5[y5,y6]=math_axis; |
| 84 |
y1=good.y .3[y5,y6]; |
| 85 |
draw z1{x5-x1,2(y5-y1)}...z5{right}...z2{x2-x5,2(y2-y5)}; % upper bar |
| 86 |
draw z3{x6-x3,2(y6-y3)}...z6{right}...z4{x4-x6,2(y4-y6)}; % lower bar |
| 87 |
labels(1,2,3,4,5,6); endchar; |
| 88 |
|
| 89 |
cmchar "Strict coherence"; |
| 90 |
beginchar(5,14u#,asc_height#,desc_depth#); |
| 91 |
adjust_fit(0,0); pickup rule.nib; |
| 92 |
lft x1=hround u; y1=vround(math_axis-.25x_height); |
| 93 |
x3=w-x1; y3=y1; |
| 94 |
penpos2(rule_thickness,90); x2=.5w; y2=good.y(.25x_height+math_axis); |
| 95 |
numeric theta; theta=angle((z2-z1)yscaled 3); |
| 96 |
penpos1(rule_thickness,90+theta); |
| 97 |
penpos3(rule_thickness,90-theta); |
| 98 |
draw z1{dir theta}...z2...{dir-theta}z3; penlabels(1,2,3); |
| 99 |
endchar; |
| 100 |
|
| 101 |
cmchar "Incoherence sign"; |
| 102 |
compute_spread(.45x_height#,.55x_height#); |
| 103 |
beginchar(6,14u#,v_center(2spread#+rule_thickness#)); |
| 104 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 105 |
lft x1=hround u-eps; x3=x1; x2=x4=w-x1; x5=x6=.5w; |
| 106 |
y1=y2=good.y h; y3=y4; .5[y1,y3]=.5[y5,y6]=math_axis; |
| 107 |
y5=good.y .3[y1,y3]; |
| 108 |
draw z1{x5-x1,2(y5-y1)}...z5{right}...z2{x2-x5,2(y2-y5)}; % upper bar |
| 109 |
draw z3{x6-x3,2(y6-y3)}...z6{right}...z4{x4-x6,2(y4-y6)}; % lower bar |
| 110 |
labels(1,2,3,4,5,6); endchar; |
| 111 |
|
| 112 |
cmchar "Strict incoherence"; |
| 113 |
beginchar(7,14u#,asc_height#,desc_depth#); |
| 114 |
adjust_fit(0,0); pickup rule.nib; |
| 115 |
lft x1=hround u; y1=vround(math_axis+.25x_height); |
| 116 |
x3=w-x1; y3=y1; penpos2(rule_thickness,90); x2=.5w; |
| 117 |
y2l=good.y -(.25x_height-math_axis); |
| 118 |
numeric theta; theta=angle((z2-z1)yscaled 3); |
| 119 |
penpos1(rule_thickness,90+theta); |
| 120 |
penpos3(rule_thickness,90-theta); |
| 121 |
draw z1{dir theta}...z2...{dir-theta}z3; |
| 122 |
penlabels(1,2,3); endchar; |
| 123 |
|
| 124 |
cmchar "Linear equivalence symbol"; |
| 125 |
beginchar(12,22u#,.8asc_height#,0#); |
| 126 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 127 |
numeric circ_diam; circ_diam=5u; |
| 128 |
y2=math_axis; y8=y2+.5circ_diam; rt x2=w-u; |
| 129 |
x6=x2-circ_diam; |
| 130 |
circle_points; draw_circle; |
| 131 |
x11=u+.5rule_thickness; y11=y2; |
| 132 |
draw_circle shifted (z11-z6); |
| 133 |
x9=x11+circ_diam+.5rule_thickness; y9=y10=y2; x10=x6-.5rule_thickness; |
| 134 |
draw z9---z10; |
| 135 |
penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 136 |
|
| 137 |
cmchar "Double-struck perpendicular sign"; |
| 138 |
beginchar(13,17u#,asc_height#,0); |
| 139 |
adjust_fit(0,0); pickup rule.nib; |
| 140 |
compute_spread(.45x_height#,.55x_height#); x3-x1=x4-x2=good.x spread; |
| 141 |
x1=x2=good.x (.5w - spread/2); |
| 142 |
center_on(.5[x1,x3]); lft x5=hround u; x6=w-x5; y3=y1; |
| 143 |
bot y1=0; y2-y1=x6-x5-3u; |
| 144 |
if top y2>h: y2:=bot h; fi |
| 145 |
y5=y6=y1; y4=y2; |
| 146 |
draw z1--z2; % left stem |
| 147 |
draw z3--z4; % right stem |
| 148 |
draw z5--z6; % bar |
| 149 |
labels(1,2,3,4,5,6); endchar; |
| 150 |
|
| 151 |
cmchar "Oscillating perpendicular sign"; |
| 152 |
compute_spread(.45x_height#,.55x_height#); |
| 153 |
spread#':=spread#; spread':=spread; % the spread of `$=$' |
| 154 |
compute_spread(.54x_height#,.66x_height#); |
| 155 |
beginchar(14,14u#,asc_height#,0); |
| 156 |
adjust_fit(0,0); |
| 157 |
pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness; |
| 158 |
if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline |
| 159 |
lft x3=hround u; x4=4u; x5=w-x4; x6=w-x3; |
| 160 |
y3=y5; y4=y6; bot y3=0; top y4-bot y3=spread'; |
| 161 |
draw z3{up}...z4{right}..{right}z5...{up}z6; % upper stroke |
| 162 |
pickup rule.nib; autorounded; |
| 163 |
x1=x2; z2=1/2[z3,z6]; y1-y2=x6-x3; |
| 164 |
if top y1>h: y1:=bot h; fi |
| 165 |
draw z1..z2; |
| 166 |
labels(1,2,3,4,5,6); endchar; |
| 167 |
|
| 168 |
cmchar "Reversed linear map symbol"; |
| 169 |
beginchar(15,20u#,.8asc_height#,0#); |
| 170 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 171 |
numeric circ_diam; circ_diam=5u; |
| 172 |
y2=math_axis; y8=y2+.5circ_diam; lft x6 = u; |
| 173 |
x6=x2-circ_diam; |
| 174 |
circle_points; draw_circle; |
| 175 |
x9=x2+.5rule_thickness; y9=y10=y2; x10=w-u-.5rule_thickness; |
| 176 |
draw z9---z10; |
| 177 |
penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 178 |
|
| 179 |
def negate (expr center) = |
| 180 |
.5[z101,z102] = center; |
| 181 |
y102-y101 = 9u; |
| 182 |
x102-x101 = 2/5 (y102-y101); |
| 183 |
draw z101---z102; |
| 184 |
penlabels(101,102); |
| 185 |
enddef; |
| 186 |
|
| 187 |
|
| 188 |
cmchar "Negated multimap symbol"; |
| 189 |
beginchar(16,20u#,.8asc_height#,0#); |
| 190 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 191 |
numeric circ_diam; circ_diam=5u; |
| 192 |
y2=math_axis; y8=y2+.5circ_diam; rt x2=w-u; |
| 193 |
x6=x2-circ_diam; |
| 194 |
circle_points; draw_circle; |
| 195 |
x9=u+.5rule_thickness; y9=y10=y2; x10=x6-.5rule_thickness; |
| 196 |
draw z9---z10; |
| 197 |
penlabels(1,2,3,4,5,6,7,8,9,10); |
| 198 |
negate(.6[z9,z10]); |
| 199 |
endchar; |
| 200 |
|
| 201 |
cmchar "Negated reversed linear map symbol"; |
| 202 |
beginchar(17,20u#,.8asc_height#,0#); |
| 203 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 204 |
numeric circ_diam; circ_diam=5u; |
| 205 |
y2=math_axis; y8=y2+.5circ_diam; lft x6 = u; |
| 206 |
x6=x2-circ_diam; |
| 207 |
circle_points; draw_circle; |
| 208 |
x9=x2+.5rule_thickness; y9=y10=y2; x10=w-u-.5rule_thickness; |
| 209 |
draw z9---z10; |
| 210 |
penlabels(1,2,3,4,5,6,7,8,9,10); |
| 211 |
negate(.4[z9,z10]); |
| 212 |
endchar; |
| 213 |
|
| 214 |
cmchar "Negated linear equivalence symbol"; |
| 215 |
beginchar(18,22u#,.8asc_height#,0#); |
| 216 |
adjust_fit(0,0); pickup rule.nib; autorounded; |
| 217 |
numeric circ_diam; circ_diam=5u; |
| 218 |
y2=math_axis; y8=y2+.5circ_diam; rt x2=w-u; |
| 219 |
x6=x2-circ_diam; |
| 220 |
circle_points; draw_circle; |
| 221 |
x11=u+.5rule_thickness; y11=y2; |
| 222 |
draw_circle shifted (z11-z6); |
| 223 |
x9=x11+circ_diam+.5rule_thickness; y9=y10=y2; x10=x6-.5rule_thickness; |
| 224 |
draw z9---z10; |
| 225 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); |
| 226 |
negate(.5[z9,z10]); |
| 227 |
endchar; |