Time for action – specifying margins

We shall load the geometry package and state the exact width and height of all margins.

  1. Extend the preamble of the previous example with this command:
    \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm,
    bottom=3cm, bindingoffset=1cm]{geometry}
  2. Typeset and examine the margins:
    Time for action – specifying margins

What just happened?

We loaded another package with the name geometry. This package takes care of our layout regarding the paper size, margins, and more dimensions. We chose A4 paper size, an outer margin of 3 cm, and an inner margin of just 1.5 cm, remembering that the two inner margins will be perceived as one space when the two-sided book ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.