我找到了如何将页码放在页面顶部的方法,但是如何将其放在顶部中间呢?现在它位于右边缘。
\documentclass[12pt,a4paper]{report}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage[dvips]{graphicx}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{upgreek}
\usepackage{epsfig}
\usepackage{amsbsy}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{color}
\usepackage{setspace}
\usepackage{csquotes}
% Alternative geometry
\usepackage{geometry}
\geometry{left=2.5cm}
\geometry{right=1.cm}
\geometry{top=2cm}
\geometry{bottom=2cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[c]{{\thepage}}
\fancyheadoffset{0mm}
\fancyfootoffset{0mm}
\setlength{\headheight}{0pt}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{
\fancyhf{}
\rhead{\thepage}}
\begin{document}
\chapter*{\centerline{Intro}}
\label{Intro} \addtocontents{toc} {
\hbox to\textwidth{
{\bf Intro}
\hfil
\pageref{Intro}}}
\end{document}