
제목 페이지에 바닥글/머리글을 만들려고 한 시간 중 가장 많은 시간을 보냈는데 너무 답답해서 도움을 주셔서 감사합니다.
상단에는 대학 이름이, 하단에는 지도교수가 있으면 됩니다. 다양한 시도를 해봤지만 효과가 있었던 유일한 방법은 {empty}
머리글과 바닥글로 스타일을 재정의하는 것뿐이었습니다. 그런데 다음 페이지에서 추상 단락을 만들려고 하면 거기에 동일한 머리글과 바닥글이 삽입됩니다. 추상 \thispagestyle{empty}
도 사용하기 때문이라고 생각하지만 재정의하는 방법을 모르겠습니다. 도움을 주시면 감사하겠습니다.
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{fancyhdr}
\pagestyle{plain}
\fancyhf{}
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
\renewcommand{\footrulewidth}{\iffloatpage{0pt}{0.4pt}}
\fancyhead[L]{\iffloatpage{}{University}}
\fancyfoot[C]{\iffloatpage{}{Supervisor}}
\begin{document}
\title{\textbf{Title here}}
\author{My name}
\maketitle
\thispagestyle{fancy}
\newpage
\begin{abstract}
Abstract goes here....
\end{abstract}
\end{document}
답변1
나는 페이지 머리글과 바닥글을 조작하는 것보다 사용자 정의 제목 페이지를 만드는 것이 더 적합하다고 생각합니다.
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\begin{document}
\begin{titlepage}
University
\vfill
\begin{center}
{\LARGE\bfseries Title here \bigbreak}
{\large My name \medbreak}
\today
\end{center}
\vfill
Supervisor
\end{titlepage}
\begin{abstract}
Abstract goes here....
\end{abstract}
\end{document}
답변2
report
정확하게 말씀하신 대로 제목이 있는 페이지의 수업 에서 사용되는 페이지 스타일은 입니다 empty
. 를 사용하여 이를 재정의할 수 있습니다 \fancypagestyle{empty}{....}
. 이러한 효과를 제목 페이지에만 제한하려면 서문이 아닌 문서 본문에 명령을 넣고 제목 페이지 자체와 함께 그룹으로 묶어야 합니다 \bgroup...\egroup
.
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{fancyhdr}
\begin{document}
\bgroup
\fancypagestyle{empty}{\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[L]{University}
\fancyfoot[C]{Supervisor}}
\title{\textbf{Title here}}
\author{My name}
\maketitle
\newpage
\egroup
\begin{abstract}
Abstract goes here....
\end{abstract}
Text.
\end{document}