How to display a outline in another outline

Hello,

I am currently working on a template for my study works and I don’t know how to get one outline show up as content in another outline. So the thing is, I want one main outline, and also some outlines like list of figures and list of tables. I got the outlines working but I want to show the “List of figures”/“List of tables” in the main outline.

Does anyone have an idea how to solve this?

Many thanks in advance
John

You can use heading’s outlined: true to show up your graph outline in main outline, for example:

#let graph-outline(..args) = {
  show outline: set heading(outlined: true)
  outline(..args)
}

#outline()

#graph-outline(title: "Graphs", target: figure.where(outlined: true))

= Foo
= Bar

Thanks a lot, this was exactly what I’ve been looking for a long time :c