0

I'm using fncychap Glenn option. My problem is that in the other pages when there is a header and footer i can change the color of the page number by using this code:

\usepackage[Glenn]{fncychap}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\color{myblue}Header}
\fancyhead[RE,LO]{}
\fancyfoot[CE,CO]{\color{myblue} \leftmark}
\fancyfoot[LE,RO]{\color{myblue} \thepage}

but in the pages where there is the chap title the page number is in the default style. So how can i change the color of page number if there is no header and footer in the page.

  • 1
    Welcome to TeX.SE. Please help us help you by adding a full MWE, see tex.meta.stackexchange.com/questions/1436/welcome-to-tex-sx. – CampanIgnis Jul 6 at 21:52
  • Welcome, this is about header-footers, and has nothing to do with fncychap. Please correct the tags when you add an MWE to help us see how the headers and footers are produced in your document. – Johannes_B Jul 7 at 5:24
  • Hello johannes, thank you for your reply i edit my post can you see it again please to know what i mean – sally yamak Jul 7 at 7:51
1

The chapter pages are using a different page style called plain, which can be adjusted separately to include color:

\documentclass{book}

\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage[Glenn]{fncychap}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\color{blue}Header}
\fancyhead[RE,LO]{}
\fancyfoot[CE,CO]{\color{blue} \leftmark}
\fancyfoot[LE,RO]{\color{blue} \thepage}

\fancypagestyle{plain}{%
  \renewcommand{\headrulewidth}{0pt}%
  \fancyhf{}%
  \fancyfoot[C]{\color{blue} \thepage}%
}

\usepackage{lipsum}

\begin{document}
\chapter{title}

\lipsum
\end{document}
  • Thank you it's working!!! – sally yamak Jul 7 at 8:37

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.