큰 첫 번째 페이지 헤더를 원하고 문서의 나머지 부분은 더 작은 헤더를 원함

큰 첫 번째 페이지 헤더를 원하고 문서의 나머지 부분은 더 작은 헤더를 원함

IEEEtran 컨퍼런스 문서(2열 1)에 머리글과 바닥글을 추가하려고 합니다. 현재는 회의에서 요구하는 대로 모든 페이지에 원하는 바닥글을 표시할 수 있습니다.

그러나 첫 번째 페이지 헤더에 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}
}

이제 차이(글꼴 크기의 극단적인 차이로 인해)가 확실히 드러났으면 좋겠습니다. :-)

메모:원하는 글꼴 크기는 귀하에게 달려 있습니다. 내 의도는 문제를 해결하는 방법(방법)을 보여주는 것뿐이었습니다. 헤더 디자인의 모든 세부 사항은 내가 당신에게 맡겼습니다. 따라서 헤더의 색상, 규칙, 글꼴 크기 및 기타 내용을 원하는 대로 변경해야 합니다.

관련 정보