summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-14 21:10:56 +0000
committerKarl Berry <karl@freefriends.org>2021-07-14 21:10:56 +0000
commitf44797c65183b9645ea96096a4f8ab92b5c64298 (patch)
tree0c31d1f1438dd7dc153af4385d68fdff4fa5d799 /Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
parent4afc0e03308d532d963e3fad3bbf4be9500276e7 (diff)
circuitikz (14jul21)
git-svn-id: svn://tug.org/texlive/trunk@59929 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.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
index 9a393d7d098..855331038d3 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex
@@ -55,6 +55,10 @@
\ctikzset{v>/.style = {v={#1}, \circuitikzbasekey/bipole/voltage/direction = forward} }
\ctikzset{v</.style = {v={#1}, \circuitikzbasekey/bipole/voltage/direction = backward} }%
+\newif\ifpgfcirc@do@v@symbols\pgfcirc@do@v@symbolstrue
+\ctikzset{no v symbols/.code={\pgfcirc@do@v@symbolsfalse}}
+\ctikzset{v symbols/.code={\pgfcirc@do@v@symbolstrue}}
+
% Default position varies whether the component is a voltage source
% or not
\ctikzset{v/.code = {
@@ -296,6 +300,7 @@
% called just to set the anchors)
%
\pgf@circ@ifkeyempty{bipole/voltage/label/name}\else
+ \ifpgfcirc@do@v@symbols
\ifpgf@circuit@europeanvoltage
\ifpgf@circuit@bipole@voltage@straight
\ifpgf@circuit@bipole@voltage@backward
@@ -341,6 +346,7 @@
\fi
\fi
\fi
+ \fi % closing the ...symbol
\fi % Closing the ...ifempty
}
% %>>>
@@ -385,6 +391,7 @@
coordinate (\pgfcirc@a@prefix-Vlab) at ($(\pgfcirc@a@prefix-Vto)!0.5!(\pgfcirc@a@prefix-Vfrom) $)
coordinate (pgfcirc@Vdir) at (\pgfcirc@a@prefix-Vto)
\pgf@circ@ifkeyempty{bipole/voltage/label/name}\else
+ \ifpgfcirc@do@v@symbols
\ifpgf@circuit@europeanvoltage
\ifpgf@circuit@bipole@voltage@backward
(\pgfcirc@a@prefix-Vto) -- node[currarrow, sloped, allow upside down, pos=1, anchor=tip] {} (\pgfcirc@a@prefix-Vfrom)
@@ -414,6 +421,7 @@
\fi
\fi
\fi
+ \fi % closes ... ifsymbol
\fi % closes ...ifempty
}
% %>>>