当我编译我的项目时,页眉会出现在每一页上,但第一页除外 - 标题页。这是我的代码
\documentclass[a4paper, sigconf]{acmart}
\usepackage{adjustbox,lipsum}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{amsmath}
\usepackage{fancyhdr}
% Copyright
%\setcopyright{none}
\setcopyright{acmcopyright}
%\setcopyright{acmlicensed}
%\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}
\pagestyle{fancy}
\lhead{Late-Breaking Results, Demonstration and Theory, Opinion \& Reflection Paper}
\rhead{UMAP'17, July 9-12, 2017, Bratislava, Slovakia}
\cfoot{\thepage}
\settopmatter{printacmref=false}
\acmConference[UMAP'17]{Adjunct, July 09-12}{Adjunct, July 09-12, 2017}{Bratislava, Slovakia}
\acmISBN{978-1-4503-5067-9/17/07}
\acmDOI{10.1145/3099023.3099063}
\begin{document}
bla bla
答案1
如果你不使用\maketitle
,你可以添加
\AtBeginDocument{\thispagestyle{fancy}}
在您的序言中将fancy
页面样式应用于首页。首页通常具有plain
页面样式。
如果你正在使用\maketitle
,你可以添加
\let\oldmaketitle\maketitle
\renewcommand{\maketitle}{%
\oldmaketitle%
\thispagestyle{fancy}}
到你的序言中,它将插入fancy
页面样式后调用,再次纠正与标题页相关的\maketitle
(传统)页面样式的使用。plain