feat: Appendix

This commit is contained in:
Laurenz 2024-04-18 12:07:20 +02:00
parent 9c9709ccbb
commit 2f399cd5ef
No known key found for this signature in database
GPG key ID: E3D5C22DBA1A8C36

View file

@ -32,6 +32,7 @@
list_of_figures: "List of Figures", list_of_figures: "List of Figures",
acronyms: "Acronyms", acronyms: "Acronyms",
bibliography: "Bibliography", bibliography: "Bibliography",
appendix: "Appendix",
chapter: "Chapter", chapter: "Chapter",
section: "Section", section: "Section",
confidentiality_clause: [ confidentiality_clause: [
@ -73,6 +74,7 @@
list_of_figures: "Abbildungsverzeichnis", list_of_figures: "Abbildungsverzeichnis",
acronyms: "Abkürzungsverzeichnis", acronyms: "Abkürzungsverzeichnis",
bibliography: "Literaturverzeichnis", bibliography: "Literaturverzeichnis",
appendix: "Anhang",
chapter: "Kapitel", chapter: "Kapitel",
section: "Abschnitt", section: "Abschnitt",
confidentiality_clause: [ confidentiality_clause: [
@ -135,6 +137,8 @@
// The contents of your abstract // The contents of your abstract
abstract: include "./abstract.typ", abstract: include "./abstract.typ",
// To be append after the bibliography
appendix: none,
// First chapter of your thesis // First chapter of your thesis
// This is required to generate the content section correctly // This is required to generate the content section correctly
@ -525,7 +529,20 @@
// 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, title: selected_lang.bibliography, style: "ieee") #if appendix != none [
#pagebreak(weak: true)
#heading(numbering: none, selected_lang.appendix)
#set heading(
outlined: true,
bookmarked: true,
numbering: (..nums) => {
let n = nums.pos()
n.remove(0)
return numbering("A.1", ..n)
}
)
#appendix
]
] ]
// `pref` if to prefer the long form // `pref` if to prefer the long form