[Tex/LaTex] list of figures and page numbering

header-footertable of contents

I made a list of figures at the end of my document and i have a problem. List of figures is longer than one page and i don't want any page numbers on any of these pages.

Unfortunately comands below make page number dissapear only on the last page of the list of figures. How can i remove page numbers on every page of list of figures?

\thispagestyle{empty}
\listoffigures

Best Answer

You have to locally override the behavior of \chapter* that issues \thispagestyle{plain}.

A hack is to say

\cleardoublepage
\begingroup
\makeatletter
\let\ps@plain\ps@empty
\makeatother

\pagestyle{empty}
\listoffigures
\cleardoublepage
\endgroup

at the point where you want the list of figures.

A more abstract way is to define a command in the preamble:

\makeatletter
\newcommand{\emptypage}[1]{%
  \cleardoublepage
  \begingroup
  \let\ps@plain\ps@empty
  \pagestyle{empty}
  #1
  \cleardoublepage}
\makeatletter

and then say, for instance

\emptypage\tableofcontents

\emptypage\listoffigures