I'm setting up my thesis in memoir
class.
Questions [Those that have been answer are marked with (!) and the code has been amended to reflect the answers]:
- How do I make my headers and footers show up on the first page of the chapters? (!)
- How do I avoid the TOC title in my header? (!)
- How do I avoid double title in the header on the reference page?
- How do I add the abstract as a 'section' or 'chapter' in my header? (!)
- How do I remove total number of pages in frontmatter material (TOC and abstract) only?
I have been reading in the memoir
manual a good while, but I can't really get my head around it and it doesn't seem to contain the explanation as far as I can see.
I'm trying to avoid any usage of fancyhdr
, because of incompatibility issues.
This is the simplest version I could make, considering what might be pertinent and to give a picture of what I'm trying to do:
\documentclass[12pt,a4paper,onecolumn,twoside,final]{memoir}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{newcent}
\usepackage[utf8x]{inputenc}
\usepackage[textwidth=14cm,textheight=22cm]{geometry}
\usepackage{apacite}
% Header & footer content
\makepagestyle{HDR} % Create a new pagestyle
\aliaspagestyle{chapter}{HDR}
\makepsmarks{HDR}{\nouppercaseheads % Following code to edit the pagestyle
\createmark{chapter}{left}{shownumber}{}{\space}
\createmark{section}{right}{nonumber}{}{\space}
\clearplainmark{toc}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
\makeevenhead{HDR}{}{}{\normalfont\bfseries\rightmark\hskip.5cm\vrule\hskip.5cm\leftmark}
\makeoddhead{HDR}{\normalfont\bfseries\leftmark\hskip.5cm\vrule\hskip.5cm\rightmark}{}{}
\makeevenfoot{HDR}{\small \thepage\ / \thelastpage}{}{\miniscule Thesis, ID, Institute, Universit}
\makeoddfoot{HDR}{\miniscule Thesis, ID, Institute, University}{}{\small \thepage\ / \thelastpage}
% Title and Subtitle
\newcommand{\TIT}{A thesis}
\makeatletter
\addtodef\put@bsintoc{}{\markboth{\abstractname}{}}
\makeatother
%Frontpage Design
\newcommand{\FTP}{\begingroup
\vspace*{1cm}
\begin{center}
\Large \textsc{Jane Smith} \\
\huge\bfseries \TIT \\
\end{center}
\newpage
% Information Page
\noindent\today \\
Student ID: 00000000 \\
Supervisor: John Smith \\
Number of Characters: 000000 \\
\endgroup}
% Chapters & sections titles
\chapterstyle{hangnum}
\begin{document}
\frontmatter
\begin{titlingpage}
\FTP
\end{titlingpage}
\pagestyle{HDR}
\tableofcontents*
\begin{abstract}
\end{abstract}
\mainmatter
\chapter{One}
\section{OneOne}
\chapter{Two}
\section{TwoTwo}
\chapter{Three}
\chapter{Four}
\backmatter
\appendix
\bibliographystyle{apacite}
\bibliography{Test.bib}
\end{document}
\clearplainmark
does work. But you have to enable the pagestyle, you are missing a\pagestyle{HDR}
, otherwise the settings to have set up forHDR
is not applied. – daleif Aug 27 '14 at 10:52