I want to create a shape that looks like this:
I have the following code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
inout/.style={
rectangle,
draw,
minimum size=1cm,
inner sep=2pt
}
]
\node[inout] (d1) at (1,1) {in};
\end{tikzpicture}
\end{document}
which produces this:
How do I add the lines? This is meant to be a custom shape for a circuit.
Thanks!
Note: I looked at the supposed duplicate of this question and didn't find it very helpful. The question itself wasn't very related (it didn't answer my line question in a way I could understand) and the documentation it provided I found very difficult. If someone could provide a simple explanation, that would be really helpful.



pic, then there isn't a simple explanation of how to do it because nodes can only be defined by diving into the low level PGF stuff. The TikZ manual explains how to create nodes and what is required. It isn't simply only because the task itself is not simple. – cfr Aug 10 '16 at 22:08