## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Big tables Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Shafiq Popal
Posts: 9
Joined: Thu Mar 02, 2017 8:31 pm

### Big tables

Hello everyone,
I need some very big tables to be used for my thesis. One of the tables that I used is attached and the code is also given. But after compiling the file, my table does not appear completely on the page. Any idea how to fit it on the page?

Regards,

\begin{table}[!h]\caption{Theoretical Strength of Specimens}\label{tab:ts}\centering\begin{tabular}{l l l l l l l}\toprule\tabhead{Specimen} & \tabhead{Strengthening Material} & \tabhead{Depth of Compression Block (\textit{$\alpha$, mm})} & \tabhead{Felxural Capacity (\textit{kNm})} & \tabhead{Cracking Moment (\textit{kN})} & \tabhead{Ultimate Load (\textit{kN})} & \tabhead{Enhancement in Bearing Capacity (\textit{\%}})  \\\midruleI-SB0-SWR0 & --- & 9.670 & 6.383 & 4.587 & 9.896 & --- \\II-SB4-SWR0 & 4 Steel Bars \O 6 mm & 15.80 & 9.966 & 5.10 & 15.451 & 56.133 \\III-SB0-SWR4 & 4 P-SWRs \O 3 mm & 14.650 & 9.369 & 5.338 & 14.525 & 46.776 \\IV-SB2-SWR2 & 2 Steel Bars \O 6 mm and 2 P-SWRs \O 3 mm & 15.240 & 9.680 & 5.748 & 15.0 & 51.576 \\V-SB0-SWR8 & 8 P-SWRs \O 3 mm & 19.490 & 12.050 & 7.720 & 18.682 & 88.783 \\\bottomrule\\\end{tabular}\end{table}

01.jpg (49.61 KiB) Viewed 606 times
Last edited by Stefan Kottwitz on Mon May 15, 2017 11:29 am, edited 1 time in total.
Reason: code marked

Stefan Kottwitz
Posts: 8367
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi!

The table head entries are very long. They would never fit to the page. You could wrap them, having a header with multiple lines, or shorten them. Perhaps, instead of writing Depth of Compression Block (\textit{$\alpha$, mm}), you could write Depth with a footnote that explains what is meant. And the same for other entries.

Alternatively, you could rotate the table by 90 degrees to have more space.

So, possible ways are
• tabularx table in \textwidth, p and X columns
• footnotes at the table (threeparttable package)
• rotated table, using lscape or pdflscape or rotating, sidewaystable

I don't go into details as I don't know yet which way you would like to choose.

Stefan

Shafiq Popal
Posts: 9
Joined: Thu Mar 02, 2017 8:31 pm
May I know the package and code for using footnotes under the table because I tried rotating the table but it did not fit

Thanks a lot

Stefan Kottwitz
Posts: 8367
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Here is a complete example with table notes. In addition, I rotated the header to save horizontal space.


table.png (35.2 KiB) Viewed 581 times

Stefan

Shafiq Popal
Posts: 9
Joined: Thu Mar 02, 2017 8:31 pm
This is really beyond my expectations. Thank you so much for your help and support.

Stefan Kottwitz
Posts: 8367
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
I noticed I forgot to adjust the table footnote numbers below the table, I guess you already saw that there are several \item[3]. Just to mention it.

Stefan