Let
X
Journal

LaTeX Page Layout: Margins with geometry

SPECIMEN IDLETX-SPEC-LATE
DATE RECORDEDJun 3, 2026
READING COMPLEXITY2 min read
TAG INDEX
latexlayoutgeometrytutorial
Document Abstract

To set margins in LaTeX, load the geometry package and specify them, e.g. \usepackage[margin=1in]{geometry}. Control paper size, binding offset, and more.

To set margins in LaTeX, load the geometry package and specify them — \usepackage[margin=1in]{geometry} sets all four to one inch. It's the cleanest way to control page size, margins, binding offset, and orientation, replacing fragile manual \textwidth tweaks. Here's the full control set.

1. The one-line margin

\usepackage[margin=1in]{geometry}      % all four margins = 1 inch

Or set each side:

\usepackage[top=1in, bottom=1in, left=1.25in, right=1in]{geometry}

Units can be in, cm, mm, or pt — match your guidelines.

2. Paper size and orientation

\usepackage[a4paper]{geometry}              % or letterpaper
\usepackage[a4paper, landscape]{geometry}   % rotate the page

For a single landscape page (e.g. a wide table), use the pdflscape package's landscape environment instead, so only that page rotates.

3. Binding margins for printed theses

\usepackage[bindingoffset=0.5in, left=1in, right=1in, twoside]{geometry}

bindingoffset adds inner-edge space for binding; twoside alternates it between left and right pages. Many universities mandate this — see the thesis template.

4. Common settings reference

| Goal | geometry option | |---|---| | 1-inch margins | margin=1in | | A4 paper | a4paper | | Landscape | landscape | | Binding space | bindingoffset=0.5in | | Set text width | textwidth=6.5in | | Per-page change | \newgeometry{} / \restoregeometry |

5. Change margins for one page only

\newgeometry{margin=0.5in}
% wide content here
\restoregeometry

This gives a single page extra room — for a big figure or table — without touching the rest of the document. Pair page layout with line spacing and headers/footers for full control. Most journal classes set geometry for you, so only override when writing your own layout.

→ Adjust margins and see the layout reflow instantly in LetX.


Written by Shihab Shahriar Antor — AI Engineer & Founder of Shahriar Labs, maker of LetX.

Frequently Asked Questions

How do I set all four margins to one inch in LaTeX?

Load the geometry package with \usepackage[margin=1in]{geometry}. The single margin key sets the top, bottom, left, and right margins to the same value. To set them individually, use separate keys: \usepackage[top=1in, bottom=1in, left=1.25in, right=1in]{geometry}. geometry accepts units in inches (in), centimetres (cm), millimetres (mm), and points (pt), so use whatever your guidelines specify.

How do I add a binding margin for a printed thesis?

Use the bindingoffset key, which adds extra space on the inner edge for binding without changing the text width: \usepackage[bindingoffset=0.5in, left=1in, right=1in]{geometry}. Combine it with the twoside class option so the offset alternates between left and right pages. Many universities require a larger inner margin (often 1.5 inches total) precisely so the bound thesis remains readable near the spine.

Can I change the margins for just one page?

Yes, with \newgeometry{...} and \restoregeometry. Put \newgeometry{margin=0.5in} where you want the change (it forces a page break), add the wide content, then \restoregeometry to return to the default on the following pages. This is the standard way to give a single landscape table or a large figure more room without altering the rest of the document's layout.