Debian Codegraph @

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

raw
1 .PS # Pic input begins with .PS
2 # quickDPV.m4
3 cct_init # Set defaults
4
5 elen = 0.75 # Variables are allowed; default units are inches
6 move right 0.4
7 svgLink(SourcesDPV.svg,Vs: source(up_ elen))
8 llabel(-,svg_it(v`'svg_sub(s)),+)
9 svgLink(ResistorsDPV.svg,resistor(right_ elen)); rlabel(,svg_it(R),)
10 dot
11 { # Save current position and direction
12 capacitor(down_ Vs.len); rlabel(+,svg_it(v),-); llabel(,svg_it(C))
13 dot
14 } # Restore position and direction
15 line right_ elen*2/3
16 {move right 0.2}
17 inductor(down_ Vs.len); rlabel(,svg_it(L),); b_current("svg_it(i)")
18 line to (Vs,Here) # (Vs,Here) = (Vs.x,Here.y)
19 .PE # Pic input ends