summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.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/pgfcircflow.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/pgfcircflow.tex')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex15
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex
index 77d240cef7f..d59325850d6 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex
@@ -93,6 +93,10 @@
\ctikzset{f>/.style = { f={#1}, \circuitikzbasekey/bipole/flow/direction = forward } }
\ctikzset{f^/.style = { f={#1}, \circuitikzbasekey/bipole/flow/y position = above } }
+\newif\ifpgfcirc@do@f@symbols\pgfcirc@do@f@symbolstrue
+\ctikzset{no f symbols/.code={\pgfcirc@do@f@symbolsfalse}}
+\ctikzset{f symbols/.code={\pgfcirc@do@f@symbolstrue}}
+
\ctikzset{f/.code = {
\pgfcirc@has@ftrue
\pgfkeys{\circuitikzbasekey/bipole/flow/direction = forward,
@@ -214,15 +218,20 @@
%
% coordinate (\pgfcirc@a@prefix-Fpos) at
% ([yshift=\flow@offset]$(\pgfcirc@a@prefix-Ffrom)! \ctikzvalof{flow/distance} !(\pgfcirc@a@prefix-Fto)$)
+ % export the flow direction
+ \pgfextra{\expandafter\xdef\csname pgfcirc@\pgfcirc@a@prefix-Farrow-direction\endcsname{\pgf@circ@rounded@dir}}
% if the flow label is not empty (in which case we have already all the anchors)
\pgf@circ@ifkeyempty{bipole/flow/label/name}\else
% the flow arrow is really a node "flowarrow", not a real arrow
- node[flowarrow, rotate=\pgf@circ@rounded@dir, anchor=center](Farrowpos) at (\pgfcirc@a@prefix-Fpos) {}
-
+ \ifpgfcirc@do@f@symbols
+ node[flowarrow, rotate=\pgf@circ@rounded@dir, anchor=center](Farrowpos) at (\pgfcirc@a@prefix-Fpos) {}
+ \else
+ node[flowarrow, rotate=\pgf@circ@rounded@dir, anchor=center,
+ circuitikz/phantom@flowarrow](Farrowpos) at (\pgfcirc@a@prefix-Fpos) {}
+ \fi
node[anchor=\pgf@circ@dir, \circuitikzbasekey/bipole flow style]
(\ctikzvalof{bipole/name}flow) at (Farrowpos.\pgf@circ@bipole@flow@label@where) {\pgf@circ@finallabels{flow/label}}
\fi
-
% adjust from and to before exporting --- it's much more simple like this then rework the algorithm above
\ifpgf@circuit@bipole@flow@backward
\pgfcirc@swap@coordinates{\pgfcirc@a@prefix-Ffrom}{\pgfcirc@a@prefix-Fto}