Debian Codegraph @

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

raw
1 .PS
2 # ex06DPV.m4
3 gen_init(svg_font(font-family="Times" font-style="italic",11bp__))
4
5 F: box invis wid 1.6i ht 1.8i
6 E: box invis wid F.wid ht F.ht
7 G: box invis wid 1i ht F.ht
8
9 ell = F.ht-0.6i
10 r = 0.3i
11 offset = 8bp__
12 hatch = 0.1i
13 dhs = hatch * sqrt(2)
14 qmell = F.ht - ell
15 kwid = F.wid-qmell-r
16
17 box wid G.e.x-F.w.x ht F.ht with .sw at F.sw thick linethick*3/2
18 Loopover_(`B',
19 `line from B.ne to B.se thick linethick*3/2
20 B`'T: B.se + (-qmell,qmell)
21 line from (B.w,B`'T) to B`'T chop 0 chop -offset
22 line from B`'T up ell chop -offset chop 0
23 line from B`'T + (-r,0) up ell
24 line dashed from B`'T to B.se
25 "svg_fsize(0,110)" at B`'T + (-r/2,ell/2)
26 "svg_fsize(0,110)" at B`'T + (qmell/2,ell/2)
27 "t" at (B`'T,B.n) + (-offset/2,offset)
28 thinlines_
29 arrow <-> from B.nw+(0,offset*2/3) right B.wid-qmell-r "k" above
30 for x = hatch to B`'T.x-B.w.x-r by hatch do {line down ell from B.nw+(x,0)}
31 for y = dhs to qmell by dhs do {line up y right y from (B.w,B`'T)+(0,-y)}
32 for x = y-qmell to B.wid-qmell*2 by dhs do {
33 line up qmell right qmell from B.sw+(x,0) }
34 for x = last line.start.x-B.w.x+dhs to B.wid by dhs do {
35 line up (B.wid-x)/2 right (B.wid-x)/2 from B.sw+(x,0) }
36 thicklines_
37 ',F,E)
38
39 line from (G.w,ET) right G.wid
40 line from ET + (0,r) left ET.x-E.w.x
41
42 thinlines_
43 for y = hatch to r by hatch do { line left r from ET+(0,r-y) }
44 for x = dhs to G.wid by dhs do {
45 line left x down x from G.nw+(x,0) }
46 for y=x-G.wid to G.ht-G.wid by dhs do {
47 line left G.wid down G.wid from G.ne+(0,-y) }
48 for x = y-(G.ht-G.wid) to G.wid by dhs do {
49 line right G.wid-x up G.wid-x from G.sw+(x,0) }
50 arrow <-> up r with .c at ET+(offset*2/3,r/2) "r" ljust
51 thicklines_
52
53 "q" at F.sw + (-offset,offset/3)
54 "l" at (F.w,FT) + (-offset,offset/3)
55
56 "n+p+m" at G.ne + (0,offset)
57
58 Loopover_(`B',`"B" ht 0.12 below at B.s+(0,-2bp__)',F,E,G)
59
60 # Adjust the bounding box without using s_box:
61 move from F.nw+(-12bp__,21bp__) to G.se+(20bp__,-15bp__)
62
63 command "</g>" # end font
64 .PE