Simply add
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
to your current settings. Since, for consistency's sake this should also apply to the first page of each chapter (in ehich the plain
style is used), a redefinition of plain
will also be needed:
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\renewcommand{\headrulewidth}{0pt}
}
A complete example:
\documentclass[a4paper]{book}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\renewcommand{\headrulewidth}{0pt}
}
\begin{document}
\chapter{Test chapter one}
\lipsum[1-40]
\chapter{Test chapter two}
\lipsum[1-40]
\chapter{Test chapter three}
\lipsum[1-40]
\end{document}
Some images of some of the footers in different chapters:
Of course, activate these settings from the point in which chaters will be numbered on. Since this applies particularly for the redefinition of plain, you could conditionally make the redefinition of the footer depending on wheter you are on the \mainmatter
or not:
\makeatletter
\fancypagestyle{plain}{%
\fancyhf{}
\if@mainmatter
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\else
\fancyfoot[C]{\thepage}
\fi
\renewcommand{\headrulewidth}{0pt}
}
\makeatother
The code:
\documentclass[a4paper]{book}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\renewcommand{\headrulewidth}{0pt}
\makeatletter
\fancypagestyle{plain}{%
\fancyhf{}
\if@mainmatter
\fancyfoot[C]{\Roman{chapter}\,--\,\thepage}
\else
\fancyfoot[C]{\thepage}
\fi
\renewcommand{\headrulewidth}{0pt}
}
\makeatother
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Test chapter one}
\lipsum[1-40]
\chapter{Test chapter two}
\lipsum[1-40]
\chapter{Test chapter three}
\lipsum[1-40]
\end{document}
If you don't want to redefine plain
(even temporarily), you can redefine thebibliography
(from apacite.sty).
\documentclass[12pt]{report}
\usepackage[natbibapa]{apacite}
\usepackage{lipsum}
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[R]{\thepage}
\pagestyle{fancy}
\makeatletter
\def\thebibliography#1{%
\@ifundefined{chapter}%
{\st@rtbibsection}%
{\if@sectionbibdefault
{\@ifundefined{@mainmatterfalse}%
{\st@rtbibchapter\thispagestyle{fancy}}%
{\if@mainmatter
\st@rtbibsection
\else
\st@rtbibchapter\thispagestyle{fancy}%
\fi
}%
}%
\else
\if@sectionbib
\st@rtbibsection
\else
\st@rtbibchapter\thispagestyle{fancy}%
\fi
\fi
}%
\bibliographytypesize % e.g., to put the bibliography in \small type
\bibliographyprenote % some explanatory note before the references
\@ifundefined{APAC@metaprenote@\APAC@extra@b@citeb}%
{}% skip
{\csname APAC@metaprenote@\APAC@extra@b@citeb\endcsname}%
\list{\relax}{\labelsep=\biblabelsep
\parsep=\bibparsep
\itemsep=\bibitemsep
\leftmargin=\bibleftmargin
\itemindent=\bibindent}% changed to cope with 4th ed.
\def\newblock{\hskip .11em plus .33em minus .07em}%
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax %'
\bt@beg@thb@hook
\APACrestorebibitem
}
\makeatother
\begin{document}
\chapter{Test}
\thispagestyle{fancy} %% This works
\lipsum[1-4]
\citep{R, lme4, MCMCglmm, MASS, lmerTest, gplots, foreign, CAR, brms}
\bibliographystyle{apacite}
\bibliography{references}
\end{document}
Alternatively, you could just add
\makeatletter
\let\ps@plain=\ps@fancy
\makeatother
just before the bibliography.
Best Answer
From your code it looks like you want to color the foot rule and the word confidential, but not the page number that also appears in the footer. To color the the foot rule you want to append
\color{green}
to it. That can be dome as in the previous answer, or as below which gives roughly the same result but without knowing the definition of\footrule
. Then, you can put in whatever you like in the header and footer, so why not color it directly?This gives the footer below.