diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-13 03:01:18 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-13 03:01:18 +0000 |
commit | 3afcae17b4a1a6dffbaa749a6fd0b6406c4d34a9 (patch) | |
tree | 2b39e772bb90bd186f6430ee996d04279e10f7f4 /graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex | |
parent | 2e4672ed6f7b49c9d1c44b6ca850cfe7024fc639 (diff) |
CTAN sync 201910130301
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex')
-rw-r--r-- | graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex index 158ee2dd79..bad64d1bd8 100644 --- a/graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex +++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircvoltage.tex @@ -10,6 +10,14 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Voltage management +%% styles +\ctikzset{bipole voltage style/.style={}} +\tikzset{bipole voltage style/.code={ + \ctikzset{bipole voltage style/.style={#1}} +}} +\tikzset{bipole voltage append style/.code={ + \ctikzset{bipole voltage style/.append style={#1}} +}} \ctikzset{v^>/.style = { v = #1, @@ -94,8 +102,6 @@ \def\pgf@circ@avfont{\ctikzvalof{voltage/american font}} % % plus and minus symbols (default is $+$ and $-$, see pgfcirc.defines.tex) -% notice that the double braces are needed to be able -% to use \boldmath in the font (although it is semi-deprecated...) % \def\pgf@circ@avplus{\ctikzvalof{voltage/american plus}} \def\pgf@circ@avminus{\ctikzvalof{voltage/american minus}} @@ -457,8 +463,9 @@ \ifpgf@circuit@bipole@voltage@straight coordinate (Vlab) at ($(pgfcirc@Vto)!0.5!(pgfcirc@Vfrom) $) - node [anchor=\pgf@circ@bipole@voltage@label@anchor, inner sep=2pt] - at (Vlab) { \pgf@circ@finallabels{voltage/label} } + node [anchor=\pgf@circ@bipole@voltage@label@anchor, inner sep=2pt, + \circuitikzbasekey/bipole voltage style](\ctikzvalof{bipole/name}voltage) + at (Vlab) {\pgf@circ@finallabels{voltage/label}} \else \ifpgf@circuit@europeanvoltage coordinate (Vlab) at ($(pgfcirc@Vcont1)!0.5!(pgfcirc@Vcont2)$) @@ -470,7 +477,9 @@ coordinate (Vlab) at ($(Vlab) ! \alshift ! \pgf@circ@bipole@voltage@label@where :(pgfcirc@Vto)$) \fi \fi - node [anchor=\pgf@circ@bipole@voltage@label@anchor, inner sep=2pt] at (Vlab) { \pgf@circ@finallabels{voltage/label} } + node [anchor=\pgf@circ@bipole@voltage@label@anchor, inner sep=2pt, + \circuitikzbasekey/bipole voltage style](\ctikzvalof{bipole/name}voltage) + at (Vlab) {\pgf@circ@finallabels{voltage/label}} \fi }%end drawvoltages \endinput |