Paragraph Indents and Spacing

What separates a page that looks professional from one that does not is rarely the font. It is the room around the paragraphs: how far the first line steps in, how much air sits between two blocks, whether the left edge of a list hangs out or lines up. The same two paragraphs are set ten times over here, across two pages, so each of those numbers can be seen working on its own.

The sixth one settles how far below the top of its rectangle the first line of a block comes to rest. Get it wrong and every block on the page sits a hair out of line with its neighbours. The second page gives that line two more rules — the height of the tallest letters, or a set eighteen points with nine kept free under the last line — and then changes the letters rather than the room around them: only a hairline round each one with the inside left empty, or filled and ringed to look bolder without a bold font.

What This Example Shows

  • First-line and hanging indents, and a margin on each side.
  • Room before and after a paragraph, stated in points.
  • The last line of a justified paragraph, the first baseline, and hollow or thickened letters.

The Source Code, Complete

Nothing is left out and nothing is simplified: this is the program exactly as it runs, for the developer who uses this library. The third is the description itself: a plain list of what the page has to say, which is what the service is sent.

Read the Rust source Read the Python source Read the JSON source

The Document Itself

Open the document in English Open the document in French Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

Paragraph Indents and Spacing, first page

The Same Document in Other Languages

This document weighs 14.8 kB

Examples Near This One

Breaking an Overlong Word

A word longer than the column that holds it: the library leaves it whole, cuts it at the column's edge, or cuts it and closes the line on a hyphen.

Break Points After a Slash or a Hyphen

A justified column set four times: file paths and compounds running past the edge with no break points, wrapping where a break after a slash or a hyphen is allowed, then wherever their punctuation allows one, and last with no-break hyphens that keep each compound whole.

A Stack Laid out by Hand, One Box at a Time

A delivery slip poured into two boxes, the second taking up where the first stopped, and a poster whose picture no box can hold, each box saying what became of the stack in it.

Every example, by subject