LaTeX forum ⇒ General ⇒ LaTeX table floating problem

LaTeX specific issues not fitting into one of the other forums of this category.
praveen25488
Posts: 3
Joined: Mon Sep 25, 2017 7:35 am

LaTeX table floating problem

Table unnecessarily floats to next page. I want it to be placed where it is specified.

Stefan Kottwitz
Posts: 9373
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

In that case, simply don't use a table environment. It is for floating, captions, and labeling/referencing, and you don't use anything of that, so you can easily omit it. tabular works fine without table.

\begin{enumerate}\item\begin{tabular}{cc|c|c|c|c}    \cline{3-5}    &        & \multicolumn{3}{c|}{Course}       &                               \\ \cline{3-6}     &        & Algebra I & Geometry & Algebra II & \multicolumn{1}{c|} {Total} \\ \hline    \multicolumn{1}{|c|}{\multirow{2}{*}{Gender}} & Female & 35        & 53       & 62         & \multicolumn{1}{c|}{150}   \\ \cline{2-6}     \multicolumn{1}{|c|}{}                        & Male   & 44        & 59       & 57         & \multicolumn{1}{c|}{160}   \\ \hline    \multicolumn{2}{|c|}{Total}                            & 79        & 112      & 119        & \multicolumn{1}{c|}{310}   \\ \hline\end{tabular}...

Stefan