summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-06 23:01:18 +0000
committerKarl Berry <karl@freefriends.org>2016-06-06 23:01:18 +0000
commit04e211f107eb8723e3df5cb49ee72fb0a191e6e4 (patch)
tree91b70654e05a91c7fb8c0944d14371161d019b53 /Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex
parent24f9b9f3765cce36b365687c66f49278a94fbc7a (diff)
circuitikz (6jun16)
git-svn-id: svn://tug.org/texlive/trunk@41299 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex')
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex
index 4673d710b31..a811ff610ff 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex
@@ -92,6 +92,29 @@
}
}
+%% Diamond terminal
+
+\pgfdeclareshape{diamond}{
+ \anchor{center}{
+ \pgfpointorigin
+ }
+ \anchorborder{
+ \pgf@circ@res@left=\pgf@x
+ \pgf@circ@res@up=\pgf@y
+ }
+ \behindforegroundpath{
+ \pgfscope
+ \pgfmathsetlength{\pgf@circ@res@temp}{\pgfkeysvalueof{/tikz/circuitikz/nodes width}*\pgfkeysvalueof{/tikz/circuitikz/bipoles/length}}
+ \pgftransformrotate{45}
+ \pgfpathrectanglecorners
+ {\pgfpoint{\pgf@circ@res@left-\pgf@circ@res@temp}{\pgf@circ@res@up+\pgf@circ@res@temp}}
+ {\pgfpoint{\pgf@circ@res@left+\pgf@circ@res@temp}{\pgf@circ@res@up-\pgf@circ@res@temp}}
+ \pgfsetcolor{\pgfkeysvalueof{/tikz/circuitikz/color}}
+ \pgfusepath{draw,fill}
+ \endpgfscope
+ }
+}
+
%% Current arrow
\pgfdeclareshape{currarrow}{