# 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?

\documentclass[10pt]{book}

\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}

\usepackage{blindtext}

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

\usepackage{scrextend}
\changefontsizes{10.0pt}  % Change base font size

\usepackage{lettrine}
\usepackage{fancyhdr}

\fancyfoot{}

\cfoot{} % get rid of the page number

\pagestyle{fancy}
\begin{document}
\tableofcontents
\newpage
\section*{Chapter one}
First lines.

\newpage

\section*{Chapter two}
Some text.

\newpage

\section*{Chapter two}
The end.
\end{document}

• Do you want to remove it from a select number of pages, or the entire document? – Far Zin Mar 25 '14 at 14:47
• I would like to have that my book contains horizontal line on the top of the page and over that there is a page number but not any other text. So I would like to remove the text in every page of the document. – studying Mar 25 '14 at 14:49

\pagestyle{fancy}

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