Hi there,
I'm using the following document class and header style
\documentclass[12pt, a4paper, titlepage, twoside, openany]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{{\footnotesize\sffamily\itshape\rightmark}}
\fancyhead[LE]{{\footnotesize\sffamily\itshape\leftmark}}
\fancyhead[RE,RO]{\thepage}
\renewcommand{\headrulewidth}{0.0pt}
\addtolength{\evensidemargin}{1cm}
\addtolength{\voffset}{-0.4cm}
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0.0pt} % and the line
}
and I want to insert additional page numbers at the bottom of my abstract page for example, i.e. \fancyfoot[C]{\thepage}.
How can I set that for just a single page?
thanks!
General ⇒ Page numbers on certain pages
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Page numbers on certain pages
seems like I found it myself
I change the definition of \fancypagestyle{plain}
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0.0pt} % and the line
\fancyfoot[C]{\thepage}
}
and change it back to
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0.0pt} % and the line
}
after the frontmatter so that I have no numbers on the first side of proper chapters!
I change the definition of \fancypagestyle{plain}
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0.0pt} % and the line
\fancyfoot[C]{\thepage}
}
and change it back to
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0.0pt} % and the line
}
after the frontmatter so that I have no numbers on the first side of proper chapters!
Page numbers on certain pages
You may want to look into the memoir document class, which is a drop-in replacement for book and has terrific documentation.c0nny wrote:\documentclass[12pt, a4paper, titlepage, twoside, openany]{book}
...
and I want to insert additional page numbers at the bottom of my abstract page for example, i.e. \fancyfoot[C]{\thepage}.
How can I set that for just a single page?
With memoir, you can do things like this:
Code: Select all
\copypagestyle{special}{plain}
\makeevenfoot{special}{}{\thepage}{}
\makeoddfoot{special}{}{\thepage}{}
Code: Select all
\thispagestyle{special}
memoir absorbs the functionality of the fancyhdr package (and many other packages) and adds to it.
If I was doing this with fancyhdr, I would do something similar. That is, I could copy one page style to another, add a page number in the center, and then use \thispagestyle to change only the abstract to that special page style. I have little doubt that someone else will post that solution exactly. However, it's much easier to do the same thing in memoir, and you pick up so much else too.