This is an example of the basic code I have so far:
Code: Select all
\begin{tabularx}{.7\textwidth}{K K|K K K K|}
\multicolumn{2}{c}{} & \textrm{Piano} & \textrm{Trumpet} & \textrm{Flute} & \multicolumn{1}{c}{\textrm{Viola}}\\
\multicolumn{2}{c}{}& \textbf{pno} & \textbf{tpt} & \textbf{flt} & \multicolumn{1}{c}{\textbf{vla}}\\ \cline{3-6}
\textrm{Piano} & \textbf{pno} & 5.9 \cellcolor[gray]{.8}& 2.5 & 2.5 & 7.5\\
\textrm{Trumpet} & \textbf{tpt} & 2.0 & 7.1 \cellcolor[gray]{.8}& 0.25 & 6.5\\
\textrm{Flute} & \textbf{flt} & 1.2 & 4.4 & 10.3 \cellcolor[gray]{.8} & 5.7\\
\textrm{Viola} & \textbf{vla} & 3.4& 2.8 & 9.4 & 6.3 \cellcolor[gray]{.8}\\ \cline{3-6}
\end{tabularx}