Take the 2-minute tour ×  So, you can have a heading running on
each page that varies automatically based on the most recent
heading (or, occurrence of any other paragraph style) by putting
text with InDesign text variables based on the Running Headings
text variable type ( type > text variables > define). Example
tutorial.  So, for a textbook, novel, etc, where chapters span
multiple pages, you could have the title of the latest chapter
run in the header of each page automatically:  enter image
description here  For a book like a dictionary, where each page
contains multiple headings, you could get running headers that
show the range of each page, by using two Running Header text
variables, one set to "First in page", one set to "Last in
page":  enter image description here  My question is, what if
you have an awkward book or report with sections that have very
variable lengths, which can be very short (several on a page)
and can be multiple pages? Imagine something like an in-depth
dictionary or encyclopaed