Compare commits

3 Commits
ieee ... main

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

View File

@@ -20,7 +20,7 @@
column-gutter: 1cm, column-gutter: 1cm,
columns: (50%, 50%), columns: (50%, 50%),
row-gutter: 10pt, row-gutter: 10pt,
[#location, #submission-date.display("[day].[month].[year]")], [], [#location, #submission-date.display("[day].[month].[year]")], align(bottom, line(length: 6cm, stroke: 0.75pt)),
[], [],
( (
if gender == none { if gender == none {
@@ -40,7 +40,8 @@
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("(\. ).+"): none show regex("[\n,;.]? *Quelle:.*"): none
show ref: none
{ {
show heading: none show heading: none
heading(numbering: none)[Anhangverzeichnis] heading(numbering: none)[Anhangverzeichnis]
@@ -58,9 +59,6 @@
body body
} }
} }
}
#let dhsn( #let dhsn(
topic: "Thema der Arbeit", topic: "Thema der Arbeit",
subtitle: [Art der Arbeit], subtitle: [Art der Arbeit],
@@ -87,14 +85,14 @@
// show figure.where(kind: table): set figure(kind: raw, supplement: "Anhang") // show figure.where(kind: table): set figure(kind: raw, supplement: "Anhang")
set heading(numbering: (..nums) => nums.pos().map(str).join(".")) set heading(numbering: (..nums) => nums.pos().map(str).join("."))
set bibliography(style: "ieee", title: "Literaturverzeichnis") set bibliography(style: "harvard-cite-them-right", title: "Literaturverzeichnis")
set document( set document(
title: topic, title: topic,
author: author, author: author,
description: [#subtitle], description: [#subtitle],
date: submission-date, date: submission-date,
) )
/*set cite(form: "prose") set cite(form: "prose")
show cite: c => { show cite: c => {
show "ohne Datum": "o.D." show "ohne Datum": "o.D."
show regex("ohne Datum \D\)"): it => { show regex("ohne Datum \D\)"): it => {
@@ -103,7 +101,7 @@
it it
} }
c c
}*/ }
set text(size: 12pt, lang: "de", region: "de") set text(size: 12pt, lang: "de", region: "de")
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)
@@ -187,7 +185,7 @@
pagebreak() pagebreak()
context { context {
show regex("(\. ).+"): none show regex("[\n,;.]? *Quelle:.*"): none
show ref: 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 {
{ {
@@ -226,7 +224,19 @@
set page(numbering: (..nums) => numbering("1", counter(page).get().at(0))) set page(numbering: (..nums) => numbering("1", counter(page).get().at(0)))
body body
{
show "ohne Datum": "o.D."
show regex("ohne Datum \D\)"): it => {
show ")": "])"
show "ohne Datum ": "o.D.["
it
}
show regex(`Zugegriffen\: \d+`.text): it => {
let day = str.replace(it.text, "Zugegriffen: ", "")
"Abgerufen am " + day + "."
}
bib bib
}
statement(location, submission-date, author_gender) statement(location, submission-date, author_gender)
} }