Is it possible to create a list of all the figures at the end of a document (this I can do) and make it appear in the table of contents?
So in the the table of content there will be a line saying List of figures ... 19
for example?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIs it possible to create a list of all the figures at the end of a document (this I can do) and make it appear in the table of contents?
So in the the table of content there will be a line saying List of figures ... 19
for example?
The List of Figures is produced with \listoffigures
; you have to manually add it to the table of contents, so it should be preceded by \cleardoublepage
in order to ensure that the page reference is correct. Uncomment the \phantomsection
line if you're using hyperref
:
\cleardoublepage
% \phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
tocbibind
package (or using special class faetures) because the LoF shouldn't be always preceded by a page break if one uses the article
class.
\listfigurename
, so that you can change its meaning as outlined in the question which lockstep pointed to.
article
) - you'll need to replace {chapter}
with {section}
or something similar.
Sep 13, 2017 at 18:08
This answer depends on your document class and some related packages.
tocbibind
listof=totoc
.\addcontentsline
\listoffigures
creates an entry in the table of contents.There's a really simple way to do this. Maybe the last comment meant that, but I'm not sure.
Change the name of \listofigures
by using \renewcommand\listfigurename{}
. So you can easy use \section{Abbildungsverzeichnis}
to insert the list in your table of contents.
report
prints \listoffigures
as a \chapter*
, not a \section
. Moreover, your approach will provide a numbered section (not common with the LoF/LoT/ToC front matter). Finally, even if you remove \listfigurename
, you'll be setting a sectional unit twice with your approach.