Selectively Remove the Header and Have the Page Number Only Appear at the Bottom of the Page

fancyhdrheader-footerpagepage-numbering

I am working on a document in which I make use of a header where the header displays the page number at the top of the page. There are, however, a small number of instances where I would like the header to disappear and the page number alone appear at the bottom of the page.

The following MWE

\documentclass[openany]{book}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}

\fancyhf{}
\pagestyle{fancyplain}
\renewcommand{\headrulewidth}{0pt}

\begin{document}
\LARGE

\lhead[{\emph{{\Large{\thepage}}}}]{}
\chead[{\emph{{\Large{ }}}}]{{\emph{\Large{ }}}} \rhead[{}]{{\emph{{\Large{\thepage}}}}}


\chapter*{CHAPTER 1}
\lipsum[1]
    
\chapter*{CHAPTER 2}
\lipsum[1]

\chapter*{CHAPTER 3}
\lipsum[1]
\end{document}

produces the output

enter image description here

enter image description here

How may I, for example, make the header disappear on the first page and have the page number (1, in this case) appear at the bottom of the page? I would like to have the flexibility of selectively doing this at other pages in the actual document as well.

Best Answer

I erroneously thought you wanted the special pagestyle (which is the standard pagestyle 'plain') on the first page of all chapters.

I now made a special page style 'nohead' to get what you want, and then you use \thispagestyle{nohead}.

I also changed the syntax to use the modern commands, and please, don't use \pagestyle{fancyplain}, this is deprecated. I also removed some unnecessary braces.

\documentclass[openany]{book}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}

\fancyhf{}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
% definitions for \pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\emph{\Large \thepage}}
% Same for \pagestyle{plain} - used for first chapter pages.
\fancypagestyle{plain}{
  \fancyhf{}
  \fancyhead[LE,RO]{\emph{\Large \thepage}}
}
\fancypagestyle{nohead}{
  \fancyhf{}
  \fancyfoot[C]{\emph{\Large \thepage}}
}

\begin{document}
\LARGE

\chapter*{CHAPTER 1}
\thispagestyle{nohead}
\lipsum[1]
    
\chapter*{CHAPTER 2}
\lipsum[1]

\chapter*{CHAPTER 3}
\lipsum[1]
\end{document}

enter image description here

Related Question