Graphics, Figures & Tables ⇒ Diagonal Table Header
-
- Posts: 13
- Joined: Wed Sep 09, 2009 6:55 am
Diagonal Table Header
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Diagonal Table Header
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}
-
- Posts: 13
- Joined: Wed Sep 09, 2009 6:55 am
Re: Diagonal Table Header
that really works.
Cheers...now let me play around with that.