summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/Csource.m4
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/circuit_macros/examples/Csource.m4')
-rw-r--r--graphics/circuit_macros/examples/Csource.m434
1 files changed, 17 insertions, 17 deletions
diff --git a/graphics/circuit_macros/examples/Csource.m4 b/graphics/circuit_macros/examples/Csource.m4
index 1441cfcb17..f2902525c0 100644
--- a/graphics/circuit_macros/examples/Csource.m4
+++ b/graphics/circuit_macros/examples/Csource.m4
@@ -31,7 +31,7 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
line from J.D to S then to Q.C ]')
R2: resistor(down_ dimen_)
- llabel(,"$R_2$" ljust "\unit{150}{}")
+ llabel(,"$R_2$" ljust "\num{150}")
dot
Q13: bi_tr(down_ dimen_,,P,E) with .E at Here
rlabel(,"$Q_{13}$" rjust "2N4236")
@@ -41,7 +41,7 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
dot(at Q14.E)
{ line left_ dimen_*1.3 then up_ dimen_
R1: potentiometer(up_ dimen_) with .Start at Here
- rlabel(,"$R_1$" ljust "\unit{20}{\kilo}")
+ rlabel(,"$R_1$" ljust "\SI{20}{\kilo{}}")
{ ground(at R1.T1) }
line from R1.End to (R1.End,Q13.E) then to Q13.E }
{ dot(at Q13.C+(0,-elen_))
@@ -50,7 +50,7 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
V1: gap(down_ dimen_,1); rlabel(+,V_1,-)
line down_ dimen_/4 chop dotrad_ chop 0; ground(,T) }
R3: resistor(down_ dimen_)
- llabel(,"$R_3$" ljust "\unit{150}{}")
+ llabel(,"$R_3$" ljust "\num{150}")
dot(at Q13.C+(0,-2*elen_))
line right_ dimen_/2
A1: opamp with .In2 at Here; "A$_1$" at A1.C
@@ -58,17 +58,17 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
line left_ dimen_/4 from A1.In1 then up_ dimen_/2 then right dimen_
dot
{ resistor(up_ elen_)
- llabel(,"$R_{14}$" rjust "\unit{19}{\kilo}")
+ llabel(,"$R_{14}$" rjust "\SI{19}{\kilo{}}")
line to (Here,Q13.E) then to Q13.E }
line to (A1.Out,Here)
dot
{ line to A1.Out
dot
resistor(down_ to (Here,Q14.E))
- llabel(,"$R_{13}$" ljust "\unit{91}{\kilo}")
+ llabel(,"$R_{13}$" ljust "\SI{91}{\kilo{}}")
line to Q14.E }
R6: resistor(right_ dimen_)
- clabel(,"$R_6$" "\vphantom{x}" "\unit{15}{\kilo}")
+ clabel(,"$R_6$" "\vphantom{x}" "\SI{15}{\kilo{}}")
dot
line to (Here,A1.In1) then right_ dimen_/4
A2: opamp with .In1 at Here; "A$_2$" at A2.C
@@ -101,39 +101,39 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
line to Q13.B
line from DP3.G to (T,DP3.G) then to (T,DP4.G) then to DP4.G
R11: resistor(down_ dimen_ from DP4.S)
- rlabel(,"$R_{11}$" rjust "\unit{20}{}")
+ rlabel(,"$R_{11}$" rjust "\num{20}")
D5: diode(up_ from DP3.S to (DP3.S,A2),Z)
llabel(,"$D_5$" rjust "1N4729$_{\strut}$")
line to R11.end
C4: capacitor(right_ dimen_*1.3 from DP3.S,C)
- llabel(,C_4); rlabel(,\unit{0.68}{\micro\farad})
+ llabel(,C_4); rlabel(,\SI{0.68}{\micro\farad})
C3: capacitor(right_ dimen_*1.3 from DP4.S,C)
- llabel(,C_3); rlabel(,\unit{0.68}{\micro\farad})
+ llabel(,C_3); rlabel(,\SI{0.68}{\micro\farad})
dot
dot(at (Here,R6))
C2: reversed(`capacitor',left_ dimen_*1.3,C)
- rlabel(,C_2); llabel(,\unit{0.1}{\micro\farad})
+ rlabel(,C_2); llabel(,\SI{0.1}{\micro\farad})
line to R6.end
R5: resistor(up_ from R6.end to (R6.end,Q13.B))
- rlabel(,"$R_5$" ljust "\unit{100}{\kilo}")
+ rlabel(,"$R_5$" ljust "\SI{100}{\kilo{}}")
dot(at R5.top-(0,dimen_/2))
line left_ dimen_/2
capacitor(down_ dimen_,C)
- rlabel(,"$C_1$" rjust "\unit{1}{\micro\farad}")
+ rlabel(,"$C_1$" rjust "\SI{1}{\micro\farad}")
ground(,T)
line from DP4.E to (DP4.E,R2.bottom)
resistor(up_ to (Here,R2.top))
- rlabel(,"$R_9$" ljust "\unit{910}{}")
+ rlabel(,"$R_9$" ljust "\num{910}")
dot
resistor(down_ from DP3.E to (DP3.E,R3.bottom))
- llabel(,"$R_{10}$" ljust "\unit{910}{}")
+ llabel(,"$R_{10}$" ljust "\num{910}")
dot
line from R5.top to (R5,Q13.E)
resistor(right_ elen_)
- clabel(,"$R_4$" "\vphantom{x}" "\unit{100}{\kilo}")
+ clabel(,"$R_4$" "\vphantom{x}" "\SI{100}{\kilo{}}")
line to (C4.end,Here) then to C4.end
DP5: npair(L,11,10) with .E at (C4.end,DP1.E)+(elen_*0.8,0)
@@ -149,7 +149,7 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
dot(,,1)
`"$+E_{CC}$"' ljust at last [].e
resistor(down_ from DP6.S to (DP6.S,C2))
- rlabel(,"$R_{12}$" rjust "\unit{20}{}")
+ rlabel(,"$R_{12}$" rjust "\num{20}")
dot
{ line to C2.e }
line to D6.end
@@ -162,7 +162,7 @@ define(`ppair',`[define(`m4lr',ifelse(`$1',,ljust,rjust))
dot(at (Vr,T))
resistor(left_ to (DP6.E,Here))
- clabel("$R_{15}$" "" "\unit{200}{}" ljust)
+ clabel("$R_{15}$" "" "\num{200}" ljust)
line to (DP1.E,Here)
dot