Generalexclude list of figures from table of contents

LaTeX specific issues not fitting into one of the other forums of this category.
marxt
Posts: 5
Joined: Tue Mar 25, 2008 1:11 pm

exclude list of figures from table of contents

Post by marxt »

Hello,

How can I exclude the list of figures from table of contents?

with this line
\tableofcontents
\listoffigures

I obtain a pdf in which table of content include also the list of figure as first item.

I don't want that the list of figures appear in table of contents list.
How can I do?

Thankyou

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

exclude list of figures from table of contents

Post by Stefan Kottwitz »

Hi marxt,

which documentclass do you use? Can you provida a minimal working example?
With this code:

Code: Select all

\documentclass[a4paper,10pt]{book}
\begin{document}
\tableofcontents
\listoffigures
\chapter{One}
\end{document}
that behaviour is not obtained.

Stefan
marxt
Posts: 5
Joined: Tue Mar 25, 2008 1:11 pm

Re: exclude list of figures from table of contents

Post by marxt »

I use this dovumentclass

\documentclass[12pt,a4paper,oneside,openright]{report}

the only way to avoid this behaviour is the use of documentclass{book},
or exist another way with documentclass{report}???
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: exclude list of figures from table of contents

Post by Stefan Kottwitz »

Even with your document class line I don't get that behaviour. Other code (maybe inside a package you are using) should be responsible for it. If you posted a minimal working example (see link above for explanation), I could possibly find it. At least one should see your preamble here.

Stefan
marxt
Posts: 5
Joined: Tue Mar 25, 2008 1:11 pm

exclude list of figures from table of contents

Post by marxt »

this is my preamble:

Code: Select all

\renewcommand{\headrulewidth}{0.5pt}
\hoffset=-15mm
\headheight=15pt
\textwidth=140mm
\headsep=5mm
\voffset=-5mm
\textheight=240mm
\evensidemargin=25mm
\oddsidemargin=25mm

\begin{document}

\pagenumbering{roman}
\setcounter{page}{1}
\setcounter{tocdepth}{3} 
\setcounter{secnumdepth}{3} 

\tableofcontents
\listoffigures

\cleardoublepage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{One}
\chapter{two}
\chapter{three}

\input {biblio}
\end{document}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

exclude list of figures from table of contents

Post by gmedina »

As Stefan_K has mentioned, the standard behaviour is not to include the list of figures in the Table of Contents, so you must be using some package that changes this behaviour.

Unfortunately, your last post does not contain vital information of your document's preamble (the list of loaded packages) and without this information all we can do is guess.

If you are loading the tocbibind package, then the list of figures will be included in the ToC. Search for this line in your preamble

Code: Select all

\usepackage{tocbibind}
If present, simply delete it or use

Code: Select all

\usepackage[notlof]{tocbibind}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
marxt
Posts: 5
Joined: Tue Mar 25, 2008 1:11 pm

Re: exclude list of figures from table of contents

Post by marxt »

Thanks!!! :D :D

the problem was caused by the package 2tocbibind".
dem
Posts: 2
Joined: Mon Apr 27, 2009 3:38 am

Re: exclude list of figures from table of contents

Post by dem »

Hey! I am having the same problem. My table of contents includes the list of tables and the list of figures. Does anybody has an idea of why?

here is my preface

\documentclass[12pt, final]{amsbook}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{setspace, verbatim}
\usepackage[final]{pdfpages}
\usepackage{fullpage}
\usepackage{multirow}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\newcommand{\separate}{\medskip}
\renewcommand\contentsname{Table of Contents}

%\doublespace
\setcounter{tocdepth}{4}


\title{...}
\author{...}
\pagenumbering{roman}

\begin{document}
\begin{abstract}
...
\end{abstract}

\maketitle
\thanks{...}

\tableofcontents
\listoftables
\listoffigures



\doublespace
\cleardoublepage
\section[Introduction]{Introduction}
\pagenumbering{arabic}
\setcounter{page}{1}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

exclude list of figures from table of contents

Post by Stefan Kottwitz »

Hi dem,

welcome to the board!
dem wrote:My table of contents includes the list of tables and the list of figures. Does anybody has an idea of why?
that's the standard behavior of the amsbook class. If you don't need to meet the AMS requirements you could use a standard class like the book class or for instance scrbook. If you want to use amsbook you would have to redefine something or find a workaround. That's of cause possible but later could occur another problem with a special ams class behavior...

Stefan
LaTeX.org admin
dem
Posts: 2
Joined: Mon Apr 27, 2009 3:38 am

Re: exclude list of figures from table of contents

Post by dem »

Thank you Stefan_K for your response!
This was my first serious work in Latex, and i think is too late to change the class now. but In the future i will try other classes. In the meanwhile, I think that I will edit the .toc file directly, before creating the pdf file.
thanks!
dem
Post Reply