Skip to main content

diagbox

Diagonally divided table cells for labelling both a row and a column header at once.

Rendered LaTeX output
% 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}