I use \rotatebox
to create a table with vertical headers, like so:
\documentclass{article}
\usepackage{rotating}
\begin{document}
\begin{table}
\begin{tabular}{|l|l|l|}
\hline
\rotatebox{90}{Header 1} &
\rotatebox{90}{Header 2} &
\rotatebox{90}{Header 3}\\
\hline
Content & Content & Content\\
\hline
\end{tabular}
\end{table}
\end{document}
Now, I have a header that is awkwardly long (and cannot be abbreviated in a meaningful way). I would like to break the header into two lines. However, I can't seem to get this to work with \linebreak
or \\
, so apparently some trickery is needed.
Help?
Best Answer
How about putting the "problematic" header into a
\parbox
and manually adding\\
(which works inside the box) where necessary?