summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/Mixer.m4
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/circuit_macros/examples/Mixer.m4')
-rw-r--r--graphics/circuit_macros/examples/Mixer.m430
1 files changed, 15 insertions, 15 deletions
diff --git a/graphics/circuit_macros/examples/Mixer.m4 b/graphics/circuit_macros/examples/Mixer.m4
index 32920a89cf..13291261c8 100644
--- a/graphics/circuit_macros/examples/Mixer.m4
+++ b/graphics/circuit_macros/examples/Mixer.m4
@@ -29,10 +29,10 @@ RF: dot(,,1); "sftxt(RF)" at RF.w rjust
line from T1.L3.end left_ del; corner; ground(,,F)
line down_ del/2 from T1.L1.start then right_ del
- reversed(`capacitor',right_ dimen_,C); llabel(,\unit{0.1}{\micro\farad})
+ reversed(`capacitor',right_ dimen_,C); llabel(,\SI{0.1}{\micro{}}\hbox{\sf F})
BT: dot(at Here)
line up_ del/2 from T1.L2.end then right del
- reversed(`capacitor',right_ dimen_,C); llabel(,\unit{0.1}{\micro\farad})
+ reversed(`capacitor',right_ dimen_,C); llabel(,\SI{0.1}{\micro{}}\hbox{\sf F})
t = dimen_*7/8
line to (BT.x+4*t,Here.y)
TT: dot
@@ -55,46 +55,46 @@ Q2: mosfet(,,dMESDQuB,E) at (Q1,T2.s-(0,elen_-del))
line right_ del from T1.T then down_ T1.T.y-BT.y+del
corner; left_
capacitor(to (T1.L3.end-(del,0),Here),C)
- rlabel(,\unit{0.1}{\micro\farad}\hskip20pt)
+ rlabel(,\SI{0.1}{\micro{}}\hbox{\sf F}\hskip20pt)
LOD: dot
{ line to (RF,Here); dot(,,1)
move left_ 4bp__; "sftxt(local)" rjust "sftxt(oscillator)" rjust
move left 40bp__ }
line from T2.T left_ to (Q1.S,T2.T)
T2T: dot
- { capacitor(down_ to (Here,BT),C); rlabel(,\unit{0.1}{\micro\farad})
+ { capacitor(down_ to (Here,BT),C); rlabel(,\SI{0.1}{\micro{}}\hbox{\sf F})
ground(,T,F) }
{ line from T2.L3.start right_ del; corner; ground(,,F) }
Vt: dot(at (0.5 between BT and TT,Q1.Env.nw),,1)
{ "sftxt($+$V$_{\hbox{\scriptsize CC}}$)" at last [].e ljust }
line to (Here,T2T) chop dotrad_ chop 0; dot
{ line to (Here,BT); Cv: capacitor(down_ 3/2*dimen_,C)
- llabel(\unit{10}{\micro\farad}); G: dot; ground(,,F) }
+ llabel(\SI{10}{\micro{}}\hbox{\sf F}); G: dot; ground(,,F) }
for s=-1 to 1 by 2 do {{
line right s*t; corner
resistor(down_ to (Here,BT))
- if s<0 then { llabel(,\unit{5}{\kilo\ohm}) } \
- else { rlabel(,\unit{5}{\kilo\ohm})
+ if s<0 then { llabel(,\SI{5}{\kilo\ohm}) } \
+ else { rlabel(,\SI{5}{\kilo\ohm})
{ dot(at last line.start); line to (TT,Here)
resistor(right_ to (T2T,Here))
- llabel(,\unit{10}{\ohm}) } }
+ llabel(,\SI{10}{\ohm}) } }
P: potentiometer(down_ Cv.len,,0.5,s*t ) with .Start at Here
- if s<0 then { "sftxt(\unit{1}{\kilo\ohm})" at P. 1st [].ne ljust } \
- else { "sftxt(\unit{1}{\kilo\ohm})" at P. 1st [].sw rjust }
+ if s<0 then { "sftxt(1\`,'\si{\kilo\ohm})" at P. 1st [].ne ljust } \
+ else { "sftxt(1\`,'\si{\kilo\ohm})" at P. 1st [].sw rjust }
dot(at P.End)
dot(at P.T1)
{ L: inductor(up_ to (Here,BT),L);
- if s<0 then { "sftxt(\unit{100}{\micro\henry})" at last [].sw rjust } \
+ if s<0 then { "sftxt(100\`,'\si{\micro{}}H)" at last [].sw rjust } \
else { line to TT
- "sftxt(\unit{100}{\micro\henry})" \
+ "sftxt(100\`,'\si{\micro{}}H)" \
at last [].ne ljust below } }
capacitor(down_ to (Here,G),C)
- if s<0 then { rlabel(,\unit{0.1}{\micro\farad}) } \
- else { llabel(,\unit{0.1}{\micro\farad}) }
+ if s<0 then { rlabel(,\SI{0.1}{\micro{}}\hbox{\sf F}) } \
+ else { llabel(,\SI{0.1}{\micro{}}\hbox{\sf F}) }
dot }}
- resistor(down_ from LOD to (LOD,G)); llabel(,\unit{51}{\ohm}); corner
+ resistor(down_ from LOD to (LOD,G)); llabel(,\SI{51}{\ohm}); corner
line to (Q2.S,Here) then to Q2.S
',