# Fit a large table into a landscape page

I have this table and I want to fit it nicely into a landscape page. I can't make it look right. The cells should be multi-lined for it to work. Please let me know what is wrong:

\documentclass{article}

\usepackage[landscape]{geometry}

\begin{document}
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{lllll}
Type of controllers distribution & Description & Proposed approaches & Summery & Disadvantage \\
Logically distributed & A logically centralized and physically distributed control plane & HyperFlow & Publish-subscribe method with WheelFS file system for cross-controller communication and global network view sharing. & Additional maintenance and subscription management overhead. \\
&  & DIFANE & Distributed controller’s rules across a subset of the authority switches. & ? Small overhead between the central controller and switches and high resource consumption(i.e., CPU, TCAM space) at switches \\
Physically distributed & Control platforms distributed on one or & Onix & Publish0subscribe method with the NIB database system & Additional maintenance and subscription management overhead \\
&  & BalanceFlow & One super controller and many normal controllers, where the super controller is responsible for load balancing among all controllers & Additional overhead at control plane. \\
Hierarchical & Two-level hierarchy for controllers (local controllers and a logically centralized root controller) & Kandoo & Local controllers execute local applications and each local controller controls one or some switches. & No global network view for the application processes at local controllers \\
&  &  & The root controller controls all local controllers and runs non-local control applications. &  \\
Hybrid & Logically Centralized, but physically distributed clusters of controllers & SOX/DSOX & Centrally controlled cluster of controllers running in equal mode with automatic failover and load balancing while such a controller cluster is targeted to manage a ‘‘significant-size’’ of a (sub) network. & No full consistency among the distributed controller clusters \\
&  &  & The controller clusters can be physically distributed to control different (sub) networks with required synchronization for necessary consistency, whilethose distributed controllers can be inter-connected through a service bus or extended BGP protocol as defined in the software-services defined networking technology &
\end{tabular}
\end{table}
\end{document}


A quick and dirty example using tabular:

\documentclass{article}

\usepackage[landscape, margin=1in]{geometry}

\begin{document}
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
% The 'p' column type lets you specify the width of the column.
% Note that you can also write something like 'p{0.25\linewidth}'
% (to use 25% of the line width) instead of constants like I've done.
\begin{tabular}{p{2cm} p{5cm} l p{7cm} p{4cm}}
Type of controllers distribution & Description & Proposed approaches & Summery & Disadvantage \\
Logically distributed & A logically centralized and physically distributed control plane & HyperFlow & Publish-subscribe method with WheelFS file system for cross-controller communication and global network view sharing. & Additional maintenance and subscription management overhead. \\
&  & DIFANE & Distributed controller’s rules across a subset of the authority switches. & ? Small overhead between the central controller and switches and high resource consumption(i.e., CPU, TCAM space) at switches \\
Physically distributed & Control platforms distributed on one or & Onix & Publish0subscribe method with the NIB database system & Additional maintenance and subscription management overhead \\
&  & BalanceFlow & One super controller and many normal controllers, where the super controller is responsible for load balancing among all controllers & Additional overhead at control plane. \\
Hierarchical & Two-level hierarchy for controllers (local controllers and a logically centralized root controller) & Kandoo & Local controllers execute local applications and each local controller controls one or some switches. & No global network view for the application processes at local controllers \\
&  &  & The root controller controls all local controllers and runs non-local control applications. &  \\
Hybrid & Logically Centralized, but physically distributed clusters of controllers & SOX/DSOX & Centrally controlled cluster of controllers running in equal mode with automatic failover and load balancing while such a controller cluster is targeted to manage a ‘‘significant-size’’ of a (sub) network. & No full consistency among the distributed controller clusters \\
&  &  & The controller clusters can be physically distributed to control different (sub) networks with required synchronization for necessary consistency, whilethose distributed controllers can be inter-connected through a service bus or extended BGP protocol as defined in the software-services defined networking technology &
\end{tabular}
\end{table}
\end{document}


The LaTeX wikibook has a good section on this.

• Perhaps you should explain the p column type a little bit – user31729 Dec 27 '15 at 9:25
• Good point, done. – JamesNZ Dec 27 '15 at 9:39

This table can't fit a single page. I suggest using ltablex, which combines longtable and tabularx, and some other useful packages: caption (for a correct vertical spacing between caption and table), makecell (for a common formatting of column heads and line breaking inside cells) and booktabs:

\documentclass{article}

\usepackage[landscape]{geometry}
\usepackage{ragged2e}
\usepackage{array, ltablex, booktabs, caption, makecell}
\renewcommand{\tabularxcolumn}[1]{>{\RaggedRight\arraybackslash}p{#1}}
\captionsetup{labelfont=sc}

\begin{document}

\setlength{\tabcolsep}{4pt}
\begin{tabularx}{\linewidth}{lXc*{2}{X}}
\caption{My caption} \label{my-label} \\%
\toprule
\midrule
\rlap{\emph{Continued from previous page}}\smallskip\\
\toprule
\midrule
\endlastfoot
\addlinespace[2ex]\midrule\noalign{\smallskip}\multicolumn{5}{r@{}}{\em To be continued}
\endfoot
\makecell[lt]{Logically & & & & \\ distributed} & A logically centralized and physically distributed control plane & HyperFlow & Publish-subscribe method with WheelFS file system for cross-controller communication and global network view sharing. & Additional maintenance and subscription management overhead. \\
& & DIFANE & Distributed controller’s rules across a subset of the authority switches. & ? Small overhead between the central controller and switches and high resource consumption(i.e., CPU, TCAM space) at switches \\
\makecell[l]{Physically & & & & \\ distributed} & Control platforms distributed on one or & Onix & Publish-subscribe method with the NIB database system & Additional maintenance and subscription management overhead \\
& & BalanceFlow & One super controller and many normal controllers, where the super controller is responsible for load balancing among all controllers & Additional overhead at control plane. \\