I would like to make a Zwicky Box by using tabular
combined with an overlaying tikzpicture
. How can I (semi-)automatically align nodes to the vertical and horizontal center of their corresponding cells?
I understand it would probably work with a matrix which is aligned to the top left corner of the tabular
and whose row and column seperation somehow relate to the sizes of the cells (which all have fixed width and height).
So my questions are:
- how do I align a
tikzpicture
exactly with the upper left corner of atabular
? - how do I calculate seperation sizes of columns and rows by knowledge of cell width and height of my
tabular
environment? - how do I tell a node in which cell of a matrix it shall be placed and that it shall be aligned to the cell's v/h center?
- should I actually use a
tikzpicture
overlaying atabular
? Or would it be better to drop thetabular
and put everything into the matrix?
Best Answer
I would do it with a simple
tabular
using a fewtikzmark
macros.Code
Output