0

Is it possible to reproduce the below heading style using the memoir builtin header style utilities?

enter image description here

enter image description here

  • ...most likely. That's an answer as far as I can tell. :) – Werner Jul 7 '17 at 18:20
  • I don't quite understand the numbering scheme used – daleif Jul 7 '17 at 18:40
  • It is Chapter for the left page and Section in the right page. – lf_araujo Jul 7 '17 at 18:43
2

It is.

\documentclass{memoir}
\usepackage{lipsum}

% don't convert titles to upper case in header
\nouppercaseheads
% define what goes where in the header
% chapter into \leftmark, number shown, nothing before the
% number and a dot and space after it
\createmark{chapter}{left}{shownumber}{}{. }
% section into \rightmark, number shown, nothing before the
% number and just a space after it
\createmark{section}{right}{shownumber}{}{ }
% define new pagestyle
\makepagestyle{myheadings}
% head for even numbered pages, chapter title on the left with
% preferred font and size, center and right side of header are empty
\makeevenhead{myheadings}{\textit{\small\leftmark}}{}{}
% head for odd numbered pages, left side and center of header
% are empty, section title on the right with preferred font and size
\makeoddhead{myheadings}{}{}{\textit{\small\rightmark}}
% set pagestyle
\pagestyle{myheadings}

\begin{document}
\chapter{Introduction}
\section{Something about lipsum}
\lipsum[1-10]
\end{document}

There are also \makeevenfoot and \makeoddfoot for the footline. More details can be found in section 7.3 of the memoir manual.

  • Mike, do I have to recreate the heather again once I transition from back matter to mainmatter environment? – lf_araujo Jul 7 '17 at 23:46
  • 1
    @lf_araujo I think you meant from mainmatter to backmatter. After \backmatter chapters and section are no longer numbered by default. So there are no numbers in the header too, But besides that, they are the same font and size. – Mike Jul 7 '17 at 23:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.