[Tex/LaTex] Caption package in latex pushing all tables to end of document

floatspositioning

I am working on my dissertation and am having a problem with the caption/subcaption package pushing all tables (not figures) to the end of the document. I would like to use the subcaption package to have tables with multiple panels, but this is causing serious issues.

I have commented out the table requiring the use of the subcaption package so it's not being compiled. Then, I ONLY change wether the subcaption package is being loaded (by commenting out \usepackage{subcaption}). If it is loaded, tables are at the end of the document. If it IS NOT, there is no problem, tables appear where they should. Any help is very much appreciated.

Example:

\usepackage{amsmath, etc}
\usepackage{subcaption}
\usepackage[options]{hyperref}
\begin{document}
...
TEXT BEFORE TABLE
...
\begin{table}
TABLE
\end{table}
...
TEXT AFTER TABLE
...
\end{document}

To reiterate, if \usepackage{subcaption} is commented out, TABLE appears in the text, where it should. If \usepackage{subcaption} is compiled, TABLE occurs at the end of the document. NO OTHER CHANGES ARE BEING MADE. Please help! You're my only hope!

Best Answer

[Converting comments to an answer]

It may be that there is one table causing this. That is, up to some point, all tables display where they should be. However, all tables after some point just get bundled at the end. If this is the case, you may have a too-large float that causes such problems. Making more space 'available' for floats may help, for example

\renewcommand{\topfraction}{.85}
\renewcommand{\bottomfraction}{.7}
\renewcommand{\textfraction}{.15}
\renewcommand{\floatpagefraction}{.66}
\renewcommand{\dbltopfraction}{.66}
\renewcommand{\dblfloatpagefraction}{.66}

(see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floats).

Related Question