How do I customize the size of the output pages in the memoir class?

For example, how could I change the page size to 6x9 (while preserving the margin proportions and headers/footers I use) in the following MWE?


% customize

% headers and footers
\makepsmarks{mystyle}{\createmark{chapter}{left}{shownumber}{\@chapapp\ }{:\ }}

Here is some text.

P.S. Currently, my document has \documentclass[11pt,a4paper]{memoir} at the top--does this control the page size?

  • 2
    You could use the geometry package. – Peter Grill Dec 25 '11 at 2:32
  • 3
    Do not use geometry and memoir together, as they will fight for use of lengths. Memoir has all you need. Also keep in mind that stocksize is the whole PDF area, and trimmedsize is the finished area. Sometimes trimmed is smaller than stock. If so, you probably need to center trim within stock, using trimtop and trimedge. Margins are always measured relative to trim, not stock. – RobtA Jun 13 '15 at 18:58

Since memoir provides its own set of page layout macros, it's best to use them rather than resort to something like geometry. Also, using a4paper followed \setstocksize{297mm}{210mm} is superfluous, since a4paper has those dimensions exactly. In fact, if you choose the document class option a4paper with memoir, it executes \stockaiv, which is defined as

\newcommand*{\stockaiv} {\stockheight=297mm \stockwidth=210mm}

So, either use a4paper or \setstocksize{297mm}{210mm}, but not both.

In order to reduce the page size from 297mm x 210mm to 9in x 6in "while preserving the margin proportions and headers/footers", I would figure out the ratios between the two sizes knowing that

1mm ~  2.84526pt
1in ~ 72.26999pt

As such, the following settings are used:


% Original setup
% \setstocksize{297mm}{210mm}
% \settrimmedsize{\stockheight}{195mm}{*}
% \settypeblocksize{671.6pt}{335.8pt}{*}

% New setup
\settrimmedsize{\stockheight}{\dimexpr 6in-15mm}{*}

It kept the same proportions between the page size and the text block, but kept the trimming margins the same (15mm less than \stockwidth). The original is shown on the left, while the new is shown on the right at the same resolution (for comparison purposes):

enter image description here

  • 1
    Is \checkandfixthelayout needed for the new layout to be applied in mid-document? Also, do you change layout before or after a newpage? – Gambhiro Apr 23 '13 at 7: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.