1

Is there a way to create the following minimalistic-looking grid/table?

enter image description here

  • The grid should have thick lines.

  • The cells should be write-able.

  • There should be a label denoting the name of the "player"

Some modification to

\begin{table}[h]
\centering
\setlength{\extrarowheight}{2pt}
\begin{tabular}{cc|ccc}
    \multicolumn{2}{c}{} & \multicolumn{2}{c}{Colin}\\
    \multicolumn{1}{c}{}&  & A  & B \\\cline{2-4}
    \multirow{3}*{Rose}  & A & $1$ & $-5$ \\
    & B & $-2$ & $4$ \\
    & C & $0$ & $3$ \\
\end{tabular}
\end{table}

Is what I'm looking for.

1
  • Any news? Does received answer not solve your problem?
    – Zarko
    Commented Jan 4, 2021 at 7:14

1 Answer 1

0
\documentclass{article}
\usepackage{rotating}
\usepackage{makecell, multirow}
                         
\begin{document}
    \begin{table}[h]
    \centering
    \setlength\arrayrulewidth{1pt}
    \settowidth\rotheadsize{Rose}
    \setcellgapes{5pt}
    \makegapedcells
\begin{tabular}{cc|c|c}
    \multicolumn{2}{c}{}    & \multicolumn{2}{c}{Colin}\\
                    &       &   A   &   B   \\
        \cline{2-4}
    \multirow{3.8}*{\rothead{Rose}}  
                    &   A   & $ 1$  & $-5$ \\
        \cline{2-4}
                    &   B   & $-2$  & $ 4$ \\
        \cline{2-4}
                    &   C   & $ 0$  & $ 3$ \\
\end{tabular}
    \end{table}
\end{document}

enter image description here

or

enter image description here

where table specification is

\begin{tabular}{cc|w{c}{12mm}|w{c}{12mm}}
1
  • For sure this question is duplicate, however it was more simple to write an answer than find duplicate on site.
    – Zarko
    Commented Dec 5, 2020 at 6:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .