summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-06-16 22:04:20 +0000
committerKarl Berry <karl@freefriends.org>2019-06-16 22:04:20 +0000
commit588cee1666f2db2a58b592abbde6111eeab979a9 (patch)
tree3b6a3e79577707e820dea7ec7609a0bffa0555ed /Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex
parent361113517781be1c859fe04b53b0886f8737ab42 (diff)
circuitikz (16jun19)
git-svn-id: svn://tug.org/texlive/trunk@51387 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex10
1 files changed, 9 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex
index 1d386b5480b..4dc91d9eb66 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex
@@ -102,15 +102,23 @@
\pgfmathadd{\pgf@circ@labanc}{180}
\edef\pgf@circ@labanc{\expandafter\pgf@circ@stripdecimals\pgfmathresult\pgf@nil}
\fi
+ % \typeout{INI: TEMP\space\pgf@circ@temp\space LABANC\space\pgf@circ@labanc}
+ %
+ % normalize the angle values
+ %
+ \pgfmathmod{\pgf@circ@labanc}{360}
+ \edef\pgf@circ@labanc{\expandafter\pgf@circ@stripdecimals\pgfmathresult\pgf@nil}
+ %
\ifpgf@circuit@bipole@inverted
\pgfmathadd{\pgf@circ@temp}{180} %If shape is inverted, use opposite anchor
\edef\pgf@circ@temp{\expandafter\pgf@circ@stripdecimals\pgfmathresult\pgf@nil}
\fi
-
+ %
\ifnum \ctikzvalof{mirror value} = -1
\pgfmathadd{\pgf@circ@temp}{180} %If shape is mirrored, use opposite anchor
\edef\pgf@circ@temp{\expandafter\pgf@circ@stripdecimals\pgfmathresult\pgf@nil}
\fi
+ % \typeout{FIN: TEMP\space\pgf@circ@temp\space LABANC\space\pgf@circ@labanc}
}
%Firstly, place a coordinate directly at the edge of the shape
(\ctikzvalof{bipole/name}.\pgf@circ@temp) coordinate (labelcoor)