I am currently working on a new LaTeX layout for a scientific open-access journal. It is a twoside layout wich makes use of marginpars. The special feature is that the frontmatter has a different page layout than the mainmatter.

So I defined a new page layout for the frontmatter with \newgeometry. In the final layout some TeX files will be inserted here (imprint, foreword) as well as the TOC.

Then comes the mainmatter with the original page layout. But using \loadgeometry causes the \marginpar to be placed in the wrong position. I assume that the page break triggered by \loadgeometry causes LaTeX to miscalculate when calculating even and odd page numbers?

Do you have any ideas on how I can work around this problem?

For compiling, I am using LuaLaTeX.

Thanks in advance!

Here is my minimal working example:


%define standard geometry
\geometry{top = 20mm,left = 60mm,right = 25mm,bottom = 20mm,marginparwidth=32.5mm,headsep = \baselineskip}

%%new geometry, frontmatter only
\newgeometry{top = 20mm,left = 30mm,right = 40mm,bottom = 20mm,nomarginpar,headsep=\baselineskip}


  • The marginpar falls at page 1, so it's correctly placed on the right.
    – egreg
    Jul 30, 2019 at 12:03

1 Answer 1


Welcome to TeX SX! The typographic norm is the have marginal notes in the outer margin (which is usually larger than the inner margin, for obvious reasons), and by default LaTeX follows this rule, no matter what the margin sizes are.

To change this behaviour, just add the switch \reversemarginpar at the beginning of the main matter.

  • Thank you Bernard, this did the trick! Jul 30, 2019 at 13:42

You must log in to answer this question.

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