Create a running header from an InDesign style

Choose which heading appears when a page has two, then check what the next page inherits.

Asset preparation2 min read

A catalogue has two headings on page 4, Launch and Delivery. Both use the paragraph style Section Heading. Page 5 continues the text without another heading. Use a running header to pull the styled text into each page’s header frame.

Define and place the variable

  1. Choose Type → Text Variables → Define → New. Name the variable Current section. Set Type to Running Header (Paragraph Style) and Style to Section Heading.
  2. Under Use, choose First On Page or Last On Page. Save the variable.
  3. Open Window → Pages and edit the parent page that supplies the catalogue header. Put the cursor in its header text frame and choose Type → Text Variables → Insert Variable → Current section. Apply that parent to the relevant pages. Adobe’s running header guide

Check both modes

PageFirst On PageLast On Page
4, Launch then DeliveryLaunchDelivery
5, no section headingDeliveryDelivery

On a page without a matching heading, InDesign uses the most recent match earlier in the document. Before the first match, the variable is empty.

Check the longest heading in the actual header frame. Text variables do not break across lines and can become overset in a narrow frame. Widen the frame or shorten the source heading, then check it again. Adobe’s text variable guide

Image tools
All guides