## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ table with rotated headings - spacing Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
dyde
Posts: 2
Joined: Mon Oct 28, 2019 2:27 pm

### table with rotated headings - spacing

Hi@all,

sorry to bother you but although I tried the search function, I could not find a solution to my specific problem.

I am using a table in latex with rotated headings:
\newcommand*\rot{\rotatebox{90}}\begin{table}  \caption{Table caption.}    \begin{threeparttable}      \begin{tabular}{ | l || c | c | }        \hline	\centering	\diagbox[innerwidth=18em]{Text}{\raisebox{-0.27cm}{Method}} & \rot{Head1} & \rot{Head2} \\ \hline																Description & foo\tnote{1} & bar \\ \hline       \end{tabular}      \begin{tablenotes}        \item[1] Note      \end{tablenotes}    \end{threeparttable}  \label{tbl:table}\end{table}

with the following result:
tableprob.png (18.59 KiB) Viewed 383 times

How can I modify the spacing of the headings? The big space between the delimiter and the "Head1"/"Head2" seems a bit odd...

Thanks a lot for any help!

Greetings

Stefan Kottwitz
Posts: 9496
Joined: Mon Mar 10, 2008 9:44 pm
Hi dyde,

welcome to the forum!

You could use the origin option, such as here, centered:

\rotatebox[origin=c]{90}

Stefan

dyde
Posts: 2
Joined: Mon Oct 28, 2019 2:27 pm
Hi Stefan,

thanks a lot, that worked for me

Stefan Kottwitz wrote:Hi dyde,

welcome to the forum!

You could use the origin option, such as here, centered:

\rotatebox[origin=c]{90}