Debian Codegraph @

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

raw
1 .PS # Pic input begins with .PS
2 cct_init # Read in macro definitions and set defaults
3 elen = 0.75 # Variables are allowed; default units are inches
4 Vs: source(up_ elen); llabel(-,v_s,+) # Name and label the source
5 resistor(right_ elen); rlabel(,R,) # Semicolon and line end are equivalent
6 dot
7 { # Save the current position and direction
8 capacitor(down_ Vs.len); rlabel(+,v,-); llabel(,C,)
9 dot
10 } # Restore position and direction
11 line right_ elen*2/3
12 inductor(down_ Vs.len); rlabel(,L,); b_current(i)
13 line to (Vs,Here) # (Vs,Here) = (Vs.x,Here.y)
14 .PE # Pic input ends