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.

I have a problem with page numbering in LaTeX. I don't want any page number in my document so I used \pagestyle{empty} but every time when I start a new chapter I get a page number on the bottom center of the page with the chapter's title. What should I do to remove those page numbers?

My document class looks like this:

\documentclass[12pt, a4paper]{book}
share|improve this question

migrated from stackoverflow.com Aug 29 '11 at 13:09

This question came from our site for professional and enthusiast programmers.

    
See also How to suppress the page number‌​. –  Stefan Kottwitz Aug 29 '11 at 16:48
    
@Stephen: American spelling doesn't need to be corrected ;) –  doncherry Nov 28 '11 at 21:37
    
Welcome to TeX.sx! Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  doncherry Nov 28 '11 at 21:37
    
@doncherry: Ups! Ok, when editing I just changed everything in the way I would write it (BE) and did not think about it possibly being right in AE. If it had only been center vs. centre I would not have edited it, of course. But thanks for pointing out, I'll regard it next time. –  Stephen Nov 30 '11 at 18:54
    
another question on same topic: how to remove page numbers from first page of chapters –  barbara beeton May 18 '13 at 12:41

5 Answers 5

I think the best way is to change the used pagestyle like this:

\usepackage[automark,headsepline]{scrpage2}

\renewpagestyle{plain}{
(0pt,0pt)
{}
{}
{}
(0pt,0pt)
}{
(0pt,0pt)
{} 
{} 
{}
(0pt,0pt)
}

take a look at this document: ftp://ftp.dante.de/pub/tex/macros/latex/contrib/koma-script/scrguide.pdf

share|improve this answer
2  
though no one voted for this answer but I think redefine the plain page style is the best way to go. Having thispagestyle manually on the start of every chapter is not practical. Modify internal macros like \ps@plain should not be advocated unless it is absolutely necessary. \pagenumbering{gobble} has the side effect of reseting page numbers. –  Yan Zhou Aug 30 '11 at 15:21
\documentclass{book}
\pagenumbering{gobble}
\begin{document}
\chapter{abc}
blub
\newpage
blub
\end{document}
share|improve this answer

The "cleanest" solution is to say

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

in the document's preamble. On the other hand, I would normally advise against having no page numbers, except for very specific applications.

share|improve this answer
\pagestyle{empty}

at the start of the document and

\thispagestyle{empty}

at the start of each new chapter/section/... should suppress page numbering, other than for part.

To remove all page numbering it may be simpler to

\usepackage{nopageno} 

as this makes \pagestyle{plain} have the same effect as \pagestyle{empty} thus removing all the page numbering without having to specify it for every section.

share|improve this answer

If I remember correctly, this should work:

\chapter{blabla}
\thispagestyle{empty}

(I can't test it on this pc, sorry.)

However I'm sure there are cleaner solutions. One is to use memoir, which allows you to (relatively) easily customize the style first page of a chapter.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.