Debian Codegraph @

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

raw
1 .PS
2 # SwitchesDPV.m4
3 cct_init(svg_font(sans-serif,11bp__,2bp__))
4 textoffset = 3bp__
5
6 movewid = 0.25
7
8 define(`Below',`at last [].s+(0,-(8 ifelse(`$1',,,+10*(`$1')))bp__)')
9 movewid = 0.25
10
11 # Row 1
12 right_; {
13 lswitch; {"svg_tt(`lswitch')" at last [].s Below}
14 move right_
15 lswitch(,,O); {"svg_tt(`(,,O)')" at last [].s Below}
16 move right_
17 lswitch(,,C); {"svg_tt(`(,,C)')" at last [].s Below}
18 move right_
19 lswitch(,,DA); {"svg_tt(`(,,DA)')" at last [].s Below}
20 move right_
21 lswitch(,,dDO); {"svg_tt(`(,,dDO)')" at last [].s Below}
22 move right_
23 lswitch(,,uDC); {"svg_tt(`(,,uDC)')" at last [].s Below}
24 }
25 # Row 2
26 move down 0.4; right_; {
27 lswitch(,,K); {"svg_tt(`(,,K)')" at last [].s Below}
28 move right_
29 lswitch(,,KD); {"svg_tt(`(,,KD)')" at last [].s Below}
30 move right_
31 lswitch(,,KOD); {"svg_tt(`(,,KOD)')" at last [].s Below}
32 move right_
33 lswitch(,,KCD); {"svg_tt(`(,,KCD)')" at last [].s Below}
34 move right_
35 bswitch; {"svg_tt(``bswitch'')" at last [].s Below}
36 move right_
37 bswitch(,,C); {"svg_tt(`(,,C)')" at last [].s Below}
38 }
39 # Row 3
40 move down 0.45; right_; {
41 D: dswitch; {"svg_tt(`dswitch')" at D.start below ljust}
42 thinlines_
43 {spline <- from last [].B.c up 0.1 then up 0.05 left 0.1
44 "svg_tt(`B')" rjust}
45 thicklines_
46 move right_
47 dswitch(,,WdBK); {"svg_tt(`(,,WdBK)')" at last [].s Below}
48 thinlines_
49 { spline <- from 0.5 along_(last [].B) up 0.1 then up 0.10 left 0.1
50 {"svg_tt(`B')" rjust} }
51 { spline <- from last [].K right 0.1 then right 0.05 up 0.15
52 {"svg_tt(`K')" above }}
53 thicklines_
54 move right_
55 dswitch(,,WBmdDK); {"svg_tt(`(,,WBmdDK)')" at last [].s Below}
56 move right_
57 dswitch(,,WBKTr); {"svg_tt(`(,,WBKTr)')" at last [].s Below}
58 move right_
59 dswitch(,,WdBL); {"svg_tt(`(,,WdBL)')" at last [].s Below}
60 move right_
61 dswitch(,,WBSd); {"svg_tt(`(,,WBSd)')" at last [].s Below}
62 }
63 # Row 4
64 move down 0.4; right_; {
65 dswitch(,,WBCb); {"svg_tt(`(,,WBCb)')" at last [].s Below}
66 move right_
67 dswitch(,,WBcCb); {"svg_tt(`(,,WBcCb)')" at last [].s Below}
68 move right_
69 dswitch(,,WBcDI); {"svg_tt(`(,,WBcDI)')" at last [].s Below}
70 thinlines_
71 {arrow <- from last [].DI.start up_ 0.1 right_ 0.15; "svg_tt(`DI')" ljust}
72 thicklines_
73 move right_
74 # dswitch(,,WBDI); {"svg_tt(`(,,WBDI)')" at last [].s Below}
75 dswitch(,,WBKCo); {"svg_tt(`(,,WBKCo)')" at last [].s Below}
76 move right_
77 dswitch(,,WBFDI); {"svg_tt(`(,,WBFDI)')" at last [].s Below}
78 move right_
79 dswitch(,,WBFSd); {"svg_tt(`(,,WBFSd)')" at last [].s Below}
80 }
81 # Row 5
82 move down 0.4; right_; {
83 dswitch(,,WBMMR); {"svg_tt(`(,,WBMMR)')" at last [].s Below}
84 move right_
85 dswitch(,,WBMM); {"svg_tt(`(,,WBMM)')" at last [].s Below}
86 move right_
87 dswitch(,,WBMR); {"svg_tt(`(,,WBMR)')" at last [].s Below}
88 move right_
89 dswitch(,,WBEL); {"svg_tt(`(,,WBEL)')" at last [].s Below}
90 move right_
91 dswitch(,,WBLE); {"svg_tt(`(,,WBLE)')" at last [].s Below}
92 move right_
93 dswitch(,,WBoKEL); {"svg_tt(`(,,WBoKEL)')" at last [].s Below}
94 }
95 # Row 6
96 move down moveht+2bp__; right_; {
97 dswitch(,,WBTh); {"svg_tt(`(,,WBTh)')" at last [].s Below}
98 move right_
99 dswitch(,,WBKC); {"svg_tt(`(,,WBKC)')" at last [].s Below}
100 thinlines_
101 { arrow <- from last [].C.c left 0.2; "svg_tt(`C')" rjust }
102 thicklines_
103 move right_
104 dswitch(,,WBM); {"svg_tt(`(,,WBM)')" at last [].s Below}
105 move right_
106 dswitch(,,WBCO); {"svg_tt(`(,,WBCO)')" at last [].s Below}
107 move right_
108 dswitch(,,WBMP); {"svg_tt(`(,,WBMP)')" at last [].s Below}
109 move down_ 2bp__ then right_
110 dswitch(,,WBoKCP); {"svg_tt(`(,,WBoKCP)')" at last [].s Below}
111 }
112 # Row 7
113 move down moveht*7/6; right_; {
114 dswitch(,,WBCY); {"svg_tt(`(,,WBCY)')" at last [].s Below}
115 move right_
116 dswitch(,,WBCZ); {"svg_tt(`(,,WBCZ)')" at last [].s Below}
117 move right_
118 dswitch(,,WBCE); {"svg_tt(`(,,WBCE)')" at last [].s Below}
119 move right_
120 dswitch(,,WBRH); {"svg_tt(`(,,WBRH)')" at last [].s Below}
121 move right_
122 dswitch(,,WBRdH); {"svg_tt(`(,,WBRdH)')" at last [].s Below}
123 move right_
124 dswitch(,,WBRHH); {"svg_tt(`(,,WBRHH)')" at last [].s Below}
125 }
126 # Row 8
127 move down moveht; right_; {
128 move down_ 2bp__; right_
129 dswitch(,,WBPr); {"svg_tt(`(,,WBPr)')" at last [].s Below}
130 move right_
131 dswitch(,,WBPrT); {"svg_tt(`(,,WBPrT)')" at last [].s Below}
132 move down_ 6bp__ then right_
133 dswitch(,,WBPrM); {"svg_tt(`(,,WBPrM)')" at last [].s Below}
134 move right_
135 dswitch(,,WBDIGX,text=W)
136 {"svg_tt(`(,,WBDIGX,')" ljust at last line.start+(0,-15bp__) \
137 "svg_tt(`text=W)')" ljust}
138 move right_
139 dswitch(,,WBDIGC,circle="M")
140 {"svg_tt(`(,,WBDIGC,')" ljust at last line.start+(0,-15bp__) \
141 "svg_tt(`circle=\"M\")')" ljust}
142 move right_
143 dswitch(,,WBcDIGC,circle="M")
144 {"svg_tt(`(,,WBcDIGC,')" wid 72bp__ ljust at last line.start+(0,-15bp__) \
145 "svg_tt(`circle=\"M\")')" ljust}
146 }
147
148 command "</g>')" # end font
149 .PE