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