summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-06 21:21:18 +0000
committerKarl Berry <karl@freefriends.org>2021-12-06 21:21:18 +0000
commit438ac7a4b9836c5c799b3b280b0721be1fce338c (patch)
treee8d56ca6363bd656b2159082f9b2fe1d3381211b /Master/texmf-dist/tex/generic
parentc9a39911e40d8808eec4167a83a0b3da78d1207c (diff)
circuitikz (6dec21)
git-svn-id: svn://tug.org/texlive/trunk@61231 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex2
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex13
2 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex
index 9abaf1e8b6a..30a4a268002 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/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/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
index e1d7314931e..c132b16c853 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/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