Widows, orphans and the page breaks that spoil a book

A widow is the last line of a paragraph stranded alone at the top of a page. An orphan is the first line of a paragraph left alone at the bottom. Both are bad breaks, and so are a heading at the foot of a page, a split table and a broken code block. Every one of them is fixed the same way: give the typesetter permission to move the break, or edit the text until the break lands somewhere harmless.

Nobody reads a page and thinks "that is a widow". They think the book looks amateur, and they cannot say why. That is what makes bad breaks worth fixing: the cost is invisible and it is paid on every page.

The names, settled

The two terms get swapped constantly. The mnemonic that sticks: an orphan is alone at the start, a widow is alone at the end — an orphan has no past, a widow has no future.

FaultWhat you seeWhy it reads badly
WidowLast line of a paragraph alone at the top of a pageThe page opens with a fragment of something you already finished reading
OrphanFirst line of a paragraph alone at the foot of a pageThe page ends by starting something
RuntA last line holding a single short wordA whole line of white space for four letters
Stranded headingA heading at the foot of a page, its section overleafThe heading promises content the page does not have
Split tableRows continuing overleaf with no header rowColumns become unlabelled numbers
Broken code blockA fenced block cut across a pageThe reader loses indentation and context at once

Which of these to actually care about

In descending order of how much a reader notices, and it is not the order you would guess:

  1. A heading at the foot of a page. The worst of the set, and the easiest to spot. Fix every one.
  2. A table whose header row does not repeat. The reader now has a grid of numbers with no idea what the columns are. Fix every one.
  3. A code block split mid-block. In a technical book, this is the fault readers write in about. Fix where you can — a block longer than a page cannot be fixed, only placed.
  4. A widow. Worth fixing, especially at a chapter opening where the eye lands hardest.
  5. An orphan. Marginally less noticeable than a widow, because a reader turning the page gets the rest of it immediately.
  6. A runt. A polish-pass concern. Chase these last, and only in a book you are printing.

The one place to hold a higher standard is the first spread of each chapter. Chapter openings are where readers form their impression of the whole book, and a stranded line on page one of chapter one costs more than the same line on page 143.

The three fixes, in the order to try them

Let the typesetter move the break. Most bad breaks are fixed by rules, not by hand: keep a heading with the paragraph after it, keep the last two lines of a paragraph together, repeat a table header after a break, keep a fenced block whole where it fits. In CSS these are break-after: avoid, widows, orphans and break-inside: avoid, and browser support for the middle two is patchy — which is a real part of why printing from a browser preview gives you pages nobody chose.

Change the setting. A widow that will not go away is often telling you the page is too full. A point of line height, two points of bottom margin, or one line fewer per page will resolve dozens of bad breaks at once, everywhere in the book, for one change. This is the highest-leverage fix and the one people reach for last.

Edit the text. The oldest fix in publishing and still the best one for the last few: cut or add a handful of words in the paragraph above so the line count changes. A sentence trimmed by three words pulls the whole paragraph up a line. Copy editors have been quietly doing this for a century, and the reader never knows.

Why this is hard in most Markdown tools

Bad breaks are only findable by looking at pages. A scrolling preview with a dashed line across it is not pages — it is a guess at where pages might fall, drawn by something that is not doing the pagination. So the loop becomes: export, open the PDF, scroll it, find the strays, go back, edit, export again. Three or four rounds of that and most people stop caring, which is exactly how a book ends up with forty of them.

The loop is the problem, not the skill. A preview that paginates with the same rules the export uses turns the check into something you do while writing: what breaks on page 7 in front of you is what breaks on page 7 in the file. bukpress keeps headings with their sections, repeats a table's header row across a break, and holds code blocks whole where they fit — so what is left to fix by hand is the handful of lines that genuinely need a human.

A pass worth doing before you export

  • Look at every chapter opening first. These matter most and there are few of them.
  • Scan for headings sitting in the bottom fifth of a page.
  • Check every table that crosses a break has its header on both sides.
  • Check every code block. Long ones may need to move, not shrink.
  • Then look at paragraph ends: any single line alone at the top or bottom.
  • If there are more than a dozen, change the line height or margins rather than fixing them one by one.

And then stop. Perfect pagination is not the goal; a book nobody can point at is. Once the headings, tables and code are behaving, the remaining widows are a matter of taste, and readers who would notice them are the same readers who know how much work they are.

None of this applies to an EPUB, incidentally. A reflowable file repaginates on the reader's device at their type size, so there is no page for a line to be stranded on and no break for you to control — which is the deeper difference between the two formats. Bad breaks are a print problem, and a PDF is print.

Read next

Design · 5 min read

Book typography for people who are not typographers

Most of the gap between an amateur page and a professional one comes down to six things: line length, type size, line spacing, margins, how many typefaces you use, and whether the heading sizes form a clear hierarchy. None of them require taste to get right — they have known good ranges.

Read it
How-to · 5 min read

How to control page breaks in Markdown

Markdown has no page break because it describes structure, not pages — so every method is really an instruction to whatever renders it. The three that work are a raw HTML div with a CSS page-break rule, a LaTeX \newpage command through Pandoc, or a renderer that assigns a meaning to a plain-text marker.

Read it
Design · 6 min read

Page margins and line length: the numbers that make a page readable

Set margins so that a line of body text holds 55 to 75 characters including spaces. On A4 at 11pt that means margins of roughly 60 to 80 points a side, not the 20 to 40 a word processor defaults to. Line height then follows from the measure: the longer the line, the more space it needs beneath it.

Read it

Write it in Markdown. Ship a book.

bukpress turns the file you are already writing into a typeset PDF and EPUB — your type, your covers, no watermark on any plan.

Start free — no card required