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
- Choose Type → Text Variables → Define → New. Name the variable
Current section. Set Type to Running Header (Paragraph Style) and Style toSection Heading. - Under Use, choose First On Page or Last On Page. Save the variable.
- 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
| Page | First On Page | Last On Page |
|---|---|---|
| 4, Launch then Delivery | Launch | Delivery |
| 5, no section heading | Delivery | Delivery |
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