summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-27 01:23:48 +0000
committerKarl Berry <karl@freefriends.org>2009-11-27 01:23:48 +0000
commitc2891584a71bef79217edf0f155772dae1f68b61 (patch)
treeaa182bbf18e9a50a6a3c89f4809535b30322f736 /Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty
parent5647d8caa246f321a52c4b2e3a3c863ebf7be802 (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/pgfcirclabel.sty')
-rw-r--r--Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty b/Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty
index 436bd941666..8ce4a72d9a3 100644
--- a/Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty
+++ b/Master/texmf-dist/tex/latex/circuitikz/pgfcirclabel.sty
@@ -11,8 +11,8 @@
%% Bipole label positioning
%% Options
-\tikzset{label/.style = { l=#1 } }
-\tikzset{l/.code = {
+\ctikzset{label/.style = { l=#1 } }
+\ctikzset{l/.code = {
\pgfkeys{/tikz/circuitikz/bipole/label/name=#1}
\ctikzsetvalof{bipole/label/unit}{}
\ifpgf@circ@siunitx
@@ -28,20 +28,20 @@
\fi
}}
-\tikzset{label above/.code = {
+\ctikzset{label above/.code = {
l=#1,
\circuitikzbasekey/bipole/label/position=90 }
}
-\tikzset{l^/.style = {
+\ctikzset{l^/.style = {
l=#1,
\circuitikzbasekey/bipole/label/position=90 }
}
-\tikzset{label below/.code = {
+\ctikzset{label below/.code = {
l=#1,
\circuitikzbasekey/bipole/label/position=-90 }
}
-\tikzset{l_/.style = {
+\ctikzset{l_/.style = {
l=#1,
\circuitikzbasekey/bipole/label/position=-90 }
}
@@ -54,7 +54,12 @@
\def\pgf@circ@temp{\ctikzvalof{bipole/label/position}}
\edef\pgf@circ@ffffff{\pgf@circ@direction}
\def\pgfcircmathresult{\expandafter\pgf@circ@stripdecimals\pgf@circ@ffffff\pgf@nil}
-
+
+ \ifnum \ctikzvalof{mirror value}=-1
+ \pgfmathadd{\pgfcircmathresult}{+180}
+ \def\pgfcircmathresult{\expandafter\pgf@circ@stripdecimals\pgfmathresult\pgf@nil}
+ \fi
+
\ifnum\pgfcircmathresult >4 \ifnum\pgfcircmathresult <86
\ifnum\pgf@circ@temp>0
\def\pgf@circ@dir{south east} \else \def\pgf@circ@dir{north west}