AFAIK, there are two packages for this purpose. One is my diagbox
(replacement of old slashbox
). The other is makecell
. Here is an example of \diaghead
in makecell
:
\documentclass{article}
\usepackage{diagbox}
\usepackage{makecell}
\begin{document}
\section*{diagbox}
\begin{tabular}{|l|c|c|}\hline
\theadfont\diagbox[width=11em]{Diag\\Column Head I}{Diag Column\\Head II}&
\thead{Second\\column}&\thead{Third\\column}\\ \hline
& foo & bar \\ \hline
\end{tabular}
\section*{makecell}
\begin{tabular}{|l|c|c|}\hline
\diaghead{\theadfont Diag ColumnmnHead II}%
{Diag\\Column Head I}{Diag Column\\Head II}&
\thead{Second\\column}&\thead{Third\\column}\\ \hline
& foo & bar \\ \hline
\end{tabular}
\end{document}
