# Table does not display in List of Tables

I'm including a table:

\begin{table}[htb!]
\centering
\csvautotabular{results.csv}
\caption{Results}
\end{table}


And in the top of my document, I have:

\listoffigures
\listoftables


However, all of the figures I include do display in List of Figures, but this table does not, even though it has a caption.

Edit: Here is a working example. Strangely, it works in this example, but not in my longer .tex file.

\documentclass[10pt]{article}
\usepackage [english]{babel}
\usepackage {csvsimple}
\begin{document}
\listoftables
\begin{table}[htb!]
\centering
\csvautotabular{results.csv}
\caption{Results}
\end{table}
\end{document}


where results.csv is any .csv file.

• Did you make sure to run twice? – Johannes_B Oct 16 '14 at 15:10
• Yes, running twice does not change anything. – Ryan Oct 16 '14 at 15:12
• is there an entry for \@writefile{lot} in your .aux file? – barbara beeton Oct 16 '14 at 15:18
• Yes, there is that entry there. – Ryan Oct 16 '14 at 15:18
• An example which is supposed to show the cause but doesn't is quite useless. Make a backup of your files and then start to comment out stuff till the reason is obvious. Might take a few minutes, but it is the only way to find the cause. If you don't see the cause yourself, post your minimal example. – Johannes_B Oct 16 '14 at 16:08

It turns out I was not doing anything wrong. Apparently there is a bug where this can happen.

The solution I found was to comment out all of the \include{section_file.tex} includes I had, and one-by-one uncomment them, and (doubly) compile the main .tex file. And that solves the problem!