I have tried to remove all the headers before chapter 1 and it works on all of the pages but 1. I have around 10 pages before chapter 1, and page 7 adds the header.

Here is my code so far:

      \ifnum \value{secnumdepth} > 1
      \if@mainmatter % 
      \@chapapp\ \thechapter: \ %


I am using frontmatter and mainmatter. Front matter is defined on page 1 and front matter is defined in the beginning of chapter 1. I hope you can help me.

Note: What I see in the header is "0.0" and nothing more.

  • 3
    Have you tried simply adding \pagestyle{empty} or \thispagestyle{empty} at the according places? Really hard to help without code that lets us reprodce the matter.
    – Johannes_B
    Dec 1 '14 at 15:03
  • Sorry I know it can be hard, but I havent been able to make a small code example that gives the same problem. I will try your suggestions.
    – 7heViking
    Dec 1 '14 at 15:04
  • @Johannes_B \thispagestyle{empty} Works like a charm :) Thanks. If you write an answer I will accept it.
    – 7heViking
    Dec 1 '14 at 15:12
  • 1
    This seems to be a duplicate of Removing Headers, Keeping Page Numbers in the same time
    – Johannes_B
    Dec 2 '14 at 9:59

Browse other questions tagged or ask your own question.