希望第一页的页眉较大,文档其余部分的页眉较小

希望第一页的页眉较大,文档其余部分的页眉较小

尝试为 IEEEtran 会议论文(2 列)添加页眉和页脚。目前,我能够在所有页面上获得我想要的页脚,因为我的会议要求我这样做。

但是我试图在第一页的页眉上设置 3 行。这似乎会“挤压”所有页面的页脚。我相信如果我更改边距几何形状,这将应用于所有页面,但我只希望第一页的页眉较大,其余页面的边距为标准(不大)。

\documentclass[conference]{IEEEtran}

\usepackage{amsmath} % for equation labelling
\usepackage[font=footnotesize, labelfont=bf]{caption} % make captions smaller text and make them BOLD 
\usepackage[usenames,dvipsnames]{color} 
\usepackage{enumerate} % to create fancy enumerated lists
\usepackage{fancyhdr} % for headers on each page (and customization of them)
\usepackage{float} % for allowing "floating" of figures
% \usepackage[top=1 in, bottom=1 in, left=1 in, right=1 in]{geometry} % edit individual margins
\usepackage{graphicx} % for figures in general
\usepackage{hyperref} % for "clickable" links to figures/refs/(etc.)
\usepackage{lastpage} % for page __ of __
\usepackage{multicol} % for multiple column environments (mostly used with equations)
\usepackage{mdwlist}  % tighter packed bulleted lists
\usepackage[sort&compress,numbers]{natbib} % for getting rid of extra space in references section 
\usepackage{setspace} % for line spacing between lines and also for bibliography
\usepackage{siunitx} % for scientific units (add [scientific-notation=true] for scientific notation always)
\usepackage{tabularx} % to try and get variable-spacing columns




\newcommand*\titleheader[1]{\gdef\@titleheader{#1}}


% ####################### Header and Footer Stuff
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
{
\cfoot{\thepage}
\rfoot{Copyright \textcopyright \vspace{1em} 2018}
}
%
\fancypagestyle{firstpage} %{style}
{
    \fancyhead[R]{\textbf{line 1 \\
        line2 \\
        line3}}
}




\graphicspath{{./img/}}


\hypersetup
{
    colorlinks = true,
    citecolor = black,
    linkcolor = blue, % link colour for figure, equation, + table refs
    urlcolor = blue, 
}




\begin{document}


\title{\Large\textbf{title title title}}


\author
{
    \IEEEauthorblockN{author}
    \IEEEauthorblockA{\textit{some place} \\
    %\textit{name of organization (of Aff.)}\\
    stuff \\
    stuff2}

    \and

    \IEEEauthorblockN{author}
    \IEEEauthorblockA{\textit{some place} \\
    %\textit{name of organization (of Aff.)}\\
    stuff \\
    stuff2}
}
\maketitle

\thispagestyle{firstpage}

\begin{abstract}
    \normalfont
    To be written
\end{abstract}

\begin{IEEEkeywords}
    %\normalfont
    \textit{keyword1; keyword2; keyword3}
\end{IEEEkeywords}


\section{Introduction}

main body here



\end{document}

有任何想法吗?

答案1

编辑:在代码中添加了注释,以澄清代码的含义

解决方案可以是

...
\begin{document}
\pagestyle{fancy}
\maketitle
\thispagestyle{firstpage}
...

完整的最小工作示例,无需特别担心文章空间问题,也无需完整的页眉/页脚格式:

\documentclass[conference]{IEEEtran}
\addtolength\headheight{ 2\baselineskip}% make space for your multi line header
\addtolength\headheight{-2\baselineskip}% you need to reduce text height 
                                                                 % for the same amount as you increase 
                                                                 % header height

\usepackage{fancyhdr} % for headers on each page (and customization of them)
\renewcommand{\headrulewidth}{1pt}% change to your desired width (0pt?)
\pagestyle{fancy}
{
\renewcommand{\headrulewidth}{2pt}
\cfoot{% here you can define font size in cfoot
  \thepage}
\rfoot{% here you can define font size in rfoot
    Copyright \textcopyright\ 2018}% corrected your code
\rhead{\bfseries\footnotesize % <--- here is defined font size in rhead
    line 1 \\
    line 2 \\
    line 3}
}
\fancypagestyle{firstpage}
{
\renewcommand{\headrulewidth}{2pt}
\cfoot{\thepage}
\rfoot{Copyright \textcopyright\ 2018}% corrected your code
\rhead{\bfseries\color{red}\large
    line 1 \\
    line 2 \\
    line 3}
}

\title{\Large\textbf{title title title}}
\author{
    \IEEEauthorblockN{author}
    \IEEEauthorblockA{\textit{some place} \\
    %\textit{name of organization (of Aff.)}\\
    stuff \\
    stuff2}
    \and
    \IEEEauthorblockN{author}
    \IEEEauthorblockA{\textit{some place} \\
    %\textit{name of organization (of Aff.)}\\
    stuff \\
    stuff2}
        }

\usepackage{xcolor}
\usepackage{lipsum}

\begin{document}
\pagestyle{fancy}
\maketitle
\thispagestyle{firstpage}

\begin{abstract}
    \normalfont
    To be written
\end{abstract}

%\begin{IEEEkeywords}
    %\normalfont
%    \textit{keyword1; keyword2; keyword3}
%\end{IEEEkeywords}


\section{Introduction}
\lipsum
\lipsum
\lipsum
\end{document}

第一页:

在此处输入图片描述

和其他页面:

在此处输入图片描述

附录: 您在评论中的观察并不准确。看看,使用以下定义fancyfirstpage页面样式定义您将获得什么:

\pagestyle{fancy}
{
\renewcommand{\headrulewidth}{2pt}
\cfoot{\thepage}
\rfoot{Copyright \textcopyright \vspace{1em} 2018}
\rhead{\bfseries\tiny
    line 1 \\
    line 2 \\
    line 3}
}
\fancypagestyle{firstpage}
{
\renewcommand{\headrulewidth}{2pt}
\cfoot{\thepage}
\rfoot{Copyright \textcopyright \vspace{1em} 2018}
\rhead{\bfseries\color{red}\Huge
    line 1 \\
    line 2 \\
    line 3}
}

希望现在差异(字体大小的极端差异)已经很明显了:-)

笔记:所需的字体大小留给您。我的目的只是展示一种解决您的问题的方法。我把标题设计的所有细节留给您。因此,您应该根据需要更改标题的颜色、规则、字体大小和其他内容。

相关内容