I'm having recurrent trouble with the placement of a tables in documents. The case is when I need a table to appear within a particular section or subsection that contains little else. Often the table floats outside the section. I've tried using the [H] placement option in the float package and \FloatBarrier from the placeins package.
I can keep the table from floating down into the next section with \FloatBarrier, however I can not keep it from floating above the subsection heading that it is supposed to follow. See the attached document for an example. Sorry I can't produce a more minimal working example, but it's all the other stuff that results in the particular layout causing the problem. The problem is with table 1: 150 Initial Moves in Rock, Paper, Scissors.
Graphics, Figures & Tables ⇒ Table Placement Problem not solved by common Approaches
Table Placement Problem not solved by common Approaches
- Attachments
-
- prob_GOFmultinomial.tex
- (3.24 KiB) Downloaded 306 times
Last edited by pyrogerg on Tue Oct 25, 2011 8:34 pm, edited 1 time in total.
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Table Placement Problem not solved by common Approaches
Sometimes only a special knack does the trick. I echo only the relevant part of your code.
Note the tilde as invisible character (fixed blank space). And by the way, tables usually have their captions above.
Code: Select all
\subsection{Collect Data} % Putting the subsection here does not give the correct vertical placement.
~
\begin{table}[!ht] % These placement parameters usually help
\caption{150 Initial Moves in Rock, Paper, Scissors}
\begin{tabular}{ l c r }
\hline
rock & scissors & paper \\
\hline
63 & 51 & 36 \\
\hline
\end{tabular}
\end{table}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Table Placement Problem not solved by common Approaches

localghost wrote:Sometimes only a special knack does the trick. I echo only the relevant part of your code.Note the tilde as invisible character (fixed blank space). And by the way, tables usually have their captions above.Code: Select all
\subsection{Collect Data} % Putting the subsection here does not give the correct vertical placement. ~