# Make a 'sgame' table with a weird align next to it

I am trying to do something as the next image

The first matrix was did it with the ' sgame' package, but my problem is the right one. Note that 'Results' is not align with the two columns below, and the two columns are not longer than the box. I tryed to do it with a \begin{minipage} ... \end{minipage} but this only order the two things in the page. I can't do it, if someone could help me (or give me an advice) I would really appreciate it.

• please show us the code you have now, as a small compilable example. that way there will be something concrete to experiment with, and you'll get answers rather than guesses. – barbara beeton Oct 11 '17 at 22:22
• Sorry, I did not show my code because it was too bad. The image I did it with Photoshop. – hllspwn Nov 14 '17 at 20:06

A solution with blkarray:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{blkarray}
\usepackage{amsmath}

\begin{document}

\begin{figure}
\centering\setlength{\BAextrarowheight}{2pt}
$\begin{blockarray}[t]{rccc >{\qquad}ll} & a & b & c & \BAmulticolumn{2}{>{\qquad}l}{\textbf{results}} \\ \begin{block}{r|c|c|c| >{\qquad}ll} \BAhhline{~|---~~~} a & 1,1 & 1,1 & 1,1 & s = 1 & j = 4 \\ \BAhhline{~---~~~} b & 1,1 & 1,1 & 1,1 & p = 2 & k = 5 \\ \BAhhline{~---~~~} c & 1,1 & 1,1 & 1,1 & c = 3 & \text{This is true.} \\ \BAhhline{~---~~~} \end{block} \end{blockarray}$
\caption{A figure caption.}
\end{figure}

\end{document}


• Thanks! How can I remove the lines of the table for the last file? For example, if I want to make a 2x2 matrix at the left and 3 lines at the right? – hllspwn Nov 14 '17 at 20:08
• Doesn't matter, I end the block before and works! – hllspwn Nov 14 '17 at 20:37

I'd be inclined to use two adjacent tabulars. Depending on the content on the right, you can align it at the [t]op (or elsewhere):

\documentclass{article}

\newcommand{\mc}{\multicolumn{1}{c}}% Just for short-hand

\begin{document}

\begin{figure}
\centering
\begin{tabular}[t]{ *{4}{ c | } }
\mc{} & \mc{$a$} & \mc{$b$} & \mc{$c$} \\
\cline{2-4}
$a$   &   $1,1$  &   $1,1$  &   $1,1$ \\
\cline{2-4}
$b$   &   $1,1$  &   $1,1$  &   $1,1$ \\
\cline{2-4}
$c$   &   $1,1$  &   $1,1$  &   $1,1$ \\
\cline{2-4}
$s = 1$ & $j = 4$ \\
$p = 2$ & $k = 5$ \\
$c = 3$ & This is true.