雙邊標頭格式

雙邊標頭格式

切換為雙面格式時(使用大學文件類別)

\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}}

微量元素

\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}

在此輸入影像描述

在此輸入影像描述

相關內容