Debian Codegraph @

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

raw
1 .PS
2 # `Variable.m4'
3 cct_init
4
5 define(`elen_',dimen_); down_
6 [ { variable(`resistor',A) }; {"\tt A" at last line.end below}; move right
7 { variable(`resistor',N) }; {"\tt N" at last line.end below}; move right
8 { variable(`resistor',uN) }; {"\tt uN" at last line.end below}; move right
9 { variable(`resistor',NN) }; {"\tt NN" at last line.end below}; move right
10 { variable(`resistor',uNN) }; {"\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_ "\tt C"; move right_ hskip
19 line invis right_ elen_ "\tt S" }
20 foreach_(`char',
21 `move down skp ifelse(char,A,*0.5)
22 { line invis right_ cskip "\tt char"
23 variable(`capacitor(,C)',char); move right_ hskip
24 variable(`capacitor(,C)',char`'C); move right_ hskip
25 variable(`capacitor(,C)',char`'S) }',
26 A,P,L,N)
27 ] with .w at last [].e+(0.4,0)
28 .PE