Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/Contact.m4

raw
1 .PS
2 # Contact
3 cct_init
4
5 movw = 0.45
6 {
7 contact
8 {S:`"\tt contact"' at last [].s+(0,-0.15)
9 "\sl P" rjust at last [].P.w
10 "\sl O" ljust at last [].O
11 "\sl C" ljust at last [].C }
12 move right_ movw; contact(RX)
13 {`"\tt (RX)"' at (last [].s,S)
14 "\sl P" rjust at last [].P.w
15 "\sl O" ljust at last [].O
16 "\sl C" ljust at last [].C }
17 move right_ movw; contact(OX); {`"\tt (OX)"' at (last [],S)}
18 move right_ movw; contact(CX); {`"\tt (CX)"' at (last [],S)}
19
20 move right_ movw; contact(X)
21 {S: `"\tt (X)"' at last [].s+(0,-0.15)
22 "\sl P" rjust at last [].P.w
23 "\sl O" ljust at last [].O
24 "\sl C" ljust at last [].C }
25 move right_ movw; contact(PR)
26 {S: `"\tt (PR)"' at last [].s+(0,-0.15)
27 "\sl P" rjust at last [].P.w
28 "\sl O" ljust at last [].O
29 "\sl C" ljust at last [].C }
30 move right_ movw; contact(PO); {`"\tt (PO)"' at (last [],S)}
31 {"\sl O" ljust at last [].O
32 "\sl C" ljust at last [].C }
33 move right_ movw; contact(PCX); {`"\tt (PCX)"' at (last [],S)}
34 }
35
36 move down 0.75; right_ ; {
37 contact(I); {`S: "\tt (I)"' at last [].s+(0,-12bp__)
38 "\sl P" rjust at last [].P.w
39 "\sl O" ljust at last [].O.e
40 "\sl C" ljust at last [].C.e }
41 move right_ movw; contact(RI)
42 {`"\tt (RI)"' at (last [],S)
43 "\sl P" rjust at last [].P.w
44 "\sl O" ljust at last [].O.e
45 "\sl C" ljust at last [].C.e }
46 move right_ movw; contact(OI); {`"\tt (OI)"' at (last [],S)}
47 move right_ movw; contact(CI); {`"\tt (CI)"' at (last [],S)}
48
49 move right_ movw; contact(PI); {`"\tt (PI)"' at (last [],S) }
50 {"\sl O" ljust at last [].O.e
51 "\sl C" ljust at last [].C.e }
52 move right_ movw; contact(PIO); {`"\tt (PIO)"' at (last [],S) }
53 {"\sl C" ljust at last [].C.e}
54 {"\sl O" ljust at last [].O.e}
55 move right_ movw; contact(PICX); {`"\tt (PICX)"' at (last [],S) }
56 {"\sl C" ljust at last [].C.e}
57 {"\sl O" ljust at last [].O.e}
58 }
59
60 movewid = movw
61 move down 0.65; right_; {
62 K: contact(T)
63 {S: `"\tt (T)"' at last [].s+(0,-0.15)
64 thinlines_
65 spline <- right 0.09 then up 0.05 right 0.05 from K.C; "$\;\;$\sl C"
66 spline <- right 0.09 then down 0.05 right 0.05 from K.O; "$\;\;$\sl O"
67 thicklines_ }
68 move; K: contact(RT)
69 {`"\tt (RT)"' at (last [],S)
70 thinlines_
71 spline <- right 0.09 then up 0.05 right 0.05 from K.O; "$\;\;$\sl O"
72 spline <- right 0.09 then down 0.05 right 0.05 from K.C; "$\;\;$\sl C"
73 thicklines_ }
74 move; contact(OT); {S: `"\tt (OT)"' at (last [],S) }
75 move; contact(CT); {S: `"\tt (CT)"' at (last [],S) }
76 move; contact(PT); {S: `"\tt (PT)"' at (last [],S) }
77 move; contact(PTO); {S: `"\tt (PTO)"' at (last [],S) }
78 move; contact(PTC); {S: `"\tt (PTC)"' at (last [],S) }
79 }
80
81 move down 0.65; right_; {
82 K: contact(U)
83 {S: `"\tt (U)"' at last [].s+(0,-0.15)
84 thinlines_
85 spline <- right 0.09 then up 0.05 right 0.05 from K.C; "$\;\;$\sl C"
86 spline <- right 0.09 then down 0.05 right 0.05 from K.O; "$\;\;$\sl O"
87 thicklines_ }
88 move; K: contact(RU)
89 {`"\tt (RU)"' at (last [],S)
90 thinlines_
91 spline <- right 0.09 then up 0.05 right 0.05 from K.O; "$\;\;$\sl O"
92 spline <- right 0.09 then down 0.05 right 0.05 from K.C; "$\;\;$\sl C"
93 thicklines_ }
94 move; K: contact(OU); {S: `"\tt (OU)"' at (last [],S)
95 "\sl O" ljust at K.O.e }
96 move; K: contact(CU); {S: `"\tt (CU)"' at (last [],S)
97 "\sl C" ljust at K.C.e }
98 move; contact(PU); {S: `"\tt (PU)"' at (last [],S) }
99 move; contact(PUO); {S: `"\tt (PUO)"' at (last [],S) }
100 move; contact(PUC); {S: `"\tt (PUC)"' at (last [],S) }
101 }
102 .PE