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

テンプレートは最近更新されました。README

PhDThesisPSnPDF3 つの異なるページ スタイル (ヘッダーとフッター) を定義します。次の定義はtwosideレイアウト用です。ページ スタイルを選択するには、documentclassオプションに含めます。または、またはを追加して\documentclass[PageStyleI]{Classes/PhDThesisPSnPDF}ページ スタイルを変更することもできます。注:コマンドを使用すると、グローバルに使用するとオプションが上書きされます。\pagestyle{PageStyleI}\pagestyle{PageStyleII}thesis.tex\pagestyledocumentclass


最近の変更により、どこに物を置くべきかがより明確になるはずです。

迅速な修正をしてくださったメンテナーに感謝します。

関連情報