[Tex/LaTex] not showing figures in list of figures

table of contents

what is the reason for not showing the graphics inside a table,in the list of figures?I have used below code to insert figure inside a long table.

\includegraphics[width=0.9\linewidth]{./chapters/02/mcb.png}

\begin{center}
\refstepcounter{figure}% for proper numbering and referencing of figure and
 \small
 Figure~\thefigure:{Cabinet power distribution} box
 \end{center}

Best Answer

The list of figures shows the figures included in a figure environment (more precisely: it lists the captions given within a figure environment).

All you do with \refstepcounter{figure} is increasing the number to be used for the next call to \thefigure; there's nothing in your code that tells Latex that there is a figure there, nor how to reference it.

Related Question