想要較大的首頁頁眉,文件的其餘部分需要較小的頁眉

想要較大的首頁頁眉,文件的其餘部分需要較小的頁眉

嘗試在 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}
}

希望現在差異(字體大小的極端差異)是顯而易見的:-)

筆記:想要的字體大小由您決定。我的目的只是展示一種解決你的問題的方法。標題設計的所有細節我都留給你了。因此,您應該根據需要更改標題的顏色、規則、字體大小和其他內容。

相關內容