Sub topic 7
Master pages, running heads and page numbers
This chapter assumes you know how to create text frames, set margins and columns, and apply paragraph styles in a layout tool such as InDesign, Affinity Publisher or Scribus. It also assumes you have a margin and column grid from the earlier chapters. Terms differ between tools. InDesign calls the feature parent pages, while Affinity Publisher and Scribus call it master pages. This chapter uses "master" for the concept.
What a master page does
A master is a page template. Anything you place on it appears on every document page that uses it, in the same position, without being copied by hand. Change the master and every page that uses it updates.
Masters solve three problems in multi-page work:
- Consistency. A running head that sits 1 mm off on page 14 is visible when pages are flipped. Placing it once removes the risk.
- Maintenance. Changing the footer position in a 60-page report is one edit, not 60.
- Automation. Page numbers and section names can be computed by the software, so they stay correct when pages are added, deleted or reordered.
What belongs on a master
Put an element on a master if it repeats in the same position on many pages. Leave it off if it changes content or position from page to page.
| Belongs on the master | Belongs on the document page |
|---|---|
| Margin and column guides | Body text and headings |
| Running head and footer frames | Figures and captions |
| Page number placeholder | Pull quotes |
| Fixed logo or rule | Content that changes per page |
| Empty primary text frame for flowing text | Local overrides |
A running element is any item that repeats across pages: running head, folio, rule, logo. The folio is the page number, often combined with a footer line. The running head is a short line at the top of the page that tells the reader where they are, usually the document title or the current chapter.
Facing pages: left and right masters
If the document has facing pages, the master is a pair, one left and one right. This matters because running elements usually mirror each other. Margins also differ at the binding edge, as the CSS example later in this chapter shows.
A common arrangement for a report:
- Left page: page number at the outer (left) edge, document title in the running head.
- Right page: page number at the outer (right) edge, current section name in the running head.
Readers flip pages with the outer edge of the page, so placing the folio there makes it easy to find. The title on the left and the section on the right means each spread names both the whole and the part.
Single-sided documents, such as most brochures, need only one master. A folded brochure often has no page numbers at all, because panels are not read as numbered pages.
Page numbers that update themselves
Never type a page number. Insert a current page number marker, a special character that the software replaces with the real number on each page. In InDesign this is Type > Insert Special Character > Markers > Current Page Number. On the master it displays as the master's prefix letter, for example "B", and on document pages it shows the real number. Affinity Publisher and Scribus offer equivalent fields or page number variables.
Set the marker in a character or paragraph style so its font, size and tracking match your footer style, and so one change updates all of them.
Numbering ranges
Long reports often start numbering after the front matter. The usual convention:
- Front matter (title page, contents, preface) uses lowercase roman numerals: i, ii, iii.
- The main body restarts at 1 in Arabic numerals.
- The title page counts as page i but does not display it.
In InDesign, use Numbering & Section Options on the first body page and choose Start Page Numbering at: 1. Other tools use "sections" or "page number ranges". If a number is wrong, look at the section setting before you suspect the master.
Spread-aware numbering
A common mistake in the PDF is a number that disagrees with the viewer's page counter. PDF viewers count from the first physical page. If your front matter is roman, page "1" of the body may be physical page 7. This is correct, but export with the logical page labels enabled if your tool supports it, so the viewer shows "1" as well.
Running heads: static and dynamic
A static running head is plain text on the master, such as the report title. It is simple and never wrong.
A dynamic running head pulls its text from the page content, so it shows the current chapter or section. In InDesign, create a Running Header (Paragraph Style) text variable that reads the first paragraph on the page using, for example, your "Heading 1" style, and place it on the master. When Heading 1 changes, the head follows. Affinity Publisher uses section name fields, and Scribus has more limited options. Check what your version supports before planning a design around dynamic heads.
Two conventions help readers:
- On a page where a new chapter starts, drop the running head. The chapter title is already there and repeating it looks like a mistake.
- Keep the head short enough to fit on one line even for the longest heading. A long heading that wraps or is cut off is the most frequent cause of broken running heads.
The same idea in CSS paged media
If you build documents with HTML and CSS through a paged-media renderer such as WeasyPrint or Paged.js, margin boxes and named strings fill the role of the master. The example below mirrors the folio, picks up the current chapter title as a dynamic running head, and suppresses both on the first page.
h1 {
string-set: chapter content();
break-before: page;
}
@page {
size: A4;
margin: 20mm 20mm 25mm 20mm;
}
@page :left {
margin-left: 25mm;
margin-right: 15mm;
@bottom-left {
content: counter(page);
}
@top-left {
content: "Annual Report 2026";
}
}
@page :right {
margin-left: 15mm;
margin-right: 25mm;
@bottom-right {
content: counter(page);
}
@top-right {
content: string(chapter);
}
}
@page :first {
margin-top: 40mm;
@top-left { content: none; }
@top-right { content: none; }
@bottom-right { content: none; }
}Here string-set copies each h1 text into a named string, string(chapter) reads the most recent value for the page, and counter(page) is the automatic folio. :left and :right behave like the left and right masters. Support for these features depends on the renderer. Browsers' normal print output does not support margin boxes in every case, so test with the tool you will actually use.
Applying masters in practice
Plan masters before you flow text. A typical report needs three or four:
- A-Title: no running head, no folio, large top margin.
- B-Body: the full set of running elements and the standard grid.
- C-Opener: a chapter opening page with a larger top margin and no running head.
- D-Full image: margins reduced or removed, no running elements.
A brochure may need only two: a cover master and an inside master.
A master can be based on another master. In InDesign, if "B-Body" is based on "A-Master", changes to A pass to B. This is useful when several masters share one footer but differ in column count.
Overrides
You can detach a master item on a single page with a local override (in InDesign, Ctrl/Cmd+Shift-click the item). Use overrides sparingly. An overridden frame no longer updates when the master changes. If you override the same item on many pages, make a new master instead.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Folio reads "A" or "B" on pages | Typed a letter, or the marker is on the page instead of the master | Insert the marker on the master only |
| Running head is not the same position on facing pages | Left and right masters edited separately | Mirror positions with numeric X/Y values |
| Running head shows the wrong chapter | Paragraph style used for something other than headings | Apply the heading style only to true headings |
| Master item cannot be selected | The item is on the master, not overridden | Override it, or edit the master |
| Page numbers jump after front matter | Section start missing or set in the wrong place | Check the numbering/section settings on the first body page |
| Text frame on the page does not flow | Empty primary frame not set on the master | Enable the primary text frame on the master |
Exercise
A 40-page report has an 8-page front matter section (title page, contents, preface) and then the main body. The body should start at page 1, and the first page of each chapter should have no running head. List the masters and the numbering setting you would use.
Show answer
Use at least three masters: a title/front matter master with no running head, a chapter opener master with a folio but no running head, and a body master with the running head and folio. Set the front matter to roman numerals (i to viii) and set a section on the first body page that restarts Arabic numbering at 1. Apply the opener master to the first page of every chapter and the body master elsewhere. Insert the page number marker on the masters, not by typing digits.
Exercise
In a CSS paged-media stylesheet, why does string(chapter) in @top-right give the right chapter title on each page, and what would you change to stop the head appearing on the first page?
Show answer
h1 { string-set: chapter content(); } stores each h1 text in a named string called chapter, and the margin box reads the value current for that page. To suppress the head on the first page, add @page :first { @top-right { content: none; } }.