I have a large table and I have tried other techniques but the rows are ending up on different pages.
Below is the code:
\begin{center}
\begin{longtable}{ |p{2cm} | p{2.6cm} | p{2.4cm} | p{2.1cm} | p{2.2cm} | p{2.2cm} |}
\caption{Cloud Computing}%
\tabularnewline
\hline
Grid computing & Mainframe computer & Utility computing & Peer-to-peer & Agility & Application programming interface \tabularnewline \hline
Attack mode
& Cloud computing is the result of evolution and adoption of existing technologies and paradigms. & The goal of cloud computing is to allow users to take benefit from all of these technologies, without the need for deep knowledge about or expertise with each one of them. & The cloud aims to cut costs, and helps the users focus on their core business instead of being impeded by IT obstacles. & The main enabling technology for cloud computing is virtualization & Cloud computing also leverages concepts from utility computing to provide metrics for the services used. \tabularnewline [.5ex] \hline
Advantages & 1- Cloud computing, or in simpler shorthand just "the cloud", also focuses on maximizing the effectiveness of the shared resources. Cloud resources are usually not only shared by multiple users but are also dynamically reallocated per demand. & 1- This can work for allocating resources to users. For example, a cloud computer facility that serves European users during European business hours with a specific application (e.g., email) may reallocate the same resources to serve North American users during North America's business hours with a different application (e.g., a web server). & 1-This approach should maximize the use of computing power thus reducing environmental damage as well since less power, air conditioning, rack space, etc. are required for a variety of functions. With cloud computing, multiple users can access a single server to retrieve and update their data without purchasing licenses for different applications. & 1- In the 1990s, telecommunications companies, who previously offered primarily dedicated point-to-point data circuits, began offering virtual private network (VPN) services with comparable quality of service, but at a lower cost. By switching traffic as they saw fit to balance server use, they could use overall network bandwidth more effectively. & control packet arrives faster \tabularnewline[.5ex] \hline
Disdvantages & 1- While aspects of the Oracle Cloud are still in development, this cloud offering & 1- They began to use the cloud symbol to denote the demarcation point between what the provider was responsible for and what users were responsible for. 2- Cloud computing extends this boundary to cover all servers as well as the network infrastructure
& 1- On March 1, 2011, IBM announced the IBM SmartCloud framework to support Smarter Planet. 2- Among the various components of the Smarter Computing foundation, cloud computing is a critical piece. & 1- As computers became more prevalent, scientists and technologists explored ways to make large-scale computing power available to more users through time-sharing. They experimented with algorithms to optimize the infrastructure, platform, and applications to prioritize CPUs and increase efficiency for end users.
& 1- In July 2010, Rackspace Hosting and NASA jointly launched an open-source cloud-software initiative known as OpenStack. The OpenStack project intended to help organizations offer cloud-computing services running on standard hardware. \tabularnewline[.5ex] \hline
\end{longtable}
\end{center}
I have also tried using tabular
(as shown below) , the table is now joined but exceeding the page length.
\begin{center}
\begin{table}[h!]
\caption{Cloud Computing}
\begin{tabular}{ |p{2cm} | p{2.6cm} | p{2.4cm} | p{2.1cm} | p{2.2cm} | p{2.2cm} |}
\hline
Grid computing & Mainframe computer & Utility computing & Peer-to-peer & Agility & Application programming interface \tabularnewline \hline
Attack mode
& Cloud computing is the result of evolution and adoption of existing technologies and paradigms. & The goal of cloud computing is to allow users to take benefit from all of these technologies, without the need for deep knowledge about or expertise with each one of them. & The cloud aims to cut costs, and helps the users focus on their core business instead of being impeded by IT obstacles. & The main enabling technology for cloud computing is virtualization & Cloud computing also leverages concepts from utility computing to provide metrics for the services used. \tabularnewline [.5ex] \hline
Advantages & 1- Cloud computing, or in simpler shorthand just "the cloud", also focuses on maximizing the effectiveness of the shared resources. Cloud resources are usually not only shared by multiple users but are also dynamically reallocated per demand. & 1- This can work for allocating resources to users. For example, a cloud computer facility that serves European users during European business hours with a specific application (e.g., email) may reallocate the same resources to serve North American users during North America's business hours with a different application (e.g., a web server). & 1-This approach should maximize the use of computing power thus reducing environmental damage as well since less power, air conditioning, rack space, etc. are required for a variety of functions. With cloud computing, multiple users can access a single server to retrieve and update their data without purchasing licenses for different applications. & 1- In the 1990s, telecommunications companies, who previously offered primarily dedicated point-to-point data circuits, began offering virtual private network (VPN) services with comparable quality of service, but at a lower cost. By switching traffic as they saw fit to balance server use, they could use overall network bandwidth more effectively. & control packet arrives faster \tabularnewline[.5ex] \hline
Disdvantages & 1- While aspects of the Oracle Cloud are still in development, this cloud offering & 1- They began to use the cloud symbol to denote the demarcation point between what the provider was responsible for and what users were responsible for. 2- Cloud computing extends this boundary to cover all servers as well as the network infrastructure
& 1- On March 1, 2011, IBM announced the IBM SmartCloud framework to support Smarter Planet. 2- Among the various components of the Smarter Computing foundation, cloud computing is a critical piece. & 1- As computers became more prevalent, scientists and technologists explored ways to make large-scale computing power available to more users through time-sharing. They experimented with algorithms to optimize the infrastructure, platform, and applications to prioritize CPUs and increase efficiency for end users.
& 1- In July 2010, Rackspace Hosting and NASA jointly launched an open-source cloud-software initiative known as OpenStack. The OpenStack project intended to help organizations offer cloud-computing services running on standard hardware. \tabularnewline[.5ex] \hline
\end{tabular}
\end{table}
\end{center}
This is what i like to achieve
I have added the code for both tables in an online editor at this link for more explanation. Feel free to edit.
longtable
, by design, is meant to allow tables be split across pages. If you don't want that, there are many other options for tables.tabular
it is joined but now its exceeding page length.tabular
environment cannot break across pages; that's why you're getting a table that exceeds the size of the page block. In contrast, thelongtable
environment is explicitly designed to handle any needed page breaks if the table material is simply too long to fit inside the available page block. Aside: Thelongtable
environment already contains code to center its material horizontally -- no need to encase it in acenter
environment as well.longtable
can be used to 'repeat' headers on each subsequent page, the amount of text you are putting in each cell makes the table an uncomfortable way to 'learn' the point(s) you are tyring to make. It may in fact hinder intelligibility. I would consider using a series ofdescription
environments or something else.