Compare commits

..

2 Commits

Author SHA1 Message Date
5c09e20dc6 Add supplement for addendum 2025-09-11 16:53:41 +02:00
5cd21dd2cf Fix Outline Styles when using Figure sources 2025-09-10 08:35:21 +02:00

View File

@@ -34,11 +34,13 @@
) )
] ]
#let addendum(body) = { #let addendum(supplement: "Anhang", body) = {
pagebreak() pagebreak()
counter(heading).update(0) counter(heading).update(0)
set heading(numbering: none) set heading(numbering: none)
context if query(selector(figure).after(here())).len() > 0 { context if query(selector(figure).after(here())).len() > 0 {
show regex("[\n,;.]? *Quelle:.*"): none
show ref: none
{ {
show heading: none show heading: none
heading(numbering: none)[Anhangverzeichnis] heading(numbering: none)[Anhangverzeichnis]
@@ -50,7 +52,7 @@
set figure(kind: raw, supplement: "Anhang") set figure(kind: raw, supplement: "Anhang")
counter(figure.where(kind: raw)).update(0) counter(figure.where(kind: raw)).update(0)
[= Anhang <dhsn.addendum>] [= #supplement <dhsn.addendum>]
body body
pagebreak() pagebreak()
} }
@@ -95,6 +97,7 @@
set par(justify: true, leading: 1.2em) set par(justify: true, leading: 1.2em)
show heading: set block(below: 1.2em) show heading: set block(below: 1.2em)
show figure: set par(leading: 0.8em) show figure: set par(leading: 0.8em)
show figure.caption: set text(size: 10pt)
show table: set par(leading: 0.8em) show table: set par(leading: 0.8em)
show raw: it => { show raw: it => {
if (it.lines.first().count > 1) { if (it.lines.first().count > 1) {
@@ -173,15 +176,16 @@
pagebreak() pagebreak()
context { context {
show regex("[\n,;.]? *Quelle:.*"): none
show ref: none
if query(selector(figure.where(kind: image).before(<dhsn.addendum>))).len() > 0 { if query(selector(figure.where(kind: image).before(<dhsn.addendum>))).len() > 0 {
{ {
show heading: none show heading: none
heading(numbering: none)[Abbildungsverzeichnis] heading(numbering: none)[Abbildungsverzeichnis]
} }
outline(title: "Abbildungsverzeichnis", target: selector(figure.where(kind: image)).before(<dhsn.addendum>)) outline(title: "Abbildungsverzeichnis", target: selector(figure.where(kind: image)).before(<dhsn.addendum>))
} }
}
context {
if query(selector(figure.where(kind: table)).before(<dhsn.addendum>)).len() > 0 { if query(selector(figure.where(kind: table)).before(<dhsn.addendum>)).len() > 0 {
{ {
show heading: none show heading: none
@@ -189,11 +193,12 @@
} }
outline(title: "Tabellenverzeichnis", target: selector(figure.where(kind: table)).before(<dhsn.addendum>)) outline(title: "Tabellenverzeichnis", target: selector(figure.where(kind: table)).before(<dhsn.addendum>))
} }
} if (
context if ( query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0
query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0 ) {
) { pagebreak()
pagebreak() counter(footnote).update(0)
}
} }
context { context {