summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkxl/m-circuitikz.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/modules/mkxl/m-circuitikz.mkxl')
-rw-r--r--tex/context/modules/mkxl/m-circuitikz.mkxl89
1 files changed, 45 insertions, 44 deletions
diff --git a/tex/context/modules/mkxl/m-circuitikz.mkxl b/tex/context/modules/mkxl/m-circuitikz.mkxl
index 9a105ff09..27ef72642 100644
--- a/tex/context/modules/mkxl/m-circuitikz.mkxl
+++ b/tex/context/modules/mkxl/m-circuitikz.mkxl
@@ -18,11 +18,9 @@
\startmodule[circuitikz]
-\def\pgfcircversion {1.4.4}
-\def\pgfcircversiondate {2021/10/31}
-
\usetikzlibrary[calc]
-\usetikzlibrary[arrows.meta, bending]
+\usetikzlibrary[arrows.meta]
+\usetikzlibrary[bending]
\usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)
\tikzinputfile{pgfcirc.defines.tex}
@@ -41,6 +39,9 @@
\tikzinputfile{pgfcirccurrent.tex}
\tikzinputfile{pgfcircflow.tex}
+\ifdefined\pgfcircversion \else \def\pgfcircversion {0.0.0} \fi
+\ifdefined\pgfcircversiondate \else \def\pgfcircversiondate {1010/01/01} \fi
+
% defaults
\setupmodule
@@ -49,7 +50,7 @@
resistor=american,
inductor=cute,
logic=american,
- siunitx=true,
+ %siunitx=true,
arrowmos=false]
% can be done nicer ... todo
@@ -61,60 +62,60 @@
\processaction
[\currentmoduleparameter{current}]
- [european=>\ctikzset{ current=european},
- american=>\ctikzset{ current=american}]
+ [european=>\ctikzset{current=european},
+ american=>\ctikzset{current=american}]
\processaction
[\currentmoduleparameter{label}]
- [straight=>\ctikzset{label/align = straight},
- align=>\ctikzset{label/align = rotate},
- smart=>\ctikzset{label/align = smart}]
+ [straight=>\ctikzset{label/align=straight},
+ align=>\ctikzset{label/align=rotate},
+ smart=>\ctikzset{label/align=smart}]
\processaction
[\currentmoduleparameter{resistor}]
- [european=>\ctikzset{ resistor=european},
- american=>\ctikzset{ resistor=american}]
+ [european=>\ctikzset{resistor=european},
+ american=>\ctikzset{resistor=american}]
\processaction
[\currentmoduleparameter{inductor}]
- [european=>\ctikzset{ inductor=european},
- american=>\ctikzset{ inductor=american},
- cute=>\ctikzset{ inductor=cute}]
+ [european=>\ctikzset{inductor=european},
+ american=>\ctikzset{inductor=american},
+ cute=>\ctikzset{inductor=cute}]
\processaction
[\currentmoduleparameter{diode}]
- [full=>\ctikzset{ diode=full},
- empty=>\ctikzset{ diode=empty}]
+ [ full=>\ctikzset{diode=full},
+ empty=>\ctikzset{diode=empty}]
\processaction
[\currentmoduleparameter{logic}]
- [european=>\ctikzset{ logic ports=european},
- american=>\ctikzset{ logic ports=american}]
-
-% hm, we have units built in and in mkii one can load the units module
-% ... always been so ...
-
-\processaction
- [\currentmoduleparameter{siunitx}]
- [true=>\def\SI #1#2{#1\,#2}
- \def\ampere {\rm{A}}
- \def\volt {\rm{V}}
- \def\ohm {\Omega}
- \def\siemens {\rm{S}}
- \def\farad {\rm{F}}
- \def\henry {\rm{H}}
- \def\second {\rm{s}}
- \def\coulomb {\rm{C}}
- \def\siemens {\rm{S}}
- \def\radians {\rm{rad}}
- \def\milli {\rm{m}}
- \def\micro {\mu}
- \def\nano {\rm{n}}
- \def\pico {\rm{p}}
- \def\kilo {\rm{k}}
- \def\mega {\rm{M}}
- \def\giga {\rm{G}}
- \def\tera {\rm{T}}]
+ [european=>\ctikzset{logic ports=european},
+ american=>\ctikzset{logic ports=american}]
+
+% hm, we have units since '97 so one can load the units module in mkii or
+% assume it is present (mkiv and therefore lmtx)
+%
+% \processaction
+% [\currentmoduleparameter{siunitx}]
+% [true=>\def\SI #1#2{#1\,#2}
+% \def\ampere {\rm{A}}
+% \def\volt {\rm{V}}
+% \def\ohm {\Omega}
+% \def\siemens {\rm{S}}
+% \def\farad {\rm{F}}
+% \def\henry {\rm{H}}
+% \def\second {\rm{s}}
+% \def\coulomb {\rm{C}}
+% \def\siemens {\rm{S}}
+% \def\radians {\rm{rad}}
+% \def\milli {\rm{m}}
+% \def\micro {\mu}
+% \def\nano {\rm{n}}
+% \def\pico {\rm{p}}
+% \def\kilo {\rm{k}}
+% \def\mega {\rm{M}}
+% \def\giga {\rm{G}}
+% \def\tera {\rm{T}}]
\unprotect