diagbox
Diagonally divided table cells for labelling both a row and a column header at once.
- Example
- Preamble
% Adapted from https://tex.stackexchange.com/a/468994/9075
\begin{figure}
\caption{Table with diagonal line}
\label{tab:diag}
\begin{center}
\begin{tabular}{|l|c|c|}
\hline
\diagbox{Row}{Column} & A & B \\
\hline
1 & x & y \\
\hline
\end{tabular}
\end{center}
\end{figure}
% Diagonal lines in a table - http://tex.stackexchange.com/questions/17745/diagonal-lines-in-table-cell
% Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox
\usepackage{diagbox}