| 1 |
% This file contains symbol definitions for operators used in linear logic. |
| 2 |
% The glyph defintions are derived from those in Knuth's Computer Modern and |
| 3 |
% from the AMS Symbol fonts, to make them assorted with TeX's standard fonts. |
| 4 |
% |
| 5 |
% This file was written by Emmanuel Beffara, you can distribute it and/or |
| 6 |
% modify it under the terms of the LaTeX Project Public License. |
| 7 |
|
| 8 |
mode_setup; font_setup; |
| 9 |
|
| 10 |
cmchar "Reversed ampersand (par)"; |
| 11 |
|
| 12 |
% The code is exactly the one for the ampersand, with a transformation applied |
| 13 |
% at the end. |
| 14 |
|
| 15 |
beginchar(0,14u#,asc_height#,0); |
| 16 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 17 |
adjust_fit(0,serif_fit#); |
| 18 |
pickup tiny.nib; pos2(slab,-90); x2=4u; bot y2r=-o; |
| 19 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 20 |
if serifs: pos0(fudged.hair,0); |
| 21 |
rt x0r+jut=hround(w-.9u); top y0=x_height; |
| 22 |
pos1(fudged.hair,0); z1=whatever[z0,(.6[x0,x2],0)]; |
| 23 |
y1=max(y0-1.5bracket-.2x_height,2/3x_height); |
| 24 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 25 |
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u); |
| 26 |
y1r=good.y .75[bar_height,x_height]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 27 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 28 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 29 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 30 |
slope=(h-2vair-slab)/10.5u; theta=angle(-slope,1); |
| 31 |
reduced_hair=max(tiny.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); |
| 32 |
lft x3r=hround .75u; x5=.5[x3r,x6l]; lft x6r=hround .5(w-u); |
| 33 |
x3l-x3r=curve-tiny; pos6(reduced_hair,180); |
| 34 |
pos5(vair,theta); y5=.5h; |
| 35 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 36 |
pos7(vair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 37 |
pos8(fudged.stem,30); x8l=good.x(x8l+3.5u-x8); y8r=y6; |
| 38 |
ellipse_set(7l,6l,5',5l); |
| 39 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 40 |
...z7e{left}...z8e{down}; % bowls |
| 41 |
pos10(slab,90); x10=w-3.5u; bot y10l=-o; |
| 42 |
pos9(fudged.stem,angle(z8-z10)-90); |
| 43 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 44 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 45 |
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10; |
| 46 |
pos11(fudged.hair,180); rt x11l=hround(w-u); y11=.5bar_height; |
| 47 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 48 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 49 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 50 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 51 |
else: pickup fine.nib; pos10'(slab,90); z10'=z10; |
| 52 |
pos11(Vround .5[slab,flare],90); |
| 53 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .07bar_height-o; |
| 54 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 55 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); |
| 56 |
|
| 57 |
%%% here it is: |
| 58 |
|
| 59 |
currentpicture := currentpicture scaled -1 shifted (w,h); |
| 60 |
endchar; |
| 61 |
|
| 62 |
% The definition of the large symbols is the one for the ampersand, adapted |
| 63 |
% for a bigger size, with parameters taken from the definition of sum |
| 64 |
% operators. |
| 65 |
|
| 66 |
charlist 8: 9; % large "with" |
| 67 |
|
| 68 |
cmchar "\textstyle large ampersand"; |
| 69 |
beginchar(8,19u#,0,10/6dh#); |
| 70 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 71 |
adjust_fit(0,serif_fit#); |
| 72 |
pickup tiny.nib; pos2(slab,-90); x2=(4/14)*w; bot y2r=-d-o; |
| 73 |
% this is dirty: |
| 74 |
save x_height; x_height:=.62[-d,h]; |
| 75 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 76 |
if serifs: pos0(rule_thickness,0); |
| 77 |
rt x0r+jut=hround(w-.9u); top y0=.62[-d,h]; |
| 78 |
pos1(rule_thickness,0); z1=whatever[z0,(.6[x0,x2],-d)]; |
| 79 |
y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]); |
| 80 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 81 |
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u); |
| 82 |
y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 83 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 84 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 85 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 86 |
slope=(asc_height-2vair-rule_thickness)/10.5u; theta=angle(-slope,1); |
| 87 |
reduced_hair=max(tiny.breadth,hround(slab if hefty:-2stem_corr fi)); |
| 88 |
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w; |
| 89 |
x3l-x3r=curve-tiny; pos6(reduced_hair,180); |
| 90 |
pos5(reduced_hair,theta); y5=.5[-d,h]; |
| 91 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 92 |
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 93 |
pos8(curve,30); x8l=good.x(x8l+w/4-x8); y8r=y6; |
| 94 |
ellipse_set(7l,6l,5',5l); |
| 95 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 96 |
...z7e{left}...z8e{down}; % bowls |
| 97 |
pos10(slab,90); x10=10.5/14 w; bot y10l=-d-o; |
| 98 |
pos9(curve,angle(z8-z10)-90); |
| 99 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 100 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 101 |
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10; |
| 102 |
pos11(rule_thickness,180); rt x11l=hround(13/14 w); |
| 103 |
y11=(.5(bar_height/asc_height)) [-d,h]; |
| 104 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 105 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 106 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 107 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 108 |
else: pickup fine.nib; pos10'(slab,90); z10'=z10; |
| 109 |
pos11(Vround .5[rule_thickness,flare],90); |
| 110 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o; |
| 111 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 112 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 113 |
|
| 114 |
cmchar "\displaystyle large ampersand"; |
| 115 |
beginchar(9,26u#,0,14/6dh#); |
| 116 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 117 |
adjust_fit(0,serif_fit#); |
| 118 |
numeric thick_stem, thin_stem; |
| 119 |
thick_stem=bold+4dw; thin_stem=rule_thickness+dw; |
| 120 |
pickup tiny.nib; pos2(max(slab,thin_stem),-90); x2=(4/14)*w; bot y2r=-d-o; |
| 121 |
% this is dirty: |
| 122 |
save x_height; x_height:=.62[-d,h]; |
| 123 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 124 |
if serifs: pos0(thin_stem,0); |
| 125 |
rt x0r+jut=hround(w-.9u); top y0=.62[-d,h]; |
| 126 |
pos1(thin_stem,0); z1=whatever[z0,(.6[x0,x2],-d)]; |
| 127 |
y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]); |
| 128 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 129 |
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u); |
| 130 |
y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 131 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 132 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 133 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 134 |
slope=(asc_height-2vair-thin_stem)/10.5u; theta=angle(-slope,1); |
| 135 |
reduced_hair=max(tiny.breadth,hround(max(slab,thin_stem) if hefty:-2stem_corr fi)); |
| 136 |
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w; |
| 137 |
x3l-x3r=thick_stem-tiny; pos6(reduced_hair,180); |
| 138 |
pos5(reduced_hair,theta); y5=.5[-d,h]; |
| 139 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 140 |
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 141 |
pos8(thick_stem,30); x8l=good.x(x8l+w/4-x8); y8r=y6; |
| 142 |
ellipse_set(7l,6l,5',5l); |
| 143 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 144 |
...z7e{left}...z8e{down}; % bowls |
| 145 |
pos10(thin_stem,90); x10=10.5/14 w; bot y10l=-d-o; |
| 146 |
pos9(thick_stem,angle(z8-z10)-90); |
| 147 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 148 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 149 |
if serifs: pickup crisp.nib; pos10'(thin_stem,90); z10'=z10; |
| 150 |
pos11(thin_stem,180); rt x11l=hround(13/14 w); |
| 151 |
y11=(.5(bar_height/asc_height)) [-d,h]; |
| 152 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 153 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 154 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 155 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 156 |
else: pickup fine.nib; pos10'(thin_stem,90); z10'=z10; |
| 157 |
pos11(Vround .5[thin_stem,flare],90); |
| 158 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o; |
| 159 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 160 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 161 |
|
| 162 |
charlist 10: 11; % large "par" |
| 163 |
|
| 164 |
cmchar "\textstyle large reversed ampersand"; |
| 165 |
beginchar(10,19u#,0,10/6dh#); |
| 166 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 167 |
adjust_fit(0,serif_fit#); |
| 168 |
pickup tiny.nib; pos2(slab,-90); x2=(4/14)*w; bot y2r=-d-o; |
| 169 |
% this is dirty: |
| 170 |
save x_height; x_height:=.62[-d,h]; |
| 171 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 172 |
if serifs: pos0(rule_thickness,0); |
| 173 |
rt x0r+jut=hround(w-.9u); top y0=.62[-d,h]; |
| 174 |
pos1(rule_thickness,0); z1=whatever[z0,(.6[x0,x2],-d)]; |
| 175 |
y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]); |
| 176 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 177 |
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u); |
| 178 |
y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 179 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 180 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 181 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 182 |
slope=(asc_height-2vair-rule_thickness)/10.5u; theta=angle(-slope,1); |
| 183 |
reduced_hair=max(tiny.breadth,hround(slab if hefty:-2stem_corr fi)); |
| 184 |
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w; |
| 185 |
x3l-x3r=curve-tiny; pos6(reduced_hair,180); |
| 186 |
pos5(reduced_hair,theta); y5=.5[-d,h]; |
| 187 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 188 |
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 189 |
pos8(curve,30); x8l=good.x(x8l+w/4-x8); y8r=y6; |
| 190 |
ellipse_set(7l,6l,5',5l); |
| 191 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 192 |
...z7e{left}...z8e{down}; % bowls |
| 193 |
pos10(slab,90); x10=10.5/14 w; bot y10l=-d-o; |
| 194 |
pos9(curve,angle(z8-z10)-90); |
| 195 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 196 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 197 |
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10; |
| 198 |
pos11(rule_thickness,180); rt x11l=hround(13/14 w); |
| 199 |
y11=(.5(bar_height/asc_height)) [-d,h]; |
| 200 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 201 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 202 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 203 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 204 |
else: pickup fine.nib; pos10'(slab,90); z10'=z10; |
| 205 |
pos11(Vround .5[slab,flare],90); |
| 206 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o; |
| 207 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 208 |
currentpicture := currentpicture scaled -1 shifted (w,h-d); |
| 209 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 210 |
|
| 211 |
cmchar "\displaystyle large reversed ampersand"; |
| 212 |
beginchar(11,26u#,0,14/6dh#); |
| 213 |
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi; |
| 214 |
adjust_fit(0,serif_fit#); |
| 215 |
numeric thick_stem, thin_stem; |
| 216 |
thick_stem=bold+4dw; thin_stem=rule_thickness+dw; |
| 217 |
pickup tiny.nib; pos2(max(slab,thin_stem),-90); x2=(4/14)*w; bot y2r=-d-o; |
| 218 |
% this is dirty: |
| 219 |
save x_height; x_height:=.62[-d,h]; |
| 220 |
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi |
| 221 |
if serifs: pos0(thin_stem,0); |
| 222 |
rt x0r+jut=hround(w-.9u); top y0=.62[-d,h]; |
| 223 |
pos1(thin_stem,0); z1=whatever[z0,(.6[x0,x2],-d)]; |
| 224 |
y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]); |
| 225 |
filldraw stroke z0e---z1e...{left}z2e; % short diagonal |
| 226 |
else: pickup fine.nib; pos1(.25[thin_stem,flare],-15); rt x1r=hround(w-2u); |
| 227 |
y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l; |
| 228 |
top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r); |
| 229 |
filldraw stroke term.e(2',1,right,1,4); fi % short diagonal and terminal |
| 230 |
pickup tiny.nib; numeric slope,theta,reduced_hair; |
| 231 |
slope=(asc_height-2vair-thin_stem)/10.5u; theta=angle(-slope,1); |
| 232 |
reduced_hair=max(tiny.breadth,hround(max(slab,thin_stem) if hefty:-2stem_corr fi)); |
| 233 |
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w; |
| 234 |
x3l-x3r=thick_stem-tiny; pos6(reduced_hair,180); |
| 235 |
pos5(reduced_hair,theta); y5=.5[-d,h]; |
| 236 |
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r); |
| 237 |
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r]; |
| 238 |
pos8(thick_stem,30); x8l=good.x(x8l+w/4-x8); y8r=y6; |
| 239 |
ellipse_set(7l,6l,5',5l); |
| 240 |
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e |
| 241 |
...z7e{left}...z8e{down}; % bowls |
| 242 |
pos10(thin_stem,90); x10=10.5/14 w; bot y10l=-d-o; |
| 243 |
pos9(thick_stem,angle(z8-z10)-90); |
| 244 |
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90); |
| 245 |
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e; % long diagonal |
| 246 |
if serifs: pickup crisp.nib; pos10'(thin_stem,90); z10'=z10; |
| 247 |
pos11(thin_stem,180); rt x11l=hround(13/14 w); |
| 248 |
y11=(.5(bar_height/asc_height)) [-d,h]; |
| 249 |
filldraw stroke z10'e{right}...{up}z11e; % terminal |
| 250 |
numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut; |
| 251 |
else: rt x6l+.5u=lft x0l-inner_jut; fi |
| 252 |
dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark); % serif |
| 253 |
else: pickup fine.nib; pos10'(thin_stem,90); z10'=z10; |
| 254 |
pos11(Vround .5[thin_stem,flare],90); |
| 255 |
rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o; |
| 256 |
filldraw stroke term.e(10',11,right,1,4); fi % terminal |
| 257 |
currentpicture := currentpicture scaled -1 shifted (w,h-d); |
| 258 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 259 |
|
| 260 |
input llcommon; |
| 261 |
bye. |