So I tried \colorbox instead, which creates smaller squares, but not centered vertically and not proportional to the cell size.
The attached pdf / code shows what I tried.
Does anybody have a solution or idea to do this?
Code: Select all
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage{rotating}
\usepackage{longtable}
\usepackage{colortbl}
\begin{document}
\centering
\begin{tabular}{|c||c|c|}
\hline
& \begin{sideways}abc\ \ \end{sideways} & \begin{sideways}abc\ \ \end{sideways} \\
\hline
\hline
Mo & \cellcolor[rgb]{1,0.5,1} & \cellcolor[rgb]{1,0,0} \\
\hline
Di & \cellcolor[rgb]{1,0.5,1} & \cellcolor[rgb]{1,0,0} \\
\hline
Wo & \cellcolor[rgb]{1,0.5,1} & \cellcolor[rgb]{1,0,0} \\
\hline
\end{tabular} \\
\begin{tabular}{|c||c|c|}
\hline
& \begin{sideways}abc\ \ \end{sideways} & \begin{sideways}abc\ \ \end{sideways} \\
\hline
Mo & \colorbox[rgb]{1,0.5,1}{} & \colorbox[rgb]{1,0,0}{} \\
\hline
Di & \colorbox[rgb]{1,0.5,1}{} & \colorbox[rgb]{1,0,0}{} \\
\hline
Wo & \colorbox[rgb]{1,0.5,1}{} & \colorbox[rgb]{1,0,0}{} \\
\hline
\end{tabular}
\end{document}