Putting LaTeX table legend in a “x\y” style [duplicate]

Possible Duplicate:
Tables of numbers

Is it possible to put a "x\y" style legend in one cell (maybe be made up of several cells) of a table? It would be great to make the 'x' slightly lower while the 'y' slight higher.

Please see the picture below for illustration:

Thank you very much.

-

marked as duplicate by Caramdir, lockstep, Joseph Wright♦Feb 22 '11 at 8:06

Welcome to tex.sx! Note that it is unusual around here to sign your questions (as there is already a box with your username below it) or to have any greeting. A suggestion: Change your username to something more telling than "user2015". –  lockstep Feb 22 '11 at 0:35
Have a look at tex.stackexchange.com/questions/7262/tables-of-numbers, tex.stackexchange.com/questions/9275/… and tex.stackexchange.com/questions/9253/slashbox-alternative. Maybe one of the solutions to these questions is applicable to your case. –  Caramdir Feb 22 '11 at 1:29
Thanks for the suggestions, @lockstep:) –  Li Wang Feb 22 '11 at 4:44
tex.stackexchange.com/questions/7262/tables-of-numbers provides a perfect solution --- i.e. \backslashbox in slashbox package. Thank you very much @Caramdir. –  Li Wang Feb 22 '11 at 4:47

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
& foo & bar \\    \hline
\end{tabular}

\section*{makecell}

\begin{tabular}{|l|c|c|}\hline

maybe you could add the makecell answer to the duplicate question, so that we have all solutions in one place. –  Caramdir Feb 23 '11 at 0:23