diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-27 01:23:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-27 01:23:48 +0000 |
commit | c2891584a71bef79217edf0f155772dae1f68b61 (patch) | |
tree | aa182bbf18e9a50a6a3c89f4809535b30322f736 /Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex | |
parent | 5647d8caa246f321a52c4b2e3a3c863ebf7be802 (diff) |
circuitikz 0.2.3 (26nov09)
git-svn-id: svn://tug.org/texlive/trunk@16183 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex b/Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex new file mode 100644 index 00000000000..12671123ff3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/circuitikz/t-circuitikz.tex @@ -0,0 +1,95 @@ +\def\pgfcircversion{0.2.3} +\writestatus{loading}{2009/11/18 The CircuiTikz circuit drawing package version \pgfcircversion} +\startmodule[circuitikz] + +\usemodule[tikz] +\usepgflibrary[decorations.pathmorphing] +\usetikzlibrary[calc] + +\unprotect + +\input circuitikz.code.tex + +% defaults + +\setupmodule[current=european, voltage=european, resistor=american, inductor=cute, logic=american, siunitx=true, arrowmos=false] + +\processaction[\currentmoduleparameter{voltage}] + [ european=>\ctikzset{voltage=european}, + american=>\ctikzset{voltage=american} + ] + +\processaction[\currentmoduleparameter{current}] + [ european=>\ctikzset{ current=european}, + american=>\ctikzset{ current=american} + ] + +\processaction[\currentmoduleparameter{resistor}] + [ european=>\ctikzset{ resistor=european}, + american=>\ctikzset{ resistor=american} + ] + +\processaction[\currentmoduleparameter{inductor}] + [ european=>\ctikzset{ inductor=european}, + american=>\ctikzset{ inductor=american}, + cute=>\ctikzset{ inductor=cute} + ] + +\processaction[\currentmoduleparameter{diode}] + [ full=>\ctikzset{ diode=full}, + empty=>\ctikzset{ diode=empty} + ] + +\processaction[\currentmoduleparameter{logic}] + [ european=>\ctikzset{ logic ports=european}, + american=>\ctikzset{ logic ports=american} + ] + +\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}}, + false=>%, +% \s!default=>\pgf@circ@siunitxtrue + ] + +\processaction[\currentmoduleparameter{arrowmos}] + [ true=>\pgf@circuit@mos@arrowstrue, + false=>\pgf@circuit@mos@arrowsfalse%, +% \s!default=>\pgf@circuit@mos@arrowstrue + ] + + +\ifpgf@circ@siunitx + % nothing! siunitx and xstrings don't work in context +\fi + + +\input circuitikz1.code.tex + + +% define the environment +\long\def\startcircuitikz#1\stopcircuitikz{\starttikzpicture#1\stoptikzpicture} + +\protect + +\stopmodule + + +\endinput |