页眉

页眉

定义页眉, 页脚

\usepackage{fancyhdr}
\pagestyle{fancy} % 使用 fancy 代替latex 的原生的默认的格式


\lhead{}                                            % left header
\chead{}                                            % center header
\rhead{\bfseries The performance of new graduates}  % right header
\lfoot{From: K. Grant}                              % left footer
\cfoot{To: Dean A. Smith}                           % center footer
\rfoot{\thepage}                                    % right footer

\thepage

可以得到当前的页码.

可以单独指定当前页的页眉样式

\thispagestyle %如 \thispagestyle{empty}

\renewcommand{\headrulewidth}{0.4pt} % 指定页眉线的大小
\renewcommand{\footrulewidth}{0.4pt} % 指定页脚线的大小


发表评论

邮箱地址不会被公开。 必填项已用*标注