Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Sep 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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
See diagonal lines in table cell –  Marco Daniel Sep 1 '11 at 16:08

1 Answer 1

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

share|improve this answer
3  
slashbox does not exist in TeX Live. –  Who is crazy first Nov 4 '13 at 3:04