Dup Goto 📝

Fancy Headers 1

PT2/lang/latex latex 01-10 08:59:48
To Pop
21 lines, 38 words, 590 chars Wednesday 2024-01-10 08:59:48
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[OCH]{\rightmark}
\fancyhead[OLH]{}
\fancyhead[ORH]{}
\fancyhead[ECH]{\leftmark}
\fancyhead[ELH]{}
\fancyhead[ERH]{}
\fancyfoot[OCF]{}
\fancyfoot[OLF]{\mytitle}
\fancyfoot[ORF]{\thepage}
\fancyfoot[ECF]{}
\fancyfoot[ELF]{\thepage}
\fancyfoot[ERF]{\myname}
\pagestyle{fancy}
% renew so as not to capitalise, I do not like shouting in my headers!
\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}