How to increase heading level in an included document?

You may update the heading.offset property to bump headings’ levels (the final level is equal to heading.depth + heading.offset, where depth is the amount of =, and the offset defaults to 0):

#let chapter = heading.with(level: 1)  // not affected by offset
#set heading(offset: 1)  // globally increase offset

#chapter[Chapter title]
#include "file.typ"

#chapter[Other chapter title]
= Section

#[
  // Update offset just for this file
  #set heading(offset: 2)
  #include "otherfile.typ"
]

There is a more complete example here: How to define a new highest header while keeping the others the same? - #3 by PgBiel

1 Like