![양면 헤더 형식](https://rvso.com/image/390894/%EC%96%91%EB%A9%B4%20%ED%97%A4%EB%8D%94%20%ED%98%95%EC%8B%9D.png)
양면형식으로 전환하는 경우(대학 문서클래스 이용)
\documentclass[12pt,phd,a4paper,twoside]{ucl_thesis}
모든 짝수 페이지의 헤더가 섹션에서 장으로 전환됩니다. 모든 페이지에 해당 섹션이 헤더로 포함되도록 하려면 어떻게 해야 합니까? 잘 모르겠지만 왜 라텍스가 갑자기 양면 형식으로 이런 작업을 수행하는지 이해가 됩니까?
감사해요.
답변1
이것을 미리 넣어두세요\begin{document}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrule}{}
\fancyhf{}
\fancyhead[LE,RO]{\textsl{\thepage}}
\fancyhead[C]{\nouppercase{\textsl\rightmark}}
MWE
\documentclass[12pt,phd,a4paper,twoside]{ucl_thesis}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrule}{}
\fancyhf{}
\fancyhead[LE,RO]{\textsl{\thepage}}
\fancyhead[C]{\nouppercase{\textsl\rightmark}}
\begin{document}
\chapter{My first chapter}
\section{My first section}
\lipsum
\section{My second section}
\lipsum
\end{document}