Compare commits

...

5 Commits

Author SHA1 Message Date
caee726e6b Fix Anhangverzeichnis 2026-02-24 08:00:55 +01:00
d0de6c74cc index anpassung quellen 2026-02-23 10:55:42 +01:00
a61caea508 use ieee, update dependencies 2026-02-11 16:10:30 +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()
@@ -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 {
@@ -34,11 +34,13 @@
)
]
#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 regex("(\. ).+"): none
{
show heading: none
heading(numbering: none)[Anhangverzeichnis]
@@ -46,14 +48,19 @@
outline(title: "Anhangverzeichnis", target: selector(figure).after(here()))
pagebreak()
}
set figure(kind: raw, supplement: "Anhang")
counter(figure.where(kind: raw)).update(0)
[= Anhang <dhsn.addendum>]
[= #supplement <dhsn.addendum>]
body
pagebreak()
} else {
body
}
}
}
#let dhsn(
topic: "Thema der Arbeit",
subtitle: [Art der Arbeit],
@@ -80,8 +87,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 => {
@@ -90,11 +103,12 @@
it
}
c
}
}*/
set text(size: 12pt, lang: "de", region: "de")
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 +187,16 @@
pagebreak()
context {
show regex("(\. ).+"): 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 +204,16 @@
}
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 {
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]
@@ -210,19 +226,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
}
statement(location, submission-date, author_gender)
}