Debian Codegraph @

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

raw
1 .PS
2 # `Nport.m4'
3 cct_init
4 textoffset = 5bp__
5
6 Twoport: nport
7
8 "\sl W1a" above rjust at Twoport.W1a
9 "\sl W1b" below rjust at Twoport.W1b wid 0.25
10 "\sl E1a" above ljust at Twoport.E1a
11 "\sl E1b" below ljust at Twoport.E1b
12
13 Nport: nport(wid 2.0 ht 1 fill_(0.9) "n-port",1,2,3,4) \
14 with .Box.w at Twoport.Box.e+(1.0,0)
15
16 "\sl W1a" rjust at Nport.W1a
17 "\sl W1b" rjust at Nport.W1b
18
19 "\sl E1a" ljust at Nport.E1a
20 "\sl E3b" ljust at Nport.E3b
21
22 "\sl N1a" above at Nport.N1a
23 "\sl N1b$\;\;$" above at Nport.N1b
24 "\sl $\;\;$N2a" above at Nport.N2a
25 "\sl N2b" above at Nport.N2b
26
27 "\sl S1a" below at Nport.S1a
28 "\sl S4b" below at Nport.S4b
29
30 "$\cdots$" at 0.5<Nport.S1a,Nport.S4b>+(0,-0.10)
31 "$\vdots$" at 0.5<Nport.E1a,Nport.E3b>+(0.15,0.05)
32
33 Nterm: nterm with .Box.w at Nport.Box.e+(1.0,0)
34 "\sl W1" rjust at Nterm.W1
35 "\sl E1" ljust at Nterm.E1
36 "\sl S1" below at Nterm.S1
37
38 `"\tt nport"' at Twoport.s+(0,-0.3)
39 `"\tt nport(wid 2.0 ht 1 fill\_(0.9) \"n-port\",1,2,3,4)"' \
40 at Nport.s+(0,-0.25)
41 `"\tt nterm"' at Nterm.s+(0,-0.3)
42
43 .PE