3

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.

Segun
  • 119
  • 3
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – lockstep Nov 01 '11 at 15:13
  • 3
    None of those elements are automatically generated by the book class without adding the appropriate \tableofcontents, \listoffigures and \listoftables. Have you done this? Are each of your tables inside \begin{table} ... \end{table} environments? – Alan Munn Nov 01 '11 at 15:15
  • 1
    The first thing I would check is that \jobname.lot is being generated correctly- that's where the information for \listoftables is stored. – cmhughes Nov 01 '11 at 15:15
  • Perhaps this discussion at http://tex.stackexchange.com/questions/33193/how-to-determine-whether-a-list-of-figures-is-empty might be of interest in creating \listoffigures (or \listoftables) only when figure (or table) was used. – Werner Nov 01 '11 at 16:19

3 Answers3

12

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).

egreg
  • 1,121,712
4

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.

Mico
  • 506,678
1

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.

David
  • 11
  • 1
    How 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