use ieee, update dependencies

This commit is contained in:
2026-02-11 16:10:30 +01:00
parent 5c09e20dc6
commit a61caea508

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()
@@ -20,7 +20,7 @@
column-gutter: 1cm,
columns: (50%, 50%),
row-gutter: 10pt,
[#location, #submission-date.display("[day].[month].[year]")], align(bottom, line(length: 6cm, stroke: 0.75pt)),
[#location, #submission-date.display("[day].[month].[year]")], [],
[],
(
if gender == none {
@@ -39,23 +39,25 @@
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]
}
outline(title: "Anhangverzeichnis", target: selector(figure).after(here()))
pagebreak()
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)
[= #supplement <dhsn.addendum>]
body
pagebreak()
}
}
#let dhsn(
topic: "Thema der Arbeit",
subtitle: [Art der Arbeit],
@@ -82,8 +84,14 @@
// show figure.where(kind: table): set figure(kind: raw, supplement: "Anhang")
set heading(numbering: (..nums) => nums.pos().map(str).join("."))
set bibliography(style: "harvard-cite-them-right", title: "Literaturverzeichnis")
set cite(form: "prose")
set bibliography(style: "ieee", 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."
show regex("ohne Datum \D\)"): it => {
@@ -92,7 +100,7 @@
it
}
c
}
}*/
set text(size: 12pt, lang: "de", region: "de")
set par(justify: true, leading: 1.2em)
show heading: set block(below: 1.2em)
@@ -176,7 +184,7 @@
pagebreak()
context {
show regex("[\n,;.]? *Quelle:.*"): none
show regex("[.].+"): none
show ref: none
if query(selector(figure.where(kind: image).before(<dhsn.addendum>))).len() > 0 {
{
@@ -202,7 +210,7 @@
}
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]
@@ -215,19 +223,7 @@
set page(numbering: (..nums) => numbering("1", counter(page).get().at(0)))
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)
}