summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-02-04 22:15:37 +0000
committerKarl Berry <karl@freefriends.org>2020-02-04 22:15:37 +0000
commit0d6d3d58752320a0b2ab7a41555048566e23f03c (patch)
treeaac06a103dc0dde56c03966c093601853a7f4b00 /Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
parentc356197cfd9b78dd01edd4679c895f4a51f7d3b5 (diff)
circuitikz (4feb20)
git-svn-id: svn://tug.org/texlive/trunk@53667 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex16
1 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
index d7933202472..0a87b5e6edf 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
@@ -1,4 +1,7 @@
-% Copyright 2007-2009 by Massimo Redaelli
+% Copyright 2018-2020 by Romano Giannetti
+% Copyright 2015-2020 by Stefan Lindner
+% Copyright 2013-2020 by Stefan Erhardt
+% Copyright 2007-2020 by Massimo Redaelli
%
% This file may be distributed and/or modified
%
@@ -192,8 +195,17 @@
{ \edef\bumpb{\ctikzvalof{bipoles/\ctikzvalof{bipole/kind}/voltage/bump b}} }
{ \edef\bumpb{\ctikzvalof{voltage/bump b}} }
\edef\shiftv{\ctikzvalof{voltage/shift}}
+ % additional per-bipole voltage shift (internal)
+ \edef\pgf@temp{/tikz/circuitikz/bipoles/\ctikzvalof{bipole/kind}/voltage/additional label shift}
+ \pgfkeysifdefined{\pgf@temp}
+ {
+ \edef\addvshift{\ctikzvalof{bipoles/\ctikzvalof{bipole/kind}/voltage/additional label shift}}
+ }
+ {
+ \edef\addvshift{0}
+ }
\newdimen{\absvshift}
- \pgfmathsetlength{\absvshift}{\shiftv*\distfromline+\distfromline}
+ \pgfmathsetlength{\absvshift}{(1+\shiftv+\addvshift)*(\distfromline)}
% put this to true to see the voltage label coordinate anchors
\newif\ifpgf@circ@debugv\pgf@circ@debugvfalse
}