![¿Hay alguna manera de hacer una línea horizontal en la parte superior de la página que contenga solo un número de página?](https://rvso.com/image/286959/%C2%BFHay%20alguna%20manera%20de%20hacer%20una%20l%C3%ADnea%20horizontal%20en%20la%20parte%20superior%20de%20la%20p%C3%A1gina%20que%20contenga%20solo%20un%20n%C3%BAmero%20de%20p%C3%A1gina%3F.png)
Intenté escribir un libro con el siguiente estilo: ¿Hay alguna forma de modificar la línea horizontal superior para que no tenga la palabra "Sisältö" ni ningún otro texto excepto los números de página?
\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}
\fancyhead[LE,RO]{\thepage}
\fancyfoot{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\cfoot{} % get rid of the page number
\linespread{1.3}
\vbadness=20000
\pagestyle{fancy}
\begin{document}
\tableofcontents
\newpage
\section*{Chapter one}
\addcontentsline{toc}{section}{beginning}
First lines.
\newpage
\section*{Chapter two}
\addcontentsline{toc}{section}{somewhere}
Some text.
\newpage
\section*{Chapter two}
\addcontentsline{toc}{section}{end}
The end.
\end{document}
Respuesta1
Si solo desea la regla y el número de página en el encabezado, sin nada en el pie de página, haga
\pagestyle{fancy}
\fancyhf{} % clear all fields
\fancyhead[RO,LE]{\thepage}
Eso es todo. No configures nada más relacionado con fancyhdr
.