Fix Outline Styles when using Figure sources

This commit is contained in:
2025-09-10 08:35:21 +02:00
parent f77021aa57
commit 5cd21dd2cf

View File

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