I want to position page numbers in my document in top-right corner. I managed to do so using fancyhdr
(see below).
\usepackage{fancyhdr}
\hypersetup{%
pdfborder = {0 0 0}
}
\renewcommand*{\headrulewidth}{0pt}
\fancyhf{}
\rhead{\thepage}
\pagestyle{fancy}
Everything works fine, except page number on the page where I have table of contents is centered at the bottom of that page.
Does anyone know how to fix that?
Best Answer
I believe you need to edit the
plain
settings. For example, adding the following to the preamble may helpNote that in the
fancyhdr
documentation it says thatTherefore, this includes pages like the
Table of Contents
.