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.

Possible Duplicate:
How to fix table position

I'm defining a table in my document like so...

\begin{table}
 \caption{my table}
 \centering

  \begin{tabular}{c llll c c c c}
  \hline         
   Stuff & \multicolumn {1}{ c }{  } & more Stuff
  \end{tabular}
  \label{table:nonlin} 
\end{table}

The table itself is pretty big, takes up almost the entire page. I'm creating it between two blocks of text however when compiled into a pdf it appears to just "float" to the bottom of the document. Why is this happening? How do I correct it?

share|improve this question

marked as duplicate by doncherry, Seamus, lockstep, Joseph Wright Nov 11 '11 at 16:08

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.

add comment

1 Answer 1

The environment table is supposed to float so it's working as intended. Actually it's often a good practice to let LaTeX place the floats.

To control the placement of the table you can provide the environment with options. For example you can use the option htbp as in

\begin{table}[htbp]
...
\end{table}

See http://en.wikibooks.org/wiki/LaTeX/Tables#The_table_environment_-_captioning_etc for details.

share|improve this answer
2  
[htp] or [htbp], not [h] only. –  egreg Nov 5 '11 at 13:54
    
@egreg Oops! Fixed. –  N.N. Nov 5 '11 at 13:59
    
Actually LaTeX always adds tp (but not b); adding the options avoids the warning. –  egreg Nov 5 '11 at 14:01
    
Adding ! in front of the h (ie [!htp]) can try and overule LaTeX as to where the best placement for the table is. –  drezha Nov 5 '11 at 15:39
    
@drezha: The float package provides the H specifier for overriding float placement to Here. –  Werner Nov 5 '11 at 15:50
show 1 more comment

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