I have a matrix, given in the following snippet:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blkarray}
\begin{document}
\begin{equation}
\begin{blockarray}{ccccccccccc}
& \O & 12 & 12,34 & 13 & 13,24 & 14 & 14,23 & 23 & 24 & 34 \\
\begin{block}{c[cccccccccc]}
01 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\
01,23 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 1 & 1 \\
01,24 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 1 & 1 \\
01,34 & 1 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 \\
\end{block}
\end{blockarray}
\end{equation}
\end{document}
I'd like to have a green box around the first 7 columns of the matrix, and a red box around the other 3 columns. I've tried implementing the solution given in this post, but I think that using blkarray inside of TikZ is causing a problem.
Is there an alternative I can use? Or perhaps a way to use TikZ which will work?




blkarray. – Skillmon Jul 23 '18 at 20:49blkarray– NNN Jul 23 '18 at 20:53