Page number and title to headers; chapter pages to plain

This commit is contained in:
Kenneth John Odle 2023-06-24 08:31:59 -04:00
parent ddf953bd13
commit f479db71e2

View File

@ -19,31 +19,25 @@
\geometry{
paperheight=8.5in,
paperwidth=5.5in,
% heightrounded,
margin=0.5in
heightrounded,
margin=0.6in
}
% Adjust the top and bottom margins
% http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907057
\addtolength{\topmargin}{0.4in}
\addtolength{\textheight}{-0.75in}
\addtolength{\textheight}{-0.35in}
\let\footruleskip\relax % for compatibility of memoir and fancyhdr
\let\rm\rmfamily % for compatibility of memoir
\let\sl\emph % for compatibility of memoir
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\fancyhead[CE, CO]{Flatland}
\fancyhead[CE, CO]{Flatland}
%\fancyhead[LO]{\leftmark}
%\fancyhead[RE]{\thetitle}
\fancyfoot[CE,CO]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\fancyhead[EL, OR]{\thepage}
\fancyhead[RE]{\textit{Flatland:}}
\fancyhead[LO]{\textit{A Romance of Many Dimensions}}
\usepackage[]{titlesec}
\assignpagestyle{\chapter}{fancy}
\urlstyle{same}
\begin{document} % \maketitle