summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex')
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/circuitikz.sty4
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex2
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcircutils.tex13
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex4
4 files changed, 14 insertions, 9 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty b/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty
index 15540ac36f..67ed70f53b 100644
--- a/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty
+++ b/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty
@@ -16,8 +16,8 @@
\providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
-\def\pgfcircversion{1.4.4}
-\def\pgfcircversiondate{2021/10/31}
+\def\pgfcircversion{1.4.5}
+\def\pgfcircversiondate{2021/12/06}
\DeclareRelease{0.4}{2012/12/20}{circuitikz-0.4-body.tex}
\DeclareRelease{v0.4}{2012/12/20}{circuitikz-0.4-body.tex}
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
index 9abaf1e8b6..30a4a26800 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
@@ -885,7 +885,7 @@
\noexpand\pgf@circ@rotaryanchor{\the\pgf@circ@count@a}{0}{1}%
}
\expandafter\xdef\csname pgf@anchor@rotaryswitch@sqout\space\the\pgf@circ@count@a\endcsname{%
- \noexpand\pgf@circ@rotarysqanchor{\the\pgf@circ@count@a}{0}%
+ \noexpand\pgf@circ@rotarysqanchor{\the\pgf@circ@count@a}%
}
\advance\pgf@circ@count@a by -1\relax%
\repeatpgfmathloop%
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircutils.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircutils.tex
index e1d7314931..c132b16c85 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcircutils.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircutils.tex
@@ -57,9 +57,14 @@
\def\ctikztextnot#1{$\overline{\hbox{#1}}\m@th$}
\else\ifpgfutil@format@is@plain
% text mode overbar
+ % but really circuitikz will not work in plain...
% Thanks to @egreg https://tex.stackexchange.com/a/24133/38080
\def\ctikztextnot#1{$\overline{\hbox{#1}}$}
\else\ifpgfutil@format@is@context
+ %% flipping text
+ \def\ctikzflipx#1{\mirror{#1}}
+ \def\ctikzflipy#1{\mirror{\rotate[rotation=180]{#1}}}
+ \def\ctikzflipxy#1{\rotate[rotation=180]{#1}}
% text mode overbar
% Thanks to @egreg https://tex.stackexchange.com/a/24133/38080
\def\ctikztextnot#1{$\overline{\hbox{#1}}$}
@@ -104,13 +109,13 @@
\expandafter\gdef\csname #1@Anchor\endcsname{}%
\expandafter\gdef\csname #1@setanchors\endcsname{%
\setbox\ctikz@scratchbox=\hbox{%
- \begin{circuitikz}
+ \tikzpicture
\draw (0,0) \csname#1\endcsname{T-#1}{};
\foreach [count=\i] \anchor in {#2}
% reference anchor is -center
\draw (0,{2-\i/2}) let \p1 = ($(T-#1-subckt@reference)-(T-#1-\anchor)$) in
node[right]{\anchor: \x1,\y1 \expandafter\xdef\csname #1@Anchor\anchor\endcsname{++(\x1,\y1)}};
- \end{circuitikz}%
+ \endtikzpicture
}%
}%
\expandafter\gdef\csname#1\endcsname##1##2{%
@@ -384,7 +389,7 @@
\def\ctikztunablearrow@full[#1]#2#3#4#5{%
% add tunable arrow to a component
% relative thickness, relative length, rotation from axis, name of the component
- \begin{scope}
+ \scope
\draw
\pgfextra{\pgfcirc@set@arrows{tunable}{}{latexslim}
\pgfsetlinewidth{#2\pgflinewidth}} [#1]
@@ -393,6 +398,6 @@
\n2 = {atan2(\y2,\x2)} in
% node[above]{\n1, \n2}
(#5.center) ++({\n2+(#4)}:{-0.5*(\n1)*(#3)}) -- ++({\n2+(#4)}:{(\n1)*(#3)});
- \end{scope}%
+ \endscope
}
\endinput
diff --git a/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex b/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex
index 2e57a795e0..12733bdd1c 100644
--- a/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex
@@ -10,8 +10,8 @@
%
% See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details.
-\def\pgfcircversion{1.4.4}
-\def\pgfcircversiondate{2021/10/31}
+\def\pgfcircversion{1.4.5}
+\def\pgfcircversiondate{2021/12/06}
\writestatus{loading}{\pgfcircversiondate{} The CircuiTikz circuit drawing package version \pgfcircversion}
\usemodule[tikz]