Code: Select all
Code, edit and compile here:
\documentclass[a4paper,10pt]{book}\usepackage[showframe,margin=3cm]{geometry}\usepackage{adjustbox}\usepackage{booktabs,array}\usepackage[font=small,labelfont=bf]{caption}\captionsetup[table]{position=top,skip=7pt}\usepackage{rotating}\renewcommand{\arraystretch}{1.2}\begin{document}\begin{sidewaystable}\centering\caption{TEST TEST TEST.}\label{tab:ex}\begin{adjustbox}{max width=\textwidth,max totalheight=\textheight,keepaspectratio}\begin{tabular}{ccccccccccccc}\hline&&&&&& Initial & Reference & Resulting & Grain & Bulk && Grain\\Plug & Length & Diameter & Weight & V2 & V3 & Pressure & Pressure & Pressure & Volume & Volume & Porosity & Density\\\small{no.} & \small{cm} & \small{cm} & \small{g} & \small{on/off} & \small{on/off} & \small{psig} & \small{psig} & \small{psig} & \small{cm$^3$} & \small{cm$^3$} & \small{\%} & \small{g/cm$^3$}\\\hline1D & 4.5578 & 3.8150 & ~76.4758 & on & on & 0.14 & 103.35 & 20.92 & 28.357 & 52.100 & 45.57 & 2.697 \\&&&&&&& 103.31 & 20.91 &&&& \\&&&&&&& 103.27 & 20.90 &&&& \\2D & 6.0548 & 3.8305 & 109.8275 & on & on & 0.14 & 102.99 & 24.25 & 40.902 & 69.776 & 41.38 & 2.685 \\&&&&&&& 102.99 & 24.28 &&&& \\&&&&&&& 102.97 & 24.28 &&&& \\4D & 5.7680 & 3.8193 & 118.1769 & on & on & 0.14 & 102.77 & 24.78 & 42.612 & 66.083 & 35.52 & 2.773 \\&&&&&&& 102.73 & 24.76 &&&& \\&&&&&&& 102.74 & 24.77 &&&& \\5D & 6.1712 & 3.8437 & 103.6808 & on & on & 0.13 & 102.54 & 23.24 & 37.905 & 71.606 & 47.06 & 2.735 \\&&&&&&& 102.54 & 23.25 &&&& \\&&&&&&& 102.57 & 23.25 &&&& \\8D & 6.0173 & 2.4363 & ~43.8543 & off & on & 0.14 & 102.44 & 35.02 & 16.174 & 28.052 & 42.34 & 2.711 \\&&&&&&& 102.43 & 35.02 &&&& \\&&&&&&& 102.44 & 35.04 &&&& \\9D & 5.8937 & 2.4190 & ~40.6715 & off & on & 0.14 & 102.39 & 33.96 & 14.879 & 27.086 & 45.07 & 2.734 \\&&&&&&& 102.43 & 34.02 &&&& \\&&&&&&& 102.44 & 34.03 &&&& \\11D & 6.0962 & 2.4535 & ~50.4501 & off & on & 0.13 & 102.32 & 37.10 & 18.622 & 28.822 & 35.39 & 2.709 \\&&&&&&& 102.41 & 37.11 &&&& \\