# LaTeX table cell with a diagonal line and 2 sub cells [duplicate]

Possible Duplicate:
Diagonally divided table cell
Diagonal lines in table cell

I'd like to have a LaTeX table, where the top left cell marks what the headers are to the right and also mark what the descriptors are downwards.

For this I'd like to have the upper left table cell be "split" diagonally, (from top left of cell to bottom right) by drawing a line and above that line, I'd like to place the name of headings to the right, and below the headings of the descriptors downwards.

Any idea how I could do that?

-

## migrated from stackoverflow.comSep 1 '11 at 15:59

This question came from our site for professional and enthusiast programmers.

## marked as duplicate by Alan Munn, Werner, lockstep, Loop Space, Joseph Wright♦Sep 2 '11 at 14:02

–  Marco Daniel Sep 1 '11 at 16:08

You can use the slashbox package to do this. The following minimal example was taken directly from the examples page:

\documentclass{article}
\usepackage{slashbox}
\begin{document}

\begin{tabular}{|l||*{5}{c|}}\hline
\backslashbox{Room}{Date}
&\makebox[3em]{5/31}&\makebox[3em]{6/1}&\makebox[3em]{6/2}
&\makebox[3em]{6/3}&\makebox[3em]{6/4}\\\hline\hline
Meeting Room &&&&&\\\hline
Auditorium &&&&&\\\hline
Seminar Room &&&&&\\\hline
\end{tabular}

\end{document}


-
slashbox does not exist in TeX Live. –  kiss my armpit Nov 4 '13 at 3:04