[Tex/LaTex] Is there way to make horizontal line on the top of the page that contains only a page number


I tried to write a book of the following style: Is there a way to modify the upper horizontal line such that it does not have the word "Sisältö" or any other text except page numbers?




%\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}

\changefontsizes{10.0pt}  % Change base font size



\cfoot{} % get rid of the page number 

\section*{Chapter one}
First lines.


\section*{Chapter two}
Some text.


\section*{Chapter two}
The end.

Best Answer

If you only want the rule and the page number in the header, with nothing in the footer, do

\fancyhf{} % clear all fields

That's all. Don't set anything else related to fancyhdr.