# List of Figures and List of Tables: How to divide into chapters with chapter headline? [duplicate]

I want my List of Figures AND List of Tables to look kinda like this:

# List of Figures

## Chapter 1: Bla bla bla

1.1 Lorem ipsum

1.2 dfgr grgr grgr

1.3 fgog gofrg afe

## Chapter 3: ROFL LOL MAO

3.1 fdef

3.2 dfd

3.4 df df d fd

You get the idea? If Chapter 2 do not contain figures, I do not want the headline of chapter 2 to be there.

I want the same for the List of Tables.

I once found something familiar on this site, but I cant find it right now. And as far as I can recall, that was only for the List of Figures

I'd be very grateful for all help!

\documentclass[a4paper, 12pt, twoside, dvipsnames,cmyk]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\listoffigures
\listoftables
\include{chapters/contents}
\end{document}


I'm using a lot of other packages, but I'm not sure if they are relevant?

• Hi and welcome, this is dependant on the class in use. The KOMA-classes scrbook and scrreprt have a simple option for that. But without more information there is nothing much to do. Nov 13, 2014 at 9:40
• I'm not using those. I'm new to LaTex, but maybe this will be of help: \documentclass[a4paper, 12pt, twoside, dvipsnames,cmyk]{report} What else do you need?
– ROLF
Nov 13, 2014 at 9:48
• Please follow the link in my first comment and add the information to the question. The button to edit is left to your name and user picture. Nov 13, 2014 at 9:52
• Done :). Anything else you need?
– ROLF
Nov 13, 2014 at 9:56
• @riddleculous listof=chapterentry Mar 29, 2016 at 17:08

You have to manually add chapters' entries you need. It's done like that:

\addcontentsline{lof}{chapter}{My chapter with Figures}
\addcontentsline{lot}{chapter}{My chapter with Tables}


so in your code:

\documentclass{report}

\begin{document}

\chapter{My chapter with Figures and Tables}
\addcontentsline{lof}{chapter}{My chapter with Figures and Tables}
\addcontentsline{lot}{chapter}{My chapter with Figures and Tables}
This chapter contains Figures and Tables

\chapter{My chapter with Tables}
\addcontentsline{lot}{chapter}{My chapter with Tables}
This chapter contains Tables

\chapter{My chapter with Figures}
\addcontentsline{lof}{chapter}{My chapter with Figures}
This chapter contains Figures

\listoftables
\listoffigures

\end{document}

• Yes, that'll work :). I combined it with some referencing and larger font: '\addcontentsline{lof}{chapter}{{\large Chapter \ref{sec: <label>}:\ \nameref{sec:<label>}}}' '\addcontentsline{lot}{chapter}{{\large Chapter \ref{sec: <label>}:\ \nameref{sec:<label>}}}' This is working, and I dont have too many chapters. However, it should be possible to do this in another way, so that I dont have to paste it in the beginning of every chapter?
– ROLF
Nov 13, 2014 at 10:49
• Maybe scrreprt class can help you. But I'm not sure. Try a search here: ftp.oleane.net/pub/CTAN/macros/latex/contrib/koma-script/doc/… Nov 13, 2014 at 11:10