Hi there
I can create table with 5 columns with \begin{tabular}{|c|c|c|c|c|}
Thus, I get to have to 5 table header. But I want the table header to be diagonal, starting from bottom left to upper right. Google search wasn't of much help.
thanks for your help.
Cheers
Arif.
Graphics, Figures & Tables ⇒ Diagonal Table Header
Diagonal Table Header
Hi Arif,
you could use the \rotatebox command provided by the graphicx package; take a look at the following example:
you could use the \rotatebox command provided by the graphicx package; take a look at the following example:
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\begin{document}
{\centering
\begin{tabular}{|p{1.8cm}|p{1.8cm}|p{1.8cm}|}
\hline
\rotatebox{15}{Header1} & \rotatebox{15}{Header2} & \rotatebox{15}{Header3}\\\hline
column1a & column2a & column 3a\\
column1b & column2b & column 3b\\\hline
\end{tabular}
}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 13
- Joined: Wed Sep 09, 2009 6:55 am
Re: Diagonal Table Header
COOL, thanks
that really works.
Cheers...now let me play around with that.
that really works.
Cheers...now let me play around with that.