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.
  • 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

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.

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.