| 1 |
.PS |
| 2 |
# ex04.m4 |
| 3 |
cct_init(svg_font(sans-serif,10bp__)) |
| 4 |
|
| 5 |
[ |
| 6 |
pushdef(`elen_',`dimen_') # short elements |
| 7 |
pushdef(`sourcerad_',`dimen_*0.2') |
| 8 |
#linewid = 0.85 |
| 9 |
linewid = 0.6 |
| 10 |
|
| 11 |
Ct:dot |
| 12 |
Point_(-60); capacitor(,C); dlabel(0.14,0.14,,,C`'svg_sub(3)) |
| 13 |
Cr:dot |
| 14 |
left_; capacitor(,C); dlabel(0.14,0.14,C`'svg_sub(2),,) |
| 15 |
Cl:dot |
| 16 |
down_; capacitor(from Ct to Cl,C); dlabel(0.14,-0.10,C`'svg_sub(1),,) |
| 17 |
|
| 18 |
T:dot(at Ct+(0,elen_)) |
| 19 |
inductor(from T to Ct); dlabel(0.12,-0.1,,,L`'svg_sub(1)) |
| 20 |
|
| 21 |
Point_(-30); inductor(from Cr to Cr+vec_(elen_,0)) |
| 22 |
dlabel(0,-0.07,,L`'svg_sub(3),) |
| 23 |
R:dot |
| 24 |
L:dot( at (Cl-(Cos(30)*(elen_),0),R) ) |
| 25 |
|
| 26 |
inductor(from L to Cl); dlabel(-0.1,-0.1,L`'svg_sub(2),,,X) |
| 27 |
|
| 28 |
right_; resistor(from L to R); rlabel(,R`'svg_sub(2),) |
| 29 |
move down 0.3 |
| 30 |
|
| 31 |
resistor(from T to R); dlabel(0,0.15,,R`'svg_sub(3),) |
| 32 |
b_current(y,ljust above) |
| 33 |
|
| 34 |
line from L to 0.2<L,T> |
| 35 |
source(to 0.5 between L and T); dlabel(sourcerad_+0.07,0.1,-,,+) |
| 36 |
dlabel(0,sourcerad_+0.07,,u,) |
| 37 |
resistor(to 0.8 between L and T); dlabel(0,0.15,,R`'svg_sub(1),) |
| 38 |
line to T |
| 39 |
] |
| 40 |
popdef(`elen_') |
| 41 |
popdef(`sourcerad_') |
| 42 |
|
| 43 |
[ |
| 44 |
Point_(225) |
| 45 |
{B1: ebox ; b_current; dlabel(dimen_*0.4,-0.1,i`'svg_sub(1)) |
| 46 |
dot |
| 47 |
B4: ebox(to rvec_(rp_len,0)); b_current(,,,E); dlabel(dimen_*0.4,-0.1,,,i`'svg_sub(4)) } |
| 48 |
Point_(-45) |
| 49 |
B2: ebox ; b_current; dlabel(dimen_*0.4, 0.1,i`'svg_sub(2)) |
| 50 |
dot |
| 51 |
B7: ebox ; b_current; dlabel(dimen_*0.4, 0.1,i`'svg_sub(7)) |
| 52 |
B3: ebox(from B1.end to B2.end); b_current; dlabel(dimen_*0.4,0.1,i`'svg_sub(3)) |
| 53 |
dot(at (B1.start,B7.end)) |
| 54 |
{B5: ebox(to B1.end); b_current; dlabel(dimen_*0.4,-0.09,i`'svg_sub(5))} |
| 55 |
{B6: ebox(to B2.end); b_current; dlabel(dimen_*0.4, 0.09,i`'svg_sub(6))} |
| 56 |
{B8: ebox(right_ to B4.end); b_current; dlabel(dimen_*0.4, 0.1,i`'svg_sub(8))} |
| 57 |
B9: ebox(left_ to B7.end); b_current; dlabel(dimen_*0.4,-0.1,i`'svg_sub(9)) |
| 58 |
] with .w at last [].e+(0.5,0) |
| 59 |
|
| 60 |
command "</g>" # end font |
| 61 |
.PE |