Debian Codegraph @

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

raw
1 .PS
2 # ex10.m4
3 cct_init(svg_font(sans-serif,11bp__))
4
5 [
6 dt = 360/5
7 r = 0.75
8
9 N0: dot(at (Rect_(r,90)))
10 N1: dot(at (Rect_(r,(90-dt))))
11 N2: dot(at (Rect_(r,(90-2*dt))))
12 N3: dot(at (Rect_(r,(90-3*dt))))
13 N4: dot(at (Rect_(r,(90-4*dt))))
14
15 line from N0 to N1 then to N2 then to N3 then to N4 then to N0
16 L14: line from N1 to N4
17 L24: line from N2 to N4
18 C02: crossover(from N0 to N2,,L14)
19 C13: crossover(from N1 to N3,,C02,L24)
20 C03: crossover(from N0 to N3,,L14,L24)
21 ]
22
23 [
24 move right 0.5
25 up_
26 setrgb(255,0,0)
27 Q1: bi_tr(,R) # Q1 upward with base to the right
28 llabel(,Q`'svg_sub(1))
29 resetrgb # Label to left of last []
30 setrgb(0,0,255)
31 Q2: bi_tr with .C at Q1.C+(elen_*7/4,0) # Q2 with base to left
32 rlabel(,Q`'svg_sub(2))
33 resetrgb
34 move right 0.5
35
36 ground(at Q1.E)
37 ground(at Q2.E)
38
39 line right_ dimen_/3 from Q1.B # Extend the base conductors
40 B1: Here
41 line left_ dimen_/3 from Q2.B
42 B2: Here
43
44 resistor(up_ elen_*0.75 from Q1.C); llabel(,R`'svg_sub(L)) # Load resistors
45 line to (Q2.C,Here) "svg_it(V`'svg_sub(svg_norm(cc)))" below
46 resistor(down_ to Q2.C); llabel(,R`'svg_sub(L))
47
48 move to Q1.C+(0,dimen_/5)
49 { resistor(right_ to (B1,Here)); llabel(,R`'svg_sub(1))
50 X: line to B2 } # Label the line to be jumped
51 resistor(from (Q2.C,Here) left_ to (B2,Here)); rlabel(,R`'svg_sub(1))
52 crossover(to B1,R,X)
53
54 resistor(down_ elen_*0.75); rlabel(,R`'svg_sub(2)) # Bias resistors
55 {"svg_it(-V`'svg_sub(svg_norm(cc)))" rjust}
56 line to (B2,Here)
57 resistor(up_ to B2); rlabel(,R`'svg_sub(2))
58 ] with .sw at last [].se+(0.75,0)
59
60 command "</g>" # end font
61
62 .PE