Update template.typ

This commit is contained in:
Laurenz 2024-02-08 15:24:25 +01:00 committed by GitHub
parent a9076233fc
commit 9e27888d58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@
// Path to your bibliography file
// You may use `.yml` for Hayagriva format
// or `.bib` for BibLaTeX format
bibliography_path: "literature.yml",
bibliography_path: "literature.yaml",
// The contents of your abstract
abstract: include "./abstract.typ",
@ -82,7 +82,8 @@
// suggested font and font size by the DHBW style guide
#set text(
font: "Linux Libertine",
font: "Linux Libertine", // Linux Biolinum O
// font: "Linux Biolinum O",
size: 12pt,
hyphenate: false,
lang: "en",
@ -146,18 +147,19 @@
// #show heading.where(level: 3): set text(size: 16pt)
// Style figure captions
#show figure : it => block(breakable: false)[
#v(15pt, weak: true)
#it.body
#align(center)[
// #v(.5em)
#block(width: 80%, text(size: .9em)[
#it.supplement #it.counter.display(it.numbering):
#emph(it.caption)
])
#v(15pt)
]
]
// TODO: consider reenabling, broken
// #show figure : it => block(breakable: false)[
// #v(15pt, weak: true)
// #it.body
// #align(center)[
// // #v(.5em)
// #block(width: 80%, text(size: .9em)[
// #it.supplement #it.counter.display(it.numbering):
// #emph(it.caption.text)
// ])
// #v(15pt)
// ]
// ]
// rename level 1 headings to "Chapter", otherwise "Section"
#set ref(supplement: it => {
@ -267,14 +269,11 @@
Hereby I solemnly declare:
+ that this #type, titled #text(style: "italic")[#title] is entirely the product of my
own scholarly work, unless otherwise indicated in the text or references, or acknowledged below;
+ that this #type, titled #text(style: "italic")[#title] is entirely the product of my own scholarly work, unless otherwise indicated in the text or references, or acknowledged below;
+ I have indicated the thoughts adopted directly or indirectly from other sources at the appropriate
places within the document;
+ I have indicated the thoughts adopted directly or indirectly from other sources at the appropriate places within the document;
+ this #type has not been submitted either in whole or part, for a degree at this or
any other university or institution;
+ this #type has not been submitted either in whole or part, for a degree at this or any other university or institution;
+ I have not published this #type in the past;
@ -429,22 +428,24 @@
// finally, include the bibliography chapter at the end of the document
#pagebreak()
// #bibliography(bibliography_path, style: "ieee")
#bibliography(bibliography_path, style: "ieee")
]
// `pref` if to prefer the long form
#let acro(short, pref: false, append: "") = {
let item = acronyms.at(short)
locate(loc => {
let entries = acroStates.at(loc).filter(e => e == short);
// Already used once
if entries.len() > 0 {
if pref {
link(label(short))[#item#append]
} else {
link(label(short))[#short#append]
}
// First usage
} else {
acroStates.update(e => {e.push(short); e;});
if pref {