Defina a opção de cabeçalho em phd-thesis-template/PhDThesisPSnPDF.cls

Defina a opção de cabeçalho em phd-thesis-template/PhDThesisPSnPDF.cls

Quero selecionar o pageStyleII em phd-thesis-template/PhDThesisPSnPDF.cls. Eu não sei como fazer isto.

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

Você poderia me ajudar nesta questão?

Atenciosamente,

Responder1

O modelo foi atualizado recentemente. Citando doLeia-me.

PhDThesisPSnPDFdefine 3 estilos de página diferentes (cabeçalho e rodapé). A definição a seguir é para twosidelayout. Para escolher um estilo de página, inclua-o nas documentclassopções: \documentclass[PageStyleI]{Classes/PhDThesisPSnPDF}. Alternativamente, o estilo da página pode ser alterado adicionando \pagestyle{PageStyleI}ou \pagestyle{PageStyleII}em thesis.tex. Nota: Usar \pagestyleo comando substituirá documentclassas opções quando usado globalmente.


Com as mudanças recentes, deve ficar mais claro onde colocar as coisas.

Muito obrigado ao mantenedor pela solução rápida.

informação relacionada