texmf-dist/doc/latex/circuit-macros/doc/Sinus.m4
raw| 1 | .PS |
| 2 | # Sinus.m4 |
| 3 | cct_init |
| 4 | s_init(Sinus) |
| 5 | sinclude(tst.dim) |
| 6 | sinclude(Circuit_macros.dim) |
| 7 | |
| 8 | define(`phsource',`source($1, |
| 9 | #`Set angle to 0, draw sinusoid, restore angle' |
| 10 | m4smp_ang = rp_ang; rp_ang = 0 |
| 11 | sinusoid(m4h/2,twopi_/(m4h), |
| 12 | ifelse(`$2',,,`($2)/360*2*pi_+')pi_/2,-m4h/2,m4h/2) with .Origin at Here |
| 13 | rp_ang = m4smp_ang, |
| 14 | $3,$4,$5)') |
| 15 | |
| 16 | phsource(,120) |
| 17 | s_box(`{\tt phsourc{}e(,120)}') with .e at last line.end+(0,-0.2) |
| 18 | .PE |