Finding the solution to Setting up pdfpages with memoir? turned out not to be as simple as adding the right layout parameter as an offset.

The first finding was that if a twoside documentclass is used, pdfpages considerably misalignes the included PDF. By comparing the memoir layout parameters for oneside and twoside options (\the\<parameter>), the misalignment could quickly be determined as likely to be caused by the difference in \spinemargin, which is one of only two layout parameters that actually differ between oneside and twoside (both parameters are emphasized in the table below). The difference in \spinemargin was hence added as an offset to the pdfpages import.

However, a slight misalignment, which is also present with oneside option, remains. The figure shows the result of including a borderless, completely red-coloured PDF into a memoir class with documentclass options in the order of the table column headers; the black line is part of the typeblock's left border, visualized by the showframe package (cf. Code).

For letter, the misalignment has been found to be less than 1pt, while for a4paper it is somewhere in between 1pt and 2pt.


(1) Besides being a "good fit", is there other evidence that it is \spinemargin that causes the offset between oneside and twoside layout?
(2) What causes the remaining misalignment, and can its amount precisely be determined?

enter image description here

enter image description here






            offset=0pt 0pt,     %letter, oneside    => misaligned by .x pt

1 Answer 1


(1) Yes, there is other evidence that \spinemargin causes the offset between oneside and twoside layout. According to the memoir class documentation, \spinemargin specifies the margin for the inner edge of a double-page spread, while \oddsidemargin and \evensidemargin specify the margins for the outer edge of odd and even numbered pages, respectively. Therefore, it makes sense that \spinemargin is the cause of the misalignment when switching between oneside and twoside layout.

(2) The remaining misalignment is likely due to rounding errors when calculating the margins and offsets. It may be difficult to precisely determine the amount of misalignment, as it can depend on various factors such as the specific PDF viewer and printer settings. However, it seems that the misalignment is relatively small, less than 2pt, which should not be noticeable in most cases.

You must log in to answer this question.

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