[Tex/LaTex] How to i convert the tabular into longtable

longtable

I have this report and I can be as long as 40 pages. My current setting is cutting it on one page only.

I am very new to latex and I am just copy pasting from internet. If you guys can fix that.

This is the working copy of that

https://www.writelatex.com/174546bmvnqt

\subsection{Current Students}
\begin{table}[H]
  \caption{Current Objects }
  \centering
  \begin{tabular}{*{4}{|p{4cm}}{|p{7cm}}}
    \hline\hline
    \rowcolor{orange}  
    Proponent                     &Statutory Process        &Student Name                 &Student Region          &Subjects\\
    \hline\hline
    Nevertheless, the natural ... &EP Act Environmental ... &With this clarification, ... &[uNorthwest Transition] &
      \begin{tabular}{*{1}{|p{0.5cm}}{|p{6cm}}}
        \hline\hline
        \rowcolor{orange}
        \# &Subject Type      \\
        \hline
        \rowcolor{white}
        1 &Research           \\\hline
        2 &Restoration        \\\hline
        3 &Research           \\\hline
        4 &Land aquisition    \\\hline
        5 &Onground management\\\hline
      \end{tabular}\\
    \hline
    Of course, the ...            &EP Act Clearing ...      &Of course, the ...           &[uGibson Desert]        &
      \begin{tabular}{*{1}{|p{0.5cm}}{|p{6cm}}}
        \hline\hline
        \rowcolor{orange}
        \# &Subject Type      \\
        \hline
        \rowcolor{white}
        1 &Education          \\\hline
        2 &Land aquisition    \\\hline
        3 &Subject funds      \\\hline
        4 &Other              \\\hline
        5 &Restoration        \\\hline
        6 &Recovery plans     \\\hline
        7 &Subject funds      \\\hline
      \end{tabular}
  \end{tabular}
\end{table}

Best Answer

To use longtable, add this to your preamble

\usepackage{longtable}

and then replace every \begin{tabular} by \begin{longtable} and \end{tabular} by \end{longtable}.

You also need to get rid of any surrounding table environment, and push an eventual caption inside the longtable.

Related Question