I have a trouble with changing header style of \chapter... I need to change position of page number from the right to the center.
As I know \chapter uses 'plain' style by default. Thus, I use the further code to modify it:
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\rhead{\thepage}}
But... After compilation I have two page numbers in my header at the right and at the center. Seems like in some reasons \fancyhf{} command doesn't clear the header.
Please, help me delete the number at the right position and leave only at the center.
Sincerely,
Egor