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{table}
\caption{Table with diagonal line}
\label{tab:diag}
\centering
\begin{tabular}{|l|c|c|} % chktex 44
\hline % chktex 44
\diagbox{Row}{Column} & A & B \\
\hline % chktex 44
1 & x & y \\
\hline % chktex 44
\end{tabular}
\end{table}