具体要求是这样的:
The proper headers (with page numbers) are required:
-The header on the first page, second page, and subsequent even-numbered pages
should read: IEEE ROBOTICS AND AUTOMATION LETTERS. PREPRINT VERSION. ACCEPTED
MONTH, YEAR [Provide the month and year in which you are submitting your final
version]
-The header on the third page and subsequent odd-numbered pages should read:
FIRSTAUTHORSURNAME et al.: SHORTTITLE
实现代码:
\documentclass[lettersize,journal]{IEEEtran}
\usepackage{lipsum} % 仅用于生成示例文本
\usepackage{fancyhdr}
\usepackage{ifthen}
\pagestyle{fancy}
\fancyhf{} % 清除所有页眉和页脚字段
\renewcommand{\headrulewidth}{0pt} % 取消页眉线
\renewcommand{\footrulewidth}{0pt} % 取消页脚线
\fancyhead[LE,RO]{%
\ifthenelse{\value{page}=1}{%
\fontsize{6.97}{}\selectfont IEEE ROBOTICS AND AUTOMATION LETTERS. PREPRINT VERSION. ACCEPTED
MONTH, YEAR \hfill \thepage%
}{%
\ifthenelse{\value{page}=2}{%
\fontsize{6.97}{}\selectfont \thepage \hfill IEEE ROBOTICS AND AUTOMATION LETTERS. PREPRINT VERSION. ACCEPTED
MONTH, YEAR%
}{%
\ifthenelse{\isodd{\value{page}}}{%
\fontsize{6.97}{}\selectfont FIRSTAUTHORSURNAME \textit{et al}.: SHORTTITLE \hfill \thepage%
}{%
\fontsize{6.97}{}\selectfont \thepage \hfill IEEE ROBOTICS AND AUTOMATION LETTERS. PREPRINT VERSION. ACCEPTED
MONTH, YEAR%
}%
}%
}%
}
\begin{document}
\title{Your title}
\author{Michael~Shell,~\IEEEmembership{Member,~IEEE,}
John~Doe,~\IEEEmembership{Fellow,~OSA,}
and~Jane~Doe,~\IEEEmembership{Life~Fellow,~IEEE}% <-this % stops a space
\thanks{
Manuscript received: Month Day, Year; Revised: Month Day, Year; Accepted: Month Day, Year.}
\thanks{
This paper was recommended for publication by
Editor FirstName A. EditorName upon evaluation of the Associate Editor and Reviewers’ comments.}
\thanks{
This work is supported ...}
\thanks{
M. Shell is with the Department of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta, GA, 30332 USA e-mail: (see http://www.michaelshell.org/contact.html).}
\thanks{
Digital Object Identifier (DOI): see top of this page.}
}
\maketitle
% !!! 这个很重要,不然第一页没有页眉
% !!! 这个很重要,不然第一页没有页眉
% !!! 这个很重要,不然第一页没有页眉
\thispagestyle{fancy}
\lipsum[1-60] % 生成20段示例文本
\end{document}