I am trying to create an irregular pentagon shaped node to use in multiple system diagrams. I cannot seem to get the code to work from following examples I could find. Below is a sample of what I tried to do with no success. Kindly assist with an example of how to go about this.
\documentclass{article}
\usepackage{tikz}
\usepackage{pgf}
\pgfdeclareshape{materialtransfer}{
\inheritsavedanchors[from={rectangle}]
\inheritanchor[from={rectangle}]{center}
\inheritanchor[from={rectangle}]{east}
\inheritanchor[from={rectangle}]{west}
\anchor{text}{\pgfpointorigin}
\backgroundpath{%
% store lower left in xa/ya and upper right in xb/yb
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
% compute tip of ``arrow''
\pgf@xc=\pgf@xb
\pgf@yc=\pgf@yb \advance\pgf@yc by-.5\ht\pgnodeparttextbox
% compute arrow defelction point
\pgf@xd = \pgf@xa \advance\pgf@xd by 0.8\wd\pgnodeparttextbox
\pgf@yd = \pgf@yb
% construct main path
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
\pgfpathlineto{\pgfpoint{\pgf@xd}{\pgf@yd}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{-\pgf@xd}{-\pgf@yd}}
\pgfpathclose
\pgfusepath{draw}
}
}
\begin{document}
\begin{tikzpicture}[node distance=2cm]{
\pgfnode{materialtransfer}{center}{Raw material}{rawmaterial}{\pgfusepath{draw}}
}
\end{tikzpicture}
\end{document}
!
in front of it. We will add it for you. – percusse Apr 5 '16 at 8:17signal
shape ? page 721 of the tikz doc – flav Apr 5 '16 at 8:24