I am trying to make a table which has rotated text in headings. However, the text is quite long and the resulting table is therefore vertically stretched which is not very nice to look at.
I would be very grateful for any kind of hint or help on how to “vertically wrap” the rotated text in the heading.
Example of the code:
Code: Select all
\begin{tabular}{b{1cm} c b{1cm} b{1cm} b{1cm} b{1cm} b{1cm} b{1cm} c}
\toprule
& & \multicolumn{6}{c}{Road Type} & \\
\cmidrule{3-8}
& & \begin{sideways}Pedestrianised street\end{sideways}& \begin{sideways}B road\end{sideways} & \begin{sideways}Minor road\end{sideways} & \begin{sideways}A road single carriageway\end{sideways} & \begin{sideways}Dual carriageway\end{sideways} & \begin{sideways}Local street\end{sideways} & \begin{sideways}Total\end{sideways}\\
\midrule
Women & Count & 1 & 2 & 3 & 1 & 4 & 2 & 13\\
& Expected & 0.7 & 3.9 & 3.3 & 0.7 & 2.6 & 2.0 & 13.0 \\
\midrule
Men & Count & 0 & 4 & 2 & 0 & 0 & 1 & 7\\
& Expected & 0.4 & 2.1 & 1.8 & 0.4 & 1.4 & 1.1 & 7.0 \\
\midrule
Total & Count & 1 & 6 & 5 & 1 & 4 & 3 & 20\\
& Expected & 1.0 & 6.0 & 5.0 & 1.0 & 4.0 & 3.0 & 20.0 \\
\bottomrule
\end{tabular}
Thanks for your help!!
Regards,
Vera