So I have quite a big table, as you will see in my code. I'd prefer (if possible) to have the table fit on a "normal" portrait page (personal preference as I think it is easier to read). Mainly the problem are the long headings (particularly for the last 3 columns), so perhaps wrapping text would be suitable. However if the table cannot be fitted onto a portrait page (and look reasonably pleasant!), I guess I'd have to go the horizontal page route. What would be the most suitable package to use and what would be the relevant code?
\documentclass{article}
\usepackage{booktabs, siunitx}
\begin{document}
\begin{table}[H]
\caption{Presentation of survival data for the whole sample (N = 13 298)}
\label{table:SurvivalAll}
\begin{tabular*}{\textwidth}{
!{\extracolsep{\fill}}
l
*{8}{S[table-format=2.2]}
}
\toprule
{\bfseries Year} & {\bfseries Risk Set} & {\bfseries Graduated} & {\bfseries Academically Excluded} & {\bfseries Transferred} & {\bfseries Censored} & {\bfseries Hazard Ratio - Graduates (\%)} & {\bfseries Hazard Ratio - Academically Excluded (\%)} & {\bfseries Hazard Ratio - Transferred (\%)} \\
\midrule
1 & 13 298 & 0 & 725 & 583 & 1915 & 0.00 & 5.45 & 4.38 \\
2 & 10 075 & 0 & 474 & 176 & 1617 & 0.00 & 4.70 & 1.75 \\
3 & 7 808 & 1266 & 334 & 38 & 1030 & 16.21 & 4.28 & 0.49 \\
4 & 5 139 & 2782 & 147 & 2 & 455 & 54.14 & 2.86 & 0.04 \\
5 & 1 754 & 1135 & 76 & 2 & 205& 64.71 & 4.33 & 0.11 \\
6 & 336 & 235 & 17 & 0 & 39 & 69.94 & 5.06 & 0.00 \\
7 & 45 & 28 & 7 & 0 & 5 & 62.22 & 15.56 & 0.00 \\
8 & 5 & 3 & 0 & 0 & 2 & 60.00 & 0.00 & 0.00 \\
\bottomrule
\end{tabular*}
\end{table}
\end{document}
\tabcolsep
set to 50% of it's original width, and all the headings are stacked, as well as the entire table is set in\small
. Yet the last two column still stretch entirely out into the margin. I think going with a side-ways table is probably the only option.