| 1 |
.PS |
| 2 |
# `JackDPV.m4' |
| 3 |
cct_init |
| 4 |
# https://tex.stackexchange.com/questions/720858/is-there-a-tikz-or-circuitikz-headphone-jack-connector-diagram |
| 5 |
|
| 6 |
P: [ |
| 7 |
P1: plug |
| 8 |
foreach_(`Y',`"svg_it(Y)" wid 0.1 at P1.Y rjust',A,B) |
| 9 |
"svg_it(TB)" at P1.TB ljust above |
| 10 |
"svg_it(TA)" at P1.TA ljust below |
| 11 |
|
| 12 |
P2: plug(,R) with .B at P1.A+(0.85,0) |
| 13 |
foreach_(`Y',`"svg_it(Y)" wid 0.1 at P2.Y rjust',A,B) |
| 14 |
|
| 15 |
P4: plug(,3) with .A at P2.B+(0.85,0) |
| 16 |
foreach_(`Y',`"svg_it(Y)" at P4.Y rjust',A,B,C) |
| 17 |
|
| 18 |
P5: plug(L,3R) with .A at P4.A+(1,0) |
| 19 |
foreach_(`Y',`"svg_it(Y)" wid 0.1 at P5.Y ljust',A,B,C) |
| 20 |
"svg_tt(`plug')" below at P1.s+(0,-0.1) |
| 21 |
"svg_tt(`plug(,R)')" below at P2.s+(0,-0.1) |
| 22 |
"svg_tt(`plug(,3)')" below at P4.s+(-0.1,-0.1) |
| 23 |
"svg_tt(`plug(L,3R)')" below at P5.s+(0.1,-0.1) |
| 24 |
] |
| 25 |
|
| 26 |
L: [ right_ |
| 27 |
J1: jack |
| 28 |
thinlines_ |
| 29 |
"svg_it(L)" wid 0.1 rjust at J1.L |
| 30 |
arrow <- right 0.1 from J1.F; "svg_it(F)" ljust |
| 31 |
arrow <- down 0.1 left 0.1 from J1.G ; "svg_it(G)" rjust |
| 32 |
arrow <- up 0.1 left 0.1 from J1.H ; "svg_it(H)" rjust |
| 33 |
thicklines_ |
| 34 |
|
| 35 |
J3: jack(L,RLS) with .F at J1.F+(0.4,0) |
| 36 |
"svg_it(L)" ljust at J3.L |
| 37 |
"svg_it(S)" ljust at J3.S |
| 38 |
|
| 39 |
J2: jack(,LMBS) with .F at J3.F+(1.5,0) |
| 40 |
thinlines_ |
| 41 |
"svg_it(L)" rjust at J2.L |
| 42 |
arrow <- from J2.LM left 0.25; "svg_it(L)M" wid 0.18 rjust |
| 43 |
arrow <- from J2.LB left 0.25; "svg_it(L)B" rjust |
| 44 |
"svg_it(S)" rjust at J2.S |
| 45 |
thicklines_ |
| 46 |
|
| 47 |
J11: jack(,LMBSX) with .w at last [].e+(0.5,0) |
| 48 |
foreach_(`Y',`"svg_small(svg_it(Y))" rjust at J11.Y.w', L,LM,LB,S,G) |
| 49 |
|
| 50 |
J8: jack(,XLLBSSBC) with .sw at last [].se+(0.75,0) |
| 51 |
foreach_(`Y',`"svg_small(svg_it(Y))" rjust at J8.Y.w', L,L1,LB1,S,S1,SB1,G,C) |
| 52 |
|
| 53 |
"svg_tt(`jack')" below at J1.s+(0,-0.15) |
| 54 |
"svg_tt(`..(L,RLS)')" at (J3,last "") |
| 55 |
"svg_tt(`..(,LMBS)')" at (J2,last "") |
| 56 |
"svg_tt(`..(,LMBSX)')" at (J11,last "") |
| 57 |
"svg_tt(`..(,XLLBSSBC)')" wid 80bp__ at (J8, last "") |
| 58 |
] with .nw at last [].sw + (0,0.1) |
| 59 |
|
| 60 |
.PE |