I'd like to have two boxes with text inside them atop one another with some vertical space, and with two parallel vertical edges linking them. With just one such linking edge, tikz makes it easy: \draw (node1) -- (node2); (where node1 and node2 specify the two boxes with text). There's got to be a bit of separation between them; however, I've tried using things like (node1) +(5pt,0) -- (node2) +(5pt,0) and frankly it isn't working. I've tried scoping with shift={(5pt,0),transform shape} and the shift was ignored. So, how should I do this? (FYI: there's addtional options on the edges specifying labels and arrows, but I don't believe that they're relevant to this).
Example of single link:
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[yscale=-1]
\node at (0,0) (node1) [shape=rectangle,fill=green] {box1};
\node at (0,1) (node2) [shape=rectangle,fill=green] {box2};
\draw (node1) -- (node2);
\end{tikzpicture}
\end{document}
An ascii version...
. +----+
. |box1|
. +----+
. | |
. 1 v ^ 3
. | |
. +----+
. |box2|
. +----+
(pls ignore the "."s, I needed them to get the code entry to work)
Thank you for your solutions! I'll definitely be trying them out.






doubleoption if you specifydouble distance: the latter automatically enables thedoublemode on the path. – Claudio Fiandrino Jan 12 '14 at 20:08:)I'll edit my answer. – jub0bs Jan 12 '14 at 20:10