I use memoir class and I imitate one-sided printing with double-sided printing thanks to the command (find in the memoir manual)


The problem is that I have modified the header width with the command \makerunningwidth (see the minimal example below). On odd-numbered pages, the header ends in the fore-edge margin but I want it begins in the spine margin. To understand my problem it is easier to compile this code with PDFLaTeX.

\usepackage{xcolor, calc}

% Laying out the page
% Imitate one-sided printing but the page style can be customized

% Page style
\setlength{\headwidth}{\textwidth + \marginparsep + \marginparwidth}
  \createmark{section}{right}{shownumber}{}{. \space}

\newcommand{\sample}{Some text to experiment with page styles.}

  \chapter{My chapter}
  \section{My section}
  \sample{} \sample{} \sample{} \sample{} \sample{} \sample{} \sample{}
  \sample{} \sample{} \sample{} \sample{} \sample{} \sample{} \sample{}
  • If you have an off-centre typeblock in a one-sided page layout, you clearly cannot have a header that is of one length that pretends the typeblock is set up for a two-side page layout. The problem here is your \headwidth command: for odd pages, you need to offset it by the \marginpar stuff, I think. (Didn't test the example, and I've never fiddled with all this \makehead* stuff.)
    – jon
    May 2, 2012 at 16:35
  • Hmm, wait. The problem is --- after looking at how it ends up typeset --- that the headwidth is far too wide for your 'outer' margins. I assume this is for a thesis or something, where you only print on one side, but would still like to emulate a two-sided layout. You need to come up with a better calculation of \textwidth and \myedgewidth: the \headwidth needs to fit comfortably in that. And it may always look kind of weird given the off-centre nature of the typeblock on the page ... but that is a matter of taste.
    – jon
    May 2, 2012 at 16:39
  • @jon My document will be print on two sides: I need the symmetry betwin the headers on even and odd pages, but the typeblock must remain fixed. I have seen this kind of layout in "Code Complete 2" by Steve McConnell and in "Introduction to Algorithms 3" by Thomas H. Cormen.
    – Jouasse
    May 2, 2012 at 17:22
  • Fair enough, but I think my second comment still stands: the \headwidth is (far) too wide for your odd pages. The only solution I see is to shorten it. Also, I think, then, that the outer margin for odd pages is too small. (And of course, this 'fixed' typeblock will not match up when looking 'through' the page to the other side --- but I guess you know that.)
    – jon
    May 2, 2012 at 17:38
  • Does exist a command I can invoke to shift left the header on odd pages (the shift length will be \myegdemargin) without modifying the \headwidth?
    – Jouasse
    May 2, 2012 at 18:16

1 Answer 1


You need to change




(Though I still think this layout will look strange if it is being printed as a two-sided document.)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .