8

I want to make a book which has the following specifications for margins for odd and even pages.

enter image description here

How I can do this in letter paper?

  • I don't know why to use different inner margins. But good question. – Sigur Jan 15 '14 at 17:24
  • 1
    \setlength\oddsidemargin {0.03in}\setlength\evensidemargin {-0.03in} – Steven B. Segletes Jan 15 '14 at 17:25
  • @Sigur different odd/even margins are used when the double-sided material must be bound, leaving some room for stapling. – Steven B. Segletes Jan 15 '14 at 17:25
  • @StevenB.Segletes, OK. But if you print on both sides and see trough the light the text area will not match!! – Sigur Jan 15 '14 at 17:27
  • 1
    @ThorstenDonig On a double-sided printout, the right margin of the front is the left margin of the backside. If I were to grab a text area on the front of a page and drag it leftward 1 cm, then I would have to drag the text on the backside 1cm to the right in order for the text areas to "overlap" (in a bit-plane sense of the word). This is what \oddsidemargin and \evensidemargin allow one to do... they shift the text on the page; they do not grow both margins by the specified amount. – Steven B. Segletes Jan 15 '14 at 18:48
5

This uses geometry to define the paper and set the average margins of each page. Then, the horizontal margins are offset for even and odd pages to get from the average to the target margin. For the vertical margins, I used Heiko's answer at Shift Odd Page in Duplex Print to shift the margin downward on odd pages.

\documentclass[twoside]{article}
% DEFINE PAPER
\usepackage[letterpaper, portrait]{geometry}
\usepackage{lipsum}
%SET AVERAGE MARGIN
\geometry{
left={3.25cm},
right={3.25cm},
top={3.5cm},
bottom={3cm},
}
%SHIFT HORIZONTAL MARGIN ON EVEN/ODD PAGES
  \addtolength\oddsidemargin {0.75cm}
  \addtolength\evensidemargin {-1.25cm}
%SHIFT VERTICAL MARGIN ON ODD PAGES, BASED ON HEIKO'S ANSWER:
%https://tex.stackexchange.com/questions/79688/shift-odd-page-in-duplex-print/79708#79708
\usepackage{atbegshi}
\AtBeginShipout{%
  \ifodd\value{page}%
    \edef\mytemp{%
      \ht\AtBeginShipoutBox=\the\ht\AtBeginShipoutBox\relax
      \dp\AtBeginShipoutBox=\the\dp\AtBeginShipoutBox\relax
    }%
    \sbox\AtBeginShipoutBox{%
      \raisebox{-0.5cm}{\usebox\AtBeginShipoutBox}%
    }%
    \mytemp
  \fi
}
\begin{document}
\lipsum[1-20]
\end{document}
  • How to align two-sided margins like this if documentclass is report? @ Steven B. Segletes – Shahnawaz Ahmad Mar 11 '17 at 18:16

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.