7

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}
doncherry
  • 54,637

5 Answers5

9
\documentclass{book}
\pagenumbering{gobble}
\begin{document}
\chapter{abc}
blub
\newpage
blub
\end{document}
Ulrike Fischer
  • 327,261
7
\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.

mas
  • 5,949
5

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.

egreg
  • 1,121,712
3

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.

3

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

Alex
  • 31
  • 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