I am writing a thesis using document class -book. The list of table is not generated automatically like the list of figure and table of contents. Please help me out.
3 Answers
The list of tables is generated by the command \listoftables; but like \listoffigures it's not really the list of tables: it lists all the \caption commands appearing inside table environments; so if you say
\begin{table}
\begin{tabular}{...}
...
\end{tabular}
\end{table}
nothing will appear in the list of tables.
One of the most diffuse prejudices is that a command \includegraphics can only appear inside a figure environments and often users confuse table with tabular.
\listoftables will not list tabular environments, but only those table environments that contain at least one \caption command (which might contain a tabular, but are not required to).
- 1,121,712
Do check two things: First, has the \listoftables command (should be located in the vicinity of the \listoffigures command) either been deleted or commented out (possibly by accident)? Second, do you maybe have only unnumbered table environments? If so, they won't show up in the List-of-Tables section by default.
- 506,678
If the other answers do not fix the problem (like in my case), be sure to not have empty square brackets following your \caption command like in this faulty example:
\caption[]{Description}
This goes for tables as well as for figures.
Also be sure to compile 2-3 times to allow for all references to be gathered iteratively.
- 11
-
1How does this influence the automatic generation of the List of Figures/Tables? It just sends an empty caption to those structures, but there will still be an entry in the LoF/LoT. – Werner Apr 11 '17 at 13:25
-
For my setup only the heading showed up, no entry, not even an empty one with page number. Using Texmaker 4.2, LaTeX2e <2016/03/31>, MiKTeX 2.9. – David Apr 11 '17 at 13:48
bookclass without adding the appropriate\tableofcontents,\listoffiguresand\listoftables. Have you done this? Are each of your tables inside\begin{table}...\end{table}environments? – Alan Munn Nov 01 '11 at 15:15\jobname.lotis being generated correctly- that's where the information for\listoftablesis stored. – cmhughes Nov 01 '11 at 15:15\listoffigures(or\listoftables) only whenfigure(ortable) was used. – Werner Nov 01 '11 at 16:19