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.

I've recently encountered PDF from a latex document where the header are rotated. As it's hard to explain I thought an image should be used:

image

Does anyone have any idea how to create such table?

share|improve this question
add comment

1 Answer

up vote 10 down vote accepted

This should be a good start:

\documentclass{article}

\usepackage{graphicx} 
\usepackage{xcolor} 
\usepackage{multirow} 
\usepackage{amsfonts} 

\begin{document}

\def\yes{$\color{green!50!black} \checkmark$}
\def\no{\color{red} X}

\begin{tabular}{|c|c|l|c|c|c||c|} 
\hline
\multirow{3}{*}{\rotatebox{90}{\bf Image}} & 
\multirow{3}{*}{\rotatebox{90}{\bf Differ}} & 
Cavalero et al. 2005 & F/D & \yes & \yes & - \\ 
& & Cheng et al & \yes & \no & - & \no \\
& & Li et al & \no & \no & - & \yes \\
\hline
\hline
\multirow{5}{*}{\rotatebox{90}{\bf Statistical}} & 
\multirow{3}{*}{\rotatebox{90}{\bf Differ}} & 
Cavalero et al. 2005 & F/D & \yes & \yes & - \\ 
& & Cheng et al & \yes & \no & - & \no \\
& & Li et al & \no & \no & - & \yes \\
\cline{2-2}
& PF & Cheng et al & \yes & \no & - & \no \\
\cline{2-2}
& EM & Li et al & \no & \no & - & \yes \\
\hline 
\multicolumn{2}{l}{}  & & & & & \\
\cline{1-3}
\multicolumn{3}{|l}{Features(F) / Dense (D)} & & & & \\
\cline{1-4}
\multicolumn{4}{|l}{Occlusion} & & & \\
\cline{1-5}
\multicolumn{5}{|l}{Multiple Objects} & & \\
\cline{1-6}
\multicolumn{6}{|l}{Spatial continuity} & \\
\hline
\end{tabular}

\end{document}

This is the result:

latex output

share|improve this answer
    
Perfect ! Thanks Yori ! –  Igor B May 12 '12 at 18:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.