Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question

marked as duplicate by lockstep, Kurt, ienissei, Stefan Kottwitz Nov 17 '12 at 18:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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. –  Harish Kumar 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
show 3 more comments

1 Answer 1

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
share|improve this answer
3  
I bet that \usepackage{emptypage} is easier. :-) –  egreg Nov 15 '12 at 23:55
    
I had never heard about this package before. Nice!! –  Sigur Nov 15 '12 at 23:57
    
The KOMA-classes (e.g. scrbook) offer commands and options to set the page style of this pages. The default is cleardoublepage=empty. –  Ulrike Fischer Nov 16 '12 at 8:23
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.