Debian Codegraph @

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

raw
1 .PS
2 # `VariableDPV.m4'
3 cct_init
4
5 define(`elen_',dimen_); down_
6 [ { variable(`resistor',A) }; {"svg_tt(A)" at last line.end below}; move right
7 { variable(`resistor',N) }; {"svg_tt(N)" at last line.end below}; move right
8 { variable(`resistor',uN) }; {"svg_tt(uN)" at last line.end below}; move right
9 { variable(`resistor',NN) }; {"svg_tt(uN)" at last line.end below}; move right
10 { variable(`resistor',uNN) }; {"svg_tt(uNN)" at last line.end below}
11 ]
12 [
13 skp = 0.4
14 hskip = linewid*0.5
15 cskip = hskip
16 Orig: Here
17 { move right cskip+elen_+hskip
18 line invis right_ elen_ "svg_tt(C)"; move right_ hskip
19 { move up_ 0.25 }
20 line invis right_ elen_ "svg_tt(S)" }
21 Loopover_(`char',
22 `move down skp ifelse(char,A,*0.5)
23 { line invis right_ cskip "svg_tt(char)"
24 variable(`capacitor(,C)',char); move right_ hskip
25 variable(`capacitor(,C)',char`'C); move right_ hskip
26 variable(`capacitor(,C)',char`'S) }',
27 A,P,L,N)
28 ] with .w at last [].e+(0.4,0)
29 .PE