I am trying to have a one sided layout for a book in memoir (that is: each page shall have the same right and left margins) but I want the header and the footer to have different margins as well: the header shall be always on the left on a smaller left margin while the page numbering, appearing in the footer, shall be on the extreme right for odd pages and extreme left for the even ones.

So far, so good, I was able to use fancyhdr (and the ifthenelse package) to mimic this behaviour. However I am not able to define a principled margins for the page numbers: what I am trying to accomplish is to have the left margin equal the right margin as if they were on a two sided layout.

Here is the code I wrote so far:

% !TEX encoding = UTF-8 Unicode

\setmainfont{Plantin MT Pro}

\newcommand{\footerfont}{\fontsize{9}{10}\selectfont\setmainfont{Founders Grotesk}}






\setstocksize{225mm}{160mm} %Finale


\title{Italic. Identità Nazionale Regionale, nuovi codici visivi di rappresentazione}
\date{} % Delete this line to display the current date

% \markboth{\thesection}{pisello}


%%% Local Variables:
%%% mode: xelatex
%%% TeX-master: t
%%% End:

And this is what it looks like: as you can see the margin on the left of the first page number is smaller than the one on the right of the number in the second page. What is a way to accomplish this? enter image description here

UPDATE: What I want is to have the red margins to have the same length (the smaller one that is on the left page) and different from the green margin, which is the text margin (this is alredy accomplished by setting the fancyheadoffset parameter)

  • 1
    you should not use fancyhdr with memoir, I'm not quire sure what it is you are trying to do. Your code is very confusing.
    – daleif
    Commented Feb 25, 2015 at 14:13
  • thanks but different margins are my problem
    – rano
    Commented Feb 25, 2015 at 14:57

1 Answer 1


This can be used as a starting point. We use a twoside setup that are then tricked into looking like a oneside layout

% just to show they are vastly different
% trick






  • I am using fancyhdr since I need to have the header and footer margins different from the ones for the text (see picture)
    – rano
    Commented Feb 25, 2015 at 14:57
  • 1
    All of that can be configured as well. I still do not understand what you are trying to do, that the images does not help much. What does those boxes have to do with everything?
    – daleif
    Commented Feb 25, 2015 at 14:58
  • the boxes are a trick to make the header rise over the margin I set with memoir. can I specify the different margins with memoir only? could you please provide a sketch of it?
    – rano
    Commented Feb 25, 2015 at 15:30
  • It is still not clear what so ever what you are attempting. So I don't know what to make a sketch of.
    – daleif
    Commented Feb 25, 2015 at 15:36
  • You can see in the picture that the header 'PREMESSA' has a smaller left margin than the text box (the same goes for the number '4' in the footer). I am using fancyhdr to specify those margins against the ones I specified for the text box with memoir
    – rano
    Commented Feb 25, 2015 at 15:50

You must log in to answer this question.

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