summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex40
1 files changed, 22 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex
index 4887d89857d..7b03c9b2670 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex
@@ -3993,8 +3993,16 @@
\northeast
\pgf@y=-\ctikzvalof{tripoles/#1/base height}\pgf@y
}
+ \anchor{arrows}{
+ \northeast
+ \pgf@circ@res@up = \pgf@y
+ \left
+ \pgf@circ@res@left = \pgf@x
+ \pgf@x=\ctikzvalof{tripoles/#1/base width}\pgf@circ@res@left
+ \advance\pgf@x by 0.6\pgf@circ@res@left
+ \pgf@y=0.2\pgf@circ@res@up
+ }
}{
-
% add the circle if requested (before everything else, so we can fill it)
\pgfcirc@transistorcircle
@@ -4114,24 +4122,20 @@
\ifpgf@circuit@bpt@drawphoto
\pgfscope
\pgf@circ@fill@strokecolor
- \pgfsetarrowsstart{latexslim}
- \pgfpathmoveto{\pgfpointadd{\pgfpoint
- {\ctikzvalof{tripoles/#1/base width}\pgf@circ@res@left}
- {\pgf@circ@res@up+\pgf@circ@res@down}}
- {\pgfpoint{0.05\pgf@circ@res@left}{0.1\pgf@circ@res@up}}}
- \pgfpathlineto{\pgfpointadd{\pgfpoint
- {\ctikzvalof{tripoles/#1/base width}\pgf@circ@res@left}
- {\pgf@circ@res@up+\pgf@circ@res@down}}
- {\pgfpoint{0.5\pgf@circ@res@left}{0.3\pgf@circ@res@up}}}
+ \pgf@circ@set@optoarrow@style
+ \pgfpathmoveto{\pgfpoint
+ {(0.5+\ctikzvalof{tripoles/#1/base width})*\pgf@circ@res@left}
+ {0.3\pgf@circ@res@up}}
+ \pgfpathlineto{\pgfpoint
+ {(0.05+\ctikzvalof{tripoles/#1/base width})*\pgf@circ@res@left}
+ {0.1\pgf@circ@res@up}}
\pgfusepath{draw}
- \pgfpathmoveto{\pgfpointadd{\pgfpoint
- {\ctikzvalof{tripoles/#1/base width}\pgf@circ@res@left}
- {\pgf@circ@res@up+\pgf@circ@res@down}}
- {\pgfpoint{0.05\pgf@circ@res@left}{-0.1\pgf@circ@res@up}}}
- \pgfpathlineto{\pgfpointadd{\pgfpoint
- {\ctikzvalof{tripoles/#1/base width}\pgf@circ@res@left}
- {\pgf@circ@res@up+\pgf@circ@res@down}}
- {\pgfpoint{0.5\pgf@circ@res@left}{0.1\pgf@circ@res@up}}}
+ \pgfpathmoveto{\pgfpoint
+ {(0.5+\ctikzvalof{tripoles/#1/base width})*\pgf@circ@res@left}
+ {0.1\pgf@circ@res@up}}
+ \pgfpathlineto{\pgfpoint
+ {(0.05+\ctikzvalof{tripoles/#1/base width})*\pgf@circ@res@left}
+ {-0.1\pgf@circ@res@up}}
\pgfusepath{draw}
\endpgfscope
\else