Compare commits

...

5 Commits

Author SHA1 Message Date
16ab666f74 Bump acrostiche to v0.7.0 2026-03-04 21:29:18 +01:00
7bc2ba0c33 backport addendum-index fix 2026-02-24 08:06:21 +01:00
78966cecde backport/update dependencies 2026-02-12 08:01:12 +01:00
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

@@ -1,4 +1,4 @@
#import "@preview/acrostiche:0.6.0": *
#import "@preview/acrostiche:0.7.0": *
#let statement(location, submission-date, gender) = context [
#pagebreak()
@@ -34,25 +34,30 @@
)
]
#let addendum(body) = {
#let addendum(supplement: "Anhang", body) = {
pagebreak()
counter(heading).update(0)
set heading(numbering: none)
context if query(selector(figure).after(here())).len() > 0 {
{
show heading: none
heading(numbering: none)[Anhangverzeichnis]
show regex("[\n,;.]? *Quelle:.*"): none
show ref: none
{
show heading: none
heading(numbering: none)[Anhangverzeichnis]
}
outline(title: "Anhangverzeichnis", target: selector(figure).after(here()))
pagebreak()
}
outline(title: "Anhangverzeichnis", target: selector(figure).after(here()))
set figure(kind: raw, supplement: "Anhang")
counter(figure.where(kind: raw)).update(0)
[= #supplement <dhsn.addendum>]
body
pagebreak()
} else {
body
}
set figure(kind: raw, supplement: "Anhang")
counter(figure.where(kind: raw)).update(0)
[= Anhang <dhsn.addendum>]
body
pagebreak()
}
#let dhsn(
topic: "Thema der Arbeit",
@@ -81,6 +86,12 @@
set heading(numbering: (..nums) => nums.pos().map(str).join("."))
set bibliography(style: "harvard-cite-them-right", title: "Literaturverzeichnis")
set document(
title: topic,
author: author,
description: [#subtitle],
date: submission-date,
)
set cite(form: "prose")
show cite: c => {
show "ohne Datum": "o.D."
@@ -95,6 +106,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 +185,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,15 +202,16 @@
}
outline(title: "Tabellenverzeichnis", target: selector(figure.where(kind: table)).before(<dhsn.addendum>))
}
}
context if (
query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0
) {
pagebreak()
if (
query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0
) {
pagebreak()
counter(footnote).update(0)
}
}
context {
if (acros.get() != none and acros.get().len() > 0) {
if (_acronyms.final() != none and _acronyms.final().len() > 0) {
{
show heading: none
heading(numbering: none)[Abkürzungsverzeichnis]