Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

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}
share|improve this question

marked as duplicate by Xavier, Werner, Stefan Kottwitz May 9 '13 at 6:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  Xavier May 9 '13 at 2:50
    
Also, for the future, please add a minimal working example (MWE) that starts with \documentclass{...}, ends with \end{document} and is verified to compile / produce the error you need help with. It will be much easier for us to reproduce your situation and find out what the issue is :) –  Xavier May 9 '13 at 2:52
    
@Xavier I have MWE in the link provided above –  user17 May 9 '13 at 3:15
    
The "M" of MWE stands for "minimal"... –  Xavier May 9 '13 at 3:45
    
@Xavier , i have made that minimal –  user17 May 9 '13 at 4:16
show 1 more comment

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
Can you please make chnage here because i am not getting it to work writelatex.com/174546bmvnqt –  user17 May 9 '13 at 3:16
    
thanks buddy , that worked. One last thing if you can help me. How can i add the timeand date on the top righthand side corner in small font on first page. Like generated on bla bla –  user17 May 9 '13 at 4:57
    
@user17 Just do a search for fancyhdr on this site :) –  Xavier May 9 '13 at 4:58
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.