答案1
使用geometry
您给出的参数,页码应该是可见的,并且文本应该转到 0.5 厘米边框。
\documentclass{report}
\usepackage{lipsum}
\usepackage[showframe,top=0.5cm, bottom=0.5cm, headsep=0pt]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\pagestyle{fancy}
\fancypagestyle{plain}{}
\begin{document}
\chapter{Introduction}
\lipsum[1-10]
\end{document}
答案2
平均能量损失
\documentclass{report}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage[letterpaper,
margin=1in,
headheight=0.5cm,
%showframe
]{geometry}
\pagestyle{myheadings}% Set default page style to user style
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\rhead{\thepage}
\begin{document}
\chapter{A chapter}
\thispagestyle{myheadings}
\lipsum[1-25]% dummy text
\end{document}