You can use the adjustbox
package with:
\begin{adjustbox}{width=\textwidth,totalheight=\textheight,keepaspectratio}
% your table
\end{adjustbox}
You can also use the graphicx
package with:
\setkeys{Gin}{keepaspectratio}
\resizebox*{\textwidth}{\textheight}{your table}
but adjustbox
is more recommended. It doesn't read the whole table as an argument.
You can also add \rotatebox{90}{..}
or the angle=90
option to the adjustbox
environment to implement the rotation.
You might need to exchange \textwidth
and \textheight
because of the landscape mode. Also you should use an approximate font size first, e.g. try \tiny
or \scriptsize
and let the rest be done by scaling. You shouldn't scale the normal font size to a very small size. Many fonts are differently designed in different sizes, so using the closest possible size yields the best results.
First of all, the data of your table appears huge and putting this into one table might sacrifice readability of your work. It would be a great thing to do if you can shrink the content of the table a bit or redesign the table. Other than that, I've made a bunch of improvements:
- I used the
sidewaystable
environment from the rotating package; this will make more room for the table columns.
- I removed the
\resizebox{\textwidth}{!}
and used tabularx
instead.
- To avoid too much weird hyphens with full justification, I used
\raggedright
.
- To gain more space, I changed the default
tabcolsep
from 4pt
to 2pt
.
- Using
\sffamily
gives also some more space.
- Finally, using
\small
will save some extra space without sacrificing readability.
The above, as I said before, should be your last resort after both shrinking of content and table redesign fail.
\documentclass{article}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tabularx,rotating}
\usepackage[margin=1in]{geometry}
\usepackage{ragged2e}
\begin{document}
\setlength{\tabcolsep}{2pt}
\begin{sidewaystable}
\small\sffamily\centering
\caption{My caption}
\label{my-label}
\begin{tabularx}{\textwidth}{@{}*7{>{\raggedright\arraybackslash}X}@{}}
\toprule
\textbf{Model} & \textbf{Breach morphology} & \textbf{Flow} & \textbf{Sediment transport capacity} & \textbf{Geomechanics} & \textbf{Solution method} & \textbf{Remarks} \\ \midrule
& 1D Exner equation & 1D St.Venant equations & Multiple formulas & Longitudinal slope stability & Fine difference,uncoupled & Overtopping, no lateral erosion \\
DEICH\_N1 and DEICH\_N2 & Evolution from 1D/2D Exner quation & Shallo water equations & Nine different formulas availabe & & 1D/2D numerical model, uncoupled & \\
& 2D Exner equation & 2D shallow water equations & Erosion formula from WEPP, USDA & & 2D numerical model, uncoupled & Validated with Norweigian field tests \\
& Clear-water scour & 2D shallow water equations & Chen and Anderson's formula for erosion rate & 3D slope stability & 2D TVD finite differnce, uncoupled & Noncohesive dam, overtopping \\
& 2D Exner equation & 2D shallow water equations & Formulas for bed-load and suspended load & Lateral erosion, vertical erosion, and slope stability & 2D finite volume ( Roe and HLL), uncoupled & Noncohesive levee, overtopping \\
& 2D nonequilibrium sediment transport equation & 2D shallow water equations & Formula for bed-load & Lateral erosion,vertical erosion, and slope stability & 2D finite volume (Roe's Riemann solver), coupled & Noncohesive overtopping \\
& 2D nonequilibrium sediment transport equation & 2D shallow water equations with wave-action & Soulsby formula & Bed avalanching & 2D finite difference, uncoupled & Noncohesive dune and barrier, overtopping \\
& 1D/2D Nonequilibrium total-load tranport & Generelized shallow water equations & Wu etal. total-load capacity formula & Lateral erosion and slope stability ( repose angle) & 1D/2D finite volume (HLL) scheme, coupled & Noncohesive dam and levee, overtopping \\
& 2D nonequilirbium sediment transport & Generalized shallow water equations & Modified Meyer-Peter and Müller bed-load & Slope stability (repose angle) & Finite volume (HLLC) scheme, coupled & Landslide dam, overtopping \\ \bottomrule
\end{tabularx}%
\end{sidewaystable}
\end{document}
Best Answer
You can try and spare on intercolumn spaces, by locally reducing the value of
\tabcolsep
; also the headers should be as short as possible.