## LaTeX forum ⇒ Text Formatting ⇒ Figures won't show in List of Figures Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Boeri4451
Posts: 5
Joined: Tue Apr 14, 2020 11:35 pm

### Figures won't show in List of Figures

Hi everyone,

I have a problem concerning the list of figures and list of tables. When I place \listoffigures and \listoftables after the \tableofcontents the tables and figures won't appear. Nevertheless, when I place the \listoffigures and \listoftables first, the figures and tables appear. Is there anyway to solve this? Here is my code:

Last edited by cgnieder on Tue May 05, 2020 8:25 am, edited 9 times in total.

Bartman
Posts: 68
Joined: Fri Jan 03, 2020 2:39 pm

If you can somehow turn your example into a minimal working example, you improve your chance of getting help.

I don't see a solution for this problem right now, but i have solutions for another problem:

You get the wrong page number when you enter the list of figures in the table of contents. You must at least insert the \clearpage command after \tableofcontents in your one-sided document so that the page number is correct.

The tocbibind package can add the list of figures and tables to the table of contents without the \clearpage and \addcontentsline commands.

Boeri4451
Posts: 5
Joined: Tue Apr 14, 2020 11:35 pm

Right now I have no idea how why the list of figures and tables only shows the title if placed after the tables of contents. The strange thing is that it does show the figures and tables if placed in front of the table of contents.

rais
Posts: 263
Joined: Sun Nov 16, 2014 8:51 pm
that sounds like you're putting \setcounter{tocdepth}{0} or smaller into the TOC.
Try adding \setcounter{tocdepth}{2} between TOC and LOF/LOT.

KR
Rainer

Boeri4451
Posts: 5
Joined: Tue Apr 14, 2020 11:35 pm
Thank you so much, it worked!