Page Layoutremove lof,lot from ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
singhji0000
Posts: 1
Joined: Tue Jan 31, 2012 9:09 pm

remove lof,lot from ToC

Post by singhji0000 »

Hello,

i am making a report using miktex 2.9 version.i am facing problem with toc.
my report structure begin with
abstract
toc
lof
lot
chapter

this is the packages i am using

Code: Select all

\usepackage{fancyhdr}
\pagestyle{headings}
now first problem was i was getting content ,lof,lot in my table of content along with page numbers so i used this:

Code: Select all

\pagestyle{empty}
\renewcommand\thepage{}
\tableofcontents
\listoffigures
\newpage
\renewcommand\thepage{\arabic{page}}
\setcounter{page}{1}
\pagestyle{headings}
but even page numbers are gone, content,list of figure and list of table continue to appear in table of content :-|

and one more problem is header is displaying chapter number along with chapter name.i want to keep chapter name but dont want chapter nuumber.how to do that?

thanks

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

remove lof,lot from ToC

Post by Stefan Kottwitz »

Hi Singhji,

welcome to the board!
singhji0000 wrote: but even page numbers are gone, content,list of figure and list of table continue to appear in table of content
With the code you showed, this does not happen. If I make the code lines above compilable, the table of contents contains only the chapter header:

Code: Select all

\documentclass{report}
\usepackage{fancyhdr}
\pagestyle{headings}
\pagestyle{empty}
\renewcommand\thepage{}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\newpage
\renewcommand\thepage{\arabic{page}}
\setcounter{page}{1}
\pagestyle{headings}
\chapter{One}
\end{document}
So, the cause is somewhere in your other code, such as further loaded packages, settings, or the document class which you did not mention. For example, it's a common behavior of the memoir class, or if you load the tocbibind package without options.

Just try to provide complete information, then we could help. For example, a small compilable document allows a solution most of the time.

Stefan
LaTeX.org admin
Post Reply