I would like to create a Shockley Diode so that I can use it in my circuits. Its symbol is:
This is my LaTeX code:
\documentclass[margin=3mm]{standalone}
\usepackage[american, siunitx]{circuitikz}
\tikzset{tbulb/.style={cute inductor,n=aux,append after command={(aux)
node[draw,circle,inner sep=.35cm]{}}}}
\begin{document}
\begin{tikzpicture}
\draw
%(0,0) -- (0,2)
(0,0) to[sV<=$V$] (0,5)
(0,5) to[D*](4,5)
(4,5) to (4,0)
(0,0) to[tbulb] (4,0)
;
\fill[white] (1.74,4.5) -- (1.74,5) -- (2.29,5) -- cycle;
\end{tikzpicture}
\end{document}
this is the output image after compiling:
I have seen that people use \tikzset
to create its own symbols, how can I use it to create a Shockley Diode? I tried to remove node[draw,circle,inner sep=.35cm]
and placed fill[white] (1.74,4.5) -- (1.74,5) -- (2.29,5) -- cycle
but it didn't compile