在 phd-thesis-template/PhDThesisPSnPDF.cls 中設定標題選項

在 phd-thesis-template/PhDThesisPSnPDF.cls 中設定標題選項

我想選擇 phd-thesis-template/PhDThesisPSnPDF.cls 中的 pageStyleII。我不知道怎麼做。

\RequirePackage{fancyhdr} % Define custom header

% Set Fancy Header Command is defined to Load FancyHdr after Geometry is defined
\newcommand{\setFancyHdr}{

\pagestyle{fancy}
\ifPHD@pageStyleI
% Style 1: Sets Page Number at the Top and Chapter/Section Name on LE/RO
\renewcommand{\chaptermark}[1]{\markboth{##1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1\ }}
\fancyhf{}
\fancyhead[RO]{\nouppercase \rightmark\hspace{0.25em} | 
  \hspace{0.25em} \bfseries{\thepage}}
\fancyhead[LE]{ {\bfseries\thepage} \hspace{0.25em} | 
  \hspace{0.25em} \nouppercase \leftmark}


\else
\ifPHD@pageStyleII
% Style 2: Sets Page Number at the Bottom with Chapter/Section Name on LO/RE
\renewcommand{\chaptermark}[1]{\markboth{##1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ ##1}}
\fancyhf{}
\fancyhead[RO]{\bfseries\nouppercase \rightmark}
\fancyhead[LE]{\bfseries \nouppercase \leftmark}
\fancyfoot[C]{\thepage}

您能幫我解決這個問題嗎?

此致,

答案1

該模板最近已更新。引用自自述文件

PhDThesisPSnPDF定義 3 種不同的頁面樣式(頁首和頁尾)。以下定義是針對twoside佈局的。若要選擇頁面樣式,請將其包含在documentclass選項中:\documentclass[PageStyleI]{Classes/PhDThesisPSnPDF}。或者,可以透過在 中新增\pagestyle{PageStyleI}或來變更頁面樣式。注意:全域使用時使用命令將覆蓋選項。\pagestyle{PageStyleII}thesis.tex\pagestyledocumentclass


隨著最近的變化,應該更清楚要把東西放在哪裡。

非常感謝維護者的快速修復。

相關內容