1

Possible Duplicate:
How to remove headers and footers for pages between chapters?

I use in my document

\tableofcontents

but I got two pages.In the first I have the table of contents and the second page is empty and have only the head where it is written CONTENTS. is it standard?

enter image description here

\documentclass[12pt,a4paper,twoside,openright]{book}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian,english]{babel}

\renewcommand{\rmdefault}{pplx} %setta il carattere

\usepackage[margin=3.0cm,bindingoffset=0.5cm]{geometry}
\usepackage{setspace} %setta l'interlinea a 1,5
\onehalfspacing

\usepackage{graphicx} %pacchetto immagini
\usepackage{lipsum}
\usepackage{microtype}
\usepackage{eulervm} %paccchetto testo formule

%-------------------------------
\usepackage{fancyhdr}
\newcommand{\changefont}{%
    \fontsize{10}{11}\selectfont
}
\fancyhf{}
\fancyhead[RE,LO]{\changefont \slshape \leftmark}
\fancyfoot[C]{\changefont \thepage}
\pagestyle{fancy}
%-------------------------------

%------------------------------------------------------------------
\newcommand{\blankpage}{\newpage\null\thispagestyle{empty}\newpage} %comando pagina vuota
%------------------------------------------------------------------    


\begin{document}

    \frontmatter
    \input{parti/frontmatter/frontespizio}
    \blankpage
    \input{parti/frontmatter/dedica}
    \blankpage
    \input{parti/frontmatter/abstract}
    \blankpage
    \input{parti/frontmatter/ringraziamenti}
    \blankpage

    \renewcommand\contentsname{Indice}
    \tableofcontents
    \addcontentsline{toc}{chapter}{Indice}
    \renewcommand\listfigurename{Lista delle Figure}
    \listoffigures
    \addcontentsline{toc}{chapter}{Lista delle Figure}
    \renewcommand\listtablename{Lista delle Tabelle}
    \listoftables
    \addcontentsline{toc}{chapter}{Lista delle Tabelle}

    \mainmatter
    \input{parti/mainmatter/chapter_1}

\end{document}
Mazzy
  • 7,642
  • I would the next page cleared. What I don't want is the heading. How can I remove it in the second page? – Mazzy Nov 15 '12 at 22:45
  • Please provide a complete MWE with details. –  Nov 15 '12 at 22:48
  • What I mean is to remove pagestyle in the second page of tableofcontents. I don't know how to provide a MWE – Mazzy Nov 15 '12 at 22:54
  • @HarishKumar I posted an image t0 show you what I mean. as you can see, the second page have the head.how can i remove it? – Mazzy Nov 15 '12 at 23:39
  • @Mazzy, please, try my answer below. Copy and paste the code in the preamble. – Sigur Nov 15 '12 at 23:45
  • posted all my code – Mazzy Nov 15 '12 at 23:53
  • Don't use the openright option. – Masroor Nov 16 '12 at 02:55
  • @HarishKumar: \cleardoublepage is not issued after \tableofcontents but (in this case) by \listoffigures. Your {\let\cleardoublepage\clearpage \tableofcontents} will not suppress pages after the table of contents, only empty pages before. – Ulrike Fischer Nov 16 '12 at 08:19

1 Answers1

0

You can use this to remove header/footer on blank pages.

\makeatletter
\def\cleardoublepage{%
   \clearpage
   \if@twoside \ifodd\c@page
                  \else \null
                \thispagestyle{empty}
                \newpage
               \fi
   \fi
}
\makeatother
Sigur
  • 37,330