summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-02 03:02:11 +0000
committerNorbert Preining <norbert@preining.info>2019-12-02 03:02:11 +0000
commit02e4625a78a5029e8b5dc2a4ec70193b232f497e (patch)
tree7b98b65fce4fe5ba1d20753651cf4679cadc5315 /graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex
parent1dcb87019d8965fa1ba1ea339b7330225b2e545b (diff)
CTAN sync 201912020302
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex')
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex50
1 files changed, 47 insertions, 3 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex
index 0f193cedcc..90beddf153 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcirctripoles.tex
@@ -1349,10 +1349,26 @@
}
\anchor{text}{
\northeast
- \pgf@y=.7\pgf@y
\pgfmathsetlength{\pgf@circ@scaled@Rlen}{\ctikzvalof{\ctikzclass/scale}\pgf@circ@Rlen}
- \pgf@x= \pgf@circ@scaled@Rlen
- \pgf@x=0.1\pgf@x
+ \ifpgf@circuit@transisors@fixlabels
+ \ifpgf@circuit@fet@bodydiode
+ % try to put the text to the right of the flyback diode
+ \pgfmathsetlength{\pgf@circ@res@other}{(
+ \ctikzvalof{tripoles/#1/bodydiode distance}*
+ \ctikzvalof{tripoles/#1/width} +
+ \ctikzvalof{tripoles/#1/bodydiode scale}*
+ \ctikzvalof{bipoles/diode/height}/2
+ )*\pgf@circ@scaled@Rlen}
+ \advance\pgf@x by \pgf@circ@res@other
+ \fi
+ % add a bit of space to avoid central (substrate) terminal if drawn
+ \advance\pgf@x by 0.05\pgf@circ@scaled@Rlen\relax
+ \pgf@y=\dimexpr.5\dp\pgfnodeparttextbox-.5\ht\pgfnodeparttextbox\relax
+ \else
+ \pgf@y=.7\pgf@y
+ \pgf@x= \pgf@circ@scaled@Rlen
+ \pgf@x=0.1\pgf@x
+ \fi
}
\anchor{pathstart}{ % south
\northeast
@@ -1475,6 +1491,34 @@
\northeast
\pgf@y=\ctikzvalof{tripoles/#1/curr direction}\pgf@y
}
+ \anchor{body C in}{
+ \northeast
+ \pgf@y=\ctikzvalof{tripoles/#1/curr direction}\pgf@y
+ \pgf@y=\ctikzvalof{tripoles/#1/bodydiode conn}\pgf@y
+ }
+ \anchor{body E in}{
+ \northeast
+ \pgf@y=-\ctikzvalof{tripoles/#1/curr direction}\pgf@y
+ \pgf@y=\ctikzvalof{tripoles/#1/bodydiode conn}\pgf@y
+ }
+ \anchor{body C out}{
+ \northeast
+ \pgf@ya=\ctikzvalof{tripoles/#1/curr direction}\pgf@y
+ \pgf@ya=\ctikzvalof{tripoles/#1/bodydiode conn}\pgf@ya
+ \pgf@y=\pgf@ya
+ \left
+ \pgf@x=-\ctikzvalof{tripoles/#1/bodydiode distance}\pgf@x
+ \pgf@y=\pgf@ya
+ }
+ \anchor{body E out}{
+ \northeast
+ \pgf@ya=-\ctikzvalof{tripoles/#1/curr direction}\pgf@y
+ \pgf@ya=\ctikzvalof{tripoles/#1/bodydiode conn}\pgf@ya
+ \pgf@y=\pgf@ya
+ \left
+ \pgf@x=-\ctikzvalof{tripoles/#1/bodydiode distance}\pgf@x
+ \pgf@y=\pgf@ya
+ }
#2
\backgroundpath{
\pgftransformationadjustments