1

In the following minimal example, I am using the "color" package to get a blue color for the entire document including page numbering, header, footnote, footnote mark, etc. But, the page numbers, page headers, and footnote mark symbols all come only in black color. How to get "everything" in blue color?

\documentclass{book}
\usepackage{color}
\usepackage{lipsum}
\begin{document}

\color{blue}
\pagenumbering{roman}
\tableofcontents
\vfill\eject

\pagenumbering{arabic}
\chapter{ONE}

This is a footnote in blue color\footnote{ \color{blue} blue color}
This is a second footnote\footnote{second footnote}.
\lipsum
\chapter{TWO}
\end{document}
3
  • You may need to declare color for these definitions (\ps@headings, \ps@plain, \@makefntext, \footnoterule) Jul 18, 2017 at 15:07
  • 1
    @KumareshPS no, that isn't needed Jul 18, 2017 at 15:14
  • @DavidCarlisle, Its my bad. Thanks for updating. Jul 18, 2017 at 15:20

1 Answer 1

3

The page numbers are set in the document default colour which is the colour in force at \begin{docuemnt} so just move the \color up a line.

enter image description here

\documentclass{book}
\usepackage{color}
\usepackage{lipsum}


\color{blue}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\vfill\eject

\pagenumbering{arabic}
\chapter{ONE}

This is a footnote in blue color\footnote{ \color{blue} blue color}
This is a second footnote\footnote{second footnote.}
\lipsum
\chapter{TWO}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.