TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a class file for my document where I have declared margins:


with the left one bigger. But I wanted odd pages to have a bigger left margin and even pages to have a bigger right margin. So I tried:


but it seems that it always returns true in a if statement. How can I do it?

share|improve this question
all the standatrd classes have a built in [twoside] option and then separate settings \@oddsidemargin and \@evensidemarginYou don't say what class you are using and I don't recognise the commands but it will have the same feature as the odd/even margin support is built into the core latex format. Traditionally odd pages have smaller left margin than even pages. – David Carlisle Feb 2 '13 at 11:53
@Brent.Longborough Your comments are an answer. – egreg Feb 2 '13 at 14:20
@egreg : Thanks for your encouragement. Ecco! – Brent.Longborough Feb 2 '13 at 15:41
up vote 8 down vote accepted

It looks as if you might be using the memoir document class, so here's an answer for that case.

\setlrmarginsandblock actually sets the margins as they would be on a recto or odd-numbered page in a document intended for two-sided printing. Thus left corresponds to the inner margin and right to the outer.

If you use the oneside class option, all pages will be laid out the same.

If you use the twoside option, then the recto pages will be laid out as you specify, and the verso (even) pages will be laid out with the margins reversed.

You should use \setlrmarginsandblock just once, in the preamble (before \begin{document}). Don't forget that you will also need to call \checkandfixthelayout to put your layout into effect.

share|improve this answer
You are right, using twoside was all I needed, so simple! Thank you! – krajol Feb 3 '13 at 14:03

You can \usepackage[inner=1cm,outer=2cm]{geometry} and set those options to whatever you like.

share|improve this answer
Is the syntax correct? – kiss my armpit Feb 2 '13 at 14:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.