I would like to make a double entry table in LaTeX.
Here is the result that I would like to get:
I found a clue here:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{center}
\begin{tabular}{ c || l | r | c }
& \multicolumn{3}{c}{Columns} \\ \hline \hline
\multirow{3}{*}{Rows}
& A1 & B1 & C1 \\ \cline{2-4}
& A222 & B22 & C2 \\ \cline{2-4}
& A3 & B333 & C33
\end{tabular}
\end{center}
\end{document}
I managed to get a partial solution:
\begin{document}
\begin{center}
\begin{tabular}{ l || r | c }
A1 & B1 & C1 \\ \hline \hline
A222 & B22 & C2 \\ \hline
A3 & B333 & C33
\end{tabular}
\end{center}
\end{document}
However, it doesn't solve all my problems. Is it possible to get square cells with everything centered in the cell? I found other partial solutions here but I don't know tikz at all. The matrix environment might not suit my needs because I would like to avoid outer borders and I didn't find any solution with double lines separing row's titles from the inner cells.






nicematrixpackage. I'm not that an expert of it to provide a complete working solution, but it will pop one of these days. – SebGlav May 27 '21 at 17:35