Modify outlines

Please tag your "Addendum"-Heading with <dhsn.addendum> and use #addendum-outline() before your addendum!
This commit is contained in:
2025-09-09 11:46:38 +02:00
parent 2c42f6f55f
commit add3eff5a6

View File

@@ -35,6 +35,16 @@
)
]
#let addendum-outline() = context {
if query(selector(figure).after(here())).len() > 0 {
{
show heading: none
heading(numbering: none)[Anhangverzeichnis]
}
outline(title: "Anhangverzeichnis", target: selector(figure).after(here()))
pagebreak()
}
}
#let dhsn(
topic: "Thema der Arbeit",
subtitle: [Art der Arbeit],
@@ -155,32 +165,12 @@
pagebreak()
context {
if query(figure.where(kind: image)).len() > 0 {
if query(selector(figure).before(<dhsn.addendum>)).len() > 0 {
{
show heading: none
heading(numbering: none)[Abbildungsverzeichnis]
}
outline(title: "Abbildungsverzeichnis", target: figure.where(kind: image))
pagebreak()
}
}
context {
if query(figure.where(kind: raw)).len() > 0 {
{
show heading: none
heading(numbering: none)[Anhangsverzeichnis]
}
outline(title: "Anhangsverzeichnis", target: figure.where(kind: raw))
pagebreak()
}
}
context {
if query(figure.where(kind: table)).len() > 0 {
{
show heading: none
heading(numbering: none)[Tabellenverzeichnis]
}
outline(title: "Tabellenverzeichnis", target: figure.where(kind: table))
outline(title: "Abbildungsverzeichnis", target: selector(figure).before(<dhsn.addendum>))
pagebreak()
}
}