0

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?

12
  • 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.
    – Johannes_B
    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.
    – Johannes_B
    Nov 13, 2014 at 9:52
  • Done :). Anything else you need?
    – ROLF
    Nov 13, 2014 at 9:56
  • 1
    @riddleculous listof=chapterentry
    – Johannes_B
    Mar 29, 2016 at 17:08

1 Answer 1

1

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}
2
  • 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/…
    – RicoRally
    Nov 13, 2014 at 11:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.