I'm trying to obtain something similar to the following sketch:
The problem is how to draw the node E
with the right dimensions to cover the four nodes below.
What I have right now:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
block/.style={
rectangle,
rounded corners,
inner sep=1em
}
]
\path node[block,white,fill=jeans] (mathsat) {MathSAT\strut};
\path (mathsat.east) ++(2pt,0) node[block,anchor=west,white,fill=jeans]
(z3) {Z3\strut};
\path (z3.east) ++(2pt,0) node[block,anchor=west,white,fill=jeans]
(minisat) {MiniSAT\strut};
\path (minisat.east) ++(2pt,0) node[block,anchor=west,white,fill=jeans]
(cmsat) {CryptoMiniSAT\strut};
\end{tikzpicture}
\end{document}
which just draws the four blocks below.
How do I draw a node above the four blocks of the exact width?
Best Answer
The
fit
andmatrix
libraries are really helping. Note that you have to use\hphantom
on your first two rows if you want the fitting to behave properly. If you chose to have all columns of the same size, this will not be mandatory anymore.