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.

I use this code:

\begin{table}[H]
\caption{Offsets 2}
\centering
\begin{tabular}{*{6}{|c}}
\hline\hline
\rowcolor{orange}
student status  &  location type  & outside region & approved outside area (ha) & delivery agent\\ \hline \hline
Current         &  Restoration    & Northwest john Province & 476.0 & 
If the position ... \\ \hline
\end{tabular}
\label{table:nonlin}
\end{table}

But the table is going outside the page. Is there any way that page don't go outside the page and shrink accoring to content and fit on page.

share|improve this question
1  
Could you please provide a MWE? A more readable indentation would be a huge help as well. –  Betohaku May 3 '13 at 6:38
add comment

1 Answer

up vote 1 down vote accepted

Yes, for example you can chenge

\begin{tabular}{*{6}{|c}}

onto

\begin{tabular}{*{6}{|p{2cm}}}

Of, course 2cm is only an example of width. This gives a paragraph, so entries are never (well, rarely) too long.

share|improve this answer
    
that was perfect , i got that. Is there any way to put the caption on the top of table and remove table 5 text from there –  user17 May 3 '13 at 14:01
    
@user17 But the caption is over (on the top of) the table. Do you mean the same table, as in your question? –  Przemysław Scherwentke May 3 '13 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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