%%
%% The LaTeX Companion, 3ed
%%
%% Example 6-7-9 on page I-481 in "diagbox --- Making table cells with diagonal lines".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{150.0pt}

%StartShownPreambleCommands
\usepackage{color,diagbox}
%StopShownPreambleCommands

\begin{document}
\begin{tabular}{|c|c|c|} \hline
\diagbox{A}{B}{C} &
 \diagbox[dir=NE,font=\tiny]{north}{east}        &
  \diagbox[width=2cm,dir=NE]{A}{B}{C}           \\\hline
\diagbox[dir=NW,font=\tiny,trim=lr]{north}{west} &
 \diagbox[font=\tiny,linecolor=blue,
         linewidth=1pt]{default}{direction}      &
 \diagbox[dir=SE,font=\tiny,trim=r]{south}{east}\\\hline
\diagbox[dir=SW,leftsep=0pt]{A}{B}{C}            &
 \diagbox[dir=SW,font=\tiny]{south}{west}        &
  \diagbox[width=30pt,height=30pt,
           dir=SE,font=\itshape]{x}{y}{z}       \\\hline
\end{tabular}
\end{document}
