diff --git a/dhsn.typ b/dhsn.typ index 7fb01be..1060a73 100644 --- a/dhsn.typ +++ b/dhsn.typ @@ -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()).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()) pagebreak() } }