Page LayoutOnly numbers at chapters -> every page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Kristian Moss
Posts: 2
Joined: Wed May 27, 2009 3:31 pm

Only numbers at chapters -> every page

Post by Kristian Moss »

Hey

I wanted to remove the numbers for ToC and played a bit around with the fancyhdr package. Redifining the plain style
Now I only have numbers one pages were my chapters start. I would like to have numbers on every page, at the center in the bottom. And I would like not to have a page number for ToC page??
If that is not possible, I would just like to get the default plain style back.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Only numbers at chapters -> every page

Post by localghost »

I'm not really sure if I understood right but the following works.

Code: Select all

\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage{lmodern}
\usepackage{blindtext}

\begin{document}
  \pagestyle{empty}
  \tableofcontents
  \newpage
  \pagestyle{plain}
  \addtocontents{toc}{\protect\thispagestyle{empty}}
  \blinddocument
  \blinddocument
  \blinddocument
  \blinddocument
  \blinddocument
  \blinddocument
\end{document}
If that doesn't match your ideas, show your recent efforts by means of a minimal working example (MWE) that shows your changes you have done with fancyhdr.


Best regards and welcome to the board
Thorsten
Kristian Moss
Posts: 2
Joined: Wed May 27, 2009 3:31 pm

Re: Only numbers at chapters -> every page

Post by Kristian Moss »

Hey
Thanks for the quick reply
I found that in one of my pages in the project, I had a \pagestyle{empty} instead of a \thispagestyle{empty} :oops: . And that made all the difference of course.
Post Reply