I have a rectangular box with double border lines. The pgf manual (chapter 15.3.5 Graphic Parameters: Double Lines and Bordered Lines) says that the default filling is white. I want the gap to be transparent so that you can see the background color.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds,fit}
\begin{document}
\begin{tikzpicture}
\node (myNode1) at (0,0) [
rectangle,
draw,
double,
double distance=1mm
] {Double};
%
\node (myNode2) at (0,-1) [
rectangle,
draw,
double=transparent,
double distance=1mm
] {Double};
%
\begin{pgfonlayer}{background}
\coordinate (center) at (0, -.5);
\fill [green!50!black!25] (center) rectangle ++(-1,1);
\fill [orange!25] (center) rectangle ++(1,1);
\fill [red!25] (center) rectangle ++(-1,-1);
\fill [blue!25] (center) rectangle ++(1,-1);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
Any ideas?
EDIT: I do not want to give the gap manually the same color as the background since I want to be the background "anything" like a picture or something that is not of control of tikz.
double=none
do what you want? – Peter Grill Feb 8 '14 at 17:52double
lines you can use one of the answers to tikz-how-to-create-a-new-shape-type-comment – Ignasi Feb 9 '14 at 19:55