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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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.