Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/dpv/ex11DPV.m4

raw
1 .PS
2 # ex11.m4
3 cct_init(svg_font(sans-serif,11bp__,1bp__))
4
5 "audio" ljust
6 { arrow down_ elen_/4}
7 resistor(down_ 2*elen_) ; llabel(R`'svg_sub(17))
8 G: ground
9 capacitor(right_ dimen_ from last [].c) ; rlabel(,C`'svg_sub(19))
10 {arrow <- right_ arrowht from last line.start}
11 { resistor(down_ to (Here,G)); rlabel(,R`'svg_sub(19)) }
12 {R18: resistor(up_ elen_*1.2); llabel(,R`'svg_sub(18)) }
13
14 line right_ elen_/4 ; up_
15 Q4: bi_tr(,,,E) with .B at Here; llabel(,,Q`'svg_sub(4))
16 resistor(down_ from Q4.E to (Q4.E,G)); rlabel(,R`'svg_sub(21))
17 resistor(up_ from Q4.C to (Q4.C,R18.end)); llabel(,R`'svg_sub(20))
18 line up_ elen_/4; dot; "svg_it(V`'svg_sub(CC))" ljust
19
20 T1: Q4.C+(0,elen_/8)
21
22 capacitor(right_ dimen_ from T1); llabel(,C`'svg_sub(20))
23 { capacitor(down_ 0.5*(Here.y-G.y)); rlabel(,C`'svg_sub(21))
24 resistor(right_ elen_); llabel(,R`'svg_sub(23))
25 arrow <- from last [] to (last [],G)
26 }
27 resistor(right_ elen_); llabel(,R`'svg_sub(22))
28 { resistor(down_ 0.5*(Here.y-G.y)); llabel(,R`'svg_sub(24))
29 capacitor(down_ to (Here,G)); llabel(,C`'svg_sub(22)) }
30
31 capacitor(right_ dimen_); llabel(,C`'svg_sub(23))
32 { capacitor(down_ to (Here,G)); rlabel(,C`'svg_sub(24)) }
33 line right_ elen_/2
34 Q5I: Here
35 line right_ elen_/4 ; up_
36 Q5: bi_tr(,,,E) with .B at Here; rlabel(,Q`'svg_sub(5))
37 R27: resistor(down_ dimen_ from Q5.E); rlabel(,R`'svg_sub(27))
38 line to (Here,G)
39 resistor(from Q5I down_ Q5I.y-R27.end.y-elen_/12); rlabel(,R`'svg_sub(25))
40 { capacitor(to (Here,G)); llabel(,C`'svg_sub(25)) }
41
42 crossover(to (R27,Here)+(hoprad_,0),,R27)
43 R28: resistor(right_ elen_-hoprad_); llabel(,R`'svg_sub(28))
44 resistor(down_ to (Here,G)); rlabel(,R`'svg_sub(30))
45 line to G
46
47 resistor(up_ from Q5.C to (Q5.C,R18.end)); llabel(,R`'svg_sub(26))
48 line to R18.end
49
50 up_
51 Q6: bi_tr(,,,E) with .E at (R28.end.x,Q5.E.y+(T1.y-Q4.B.y)); llabel(,,Q`'svg_sub(6))
52
53 line from Q6.B to (Q5.C,Q6.B)
54 resistor(down_ from Q6.E to R28.end); rlabel(,R`'svg_sub(29))
55
56 line right_ dimen_*3/4 from Q6.C
57
58 { R31: resistor(down_ elen_); circle diam dimen_*0.8 with .c at last line.c
59 "svg_it(R`'svg_sub(31))" below at last circle.sw
60 "svg_it(V)" below at last line.c+(dimen_/4,0) }
61 line right_ dimen_
62 { capacitor(down_ elen_); rlabel(,,C`'svg_sub(26))
63 line down_ elen_/4; dot; "svg_it(V`'svg_sub(SS))" ljust }
64 line right_ dimen_/2
65 T6: transformer(down_ elen_) with .P1 at Here
66 line from T6.P2 to R31.end
67 {"svg_it(T`'svg_sub(6))" at T6.n above }
68 line right_ elen_/3 from T6.S1
69 inductor(down_ elen_,W)
70 line to T6.S2
71
72 speaker(R) with .Box.w at last [].e+(dimen_/8,0)
73
74 command "</g>" # end font
75 .PE