I'm trying to create a table with square cells and both vertically and horizontally centered content. I defined the table as follows:
\documentclass{article}
\usepackage{tabu}
\newcolumntype{K}[1]{>{\vbox to #1{\vfill}\centering}m{#1}}
\renewcommand{\i}{$\cdot$}
\begin{document}
\begin{tabu}{|[1pt]*{3}{K{3mm}|K{3mm}|[1pt]}}
\tabucline[1pt]{1-6}
0 & 4 & \i & 4 & \i & \i \\ \tabucline{1-6}
2 & 0 & \i & \i & \i & -3 \\ \tabucline[1pt]{1-6}
\i & \i & 0 & 3 & 5 & -1 \\ \tabucline{1-6}
4 & \i & 3 & 0 & -6 & \i \\ \tabucline[1pt]{1-6}
-3 & \i & \i & -6 & 0 & 9 \\ \tabucline{1-6}
\i & \i & -1 & 5 & 7 & 0 \\ \tabucline[1pt]{1-6}
\end{tabu}
\end{document}
The result is
How can I vertically center the numbers?



\documentclassand ending with\end{document}. See: (MWE). – Bobyandbob Aug 11 '17 at 14:12