Table issues…

I am writing to those who are facing the issues on displaying long table in latex. The default table environment in LaTeX does not work well if the data to be displayed in your table spans more than one page — the text cuts off and may flow outside of the normal page margins. The solution to this is to use the longtable package, which allows tables to take up multiple pages, and enables table row headings that span page breaks.

Declare the use of this package \usepackage{longtable} in the preamble, which should be installed already in your LaTeX setup. The skeleton of a long table looks like this:

\setlongtables % keeps the width uniform across both pages
\begin{longtable}{|c|c|c|c|}
\caption{Spurred species and their pollinators}\\
\hline
Flower species & Pollinator species & Family & Functional Group \\
\endfirsthead


\hline
Flower species & Pollinator species & Family & Functional Group \\
\endhead
\hline \hline
{\it Aquilegia canadensis} & {\it Trochilus} & Trochil. & Bird \\

{ ….

add more

……}

{\it Habenaria leucophaea} & {\it Chaerocampa} & Sphing. & Lepidoptera \\ 
\hline
\end{longtable} 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s