How can I add the top level heading title to the header of each page?

How can I add the top level heading title to the header of each page?

Example image:

Check this package: hydra

1 Like

Thank you. With your suggestion i got it to work with the following hydra command:

#set page(paper: "a4", margin: (inside: 3cm, outside:   3cm, y: 1.75cm), header: context {
  if counter(page).get().first() > 3{  align(left, emph(hydra(1)))
  line(length: 100%)
  }
})
1 Like