Documentation/Document Formatting/How to Set Margins and Page Layout in LaTeX
Document Formatting

How to Set Margins and Page Layout in LaTeX

The geometry package gives you complete control over page layout. Here's how to set margins for any requirement.

Set Custom Margins

Use geometry package:

\usepackage[margin=1in]{geometry}

% Or set each margin separately:
\usepackage[
  top=1in,
  bottom=1in,
  left=1.25in,
  right=1in
]{geometry}

Paper Size

Common paper sizes:

% US Letter (default in US):
\usepackage[letterpaper, margin=1in]{geometry}

% A4 (international standard):
\usepackage[a4paper, margin=2.5cm]{geometry}

% Custom size:
\usepackage[paperwidth=6in, paperheight=9in]{geometry}

Landscape Orientation

Rotate page layout:

% Entire document landscape:
\usepackage[landscape, margin=1in]{geometry}

% Just one page landscape:
\usepackage{pdflscape}

\begin{landscape}
% Wide table or figure here
\end{landscape}

💡 Tips

  • •Most journals provide their own .cls that sets margins
  • •1 inch = 2.54cm = 72pt (useful for conversions)
  • •Use showframe option to visualize margins: [margin=1in, showframe]

Try This in Bibby AI

Write LaTeX faster with AI auto-complete and instant compilation.

Start Writing Free

Related Tutorials

How to Set Margins and Page Layout in LaTeX | Bibby AI