diff --git a/README.md b/README.md index c596760..8bfbc9e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ on the dashboard and searching for `unofficial-hka-thesis`. Locally, you can use the following command to start with this templates: ```bash -typst init @preview/unofficial-hka-thesis:1.0.0 +typst init @preview/unofficial-hka-thesis:1.0.1 ``` ### Features diff --git a/lib.typ b/lib.typ index 7d07bc2..63a7b5c 100644 --- a/lib.typ +++ b/lib.typ @@ -1,5 +1,5 @@ #import "modules/titlepage.typ": * -#import "@preview/glossarium:0.5.1": print-glossary, register-glossary +#import "@preview/glossarium:0.5.4": print-glossary, register-glossary #let in-outline = state("in-outline", false) #let flex-caption(long, short) = context { @@ -7,7 +7,8 @@ } #let preface( - settings: () + settings: (), + preface ) = { // Page Setup set page( @@ -48,6 +49,8 @@ //Indentation of Lists set list(indent: settings.list-indentation) set enum(indent: settings.list-indentation) + + preface } #let listings( @@ -68,7 +71,7 @@ }, target: heading.where(supplement: [Chapter], outlined: true), - indent: true, + indent: auto, depth: 3 ) @@ -206,7 +209,7 @@ ) counter(page).update(1) // Set after header and after all initial pages to just apply it to the acutal content - set par(spacing: settings.space-before-paragraph) + set par(spacing: settings.space-before-paragraph, justify: true) // Actual Content body @@ -220,7 +223,7 @@ heading("Appendix", outlined: true, numbering: none) }, target: heading.where(supplement: [Appendix], outlined: true), - indent: true, + indent: auto, depth: 3 ) diff --git a/template/chapters/1_introduction.typ b/template/chapters/1_introduction.typ index 76a38b5..440a782 100644 --- a/template/chapters/1_introduction.typ +++ b/template/chapters/1_introduction.typ @@ -1,6 +1,6 @@ -#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption -#import "@preview/glossarium:0.5.1": gls, glspl +#import "@preview/unofficial-hka-thesis:1.0.1": todo, flex-caption +#import "@preview/glossarium:0.5.4": gls, glspl = Introduction diff --git a/template/chapters/2_foundations.typ b/template/chapters/2_foundations.typ index e63c266..569d401 100644 --- a/template/chapters/2_foundations.typ +++ b/template/chapters/2_foundations.typ @@ -1,4 +1,4 @@ -#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption +#import "@preview/unofficial-hka-thesis:1.0.1": todo, flex-caption #import "@preview/acrostiche:0.2.0": acr, acrpl = Foundations diff --git a/template/supplementary/abstract.typ b/template/supplementary/abstract.typ index 5c6449a..425aef2 100644 --- a/template/supplementary/abstract.typ +++ b/template/supplementary/abstract.typ @@ -1,4 +1,4 @@ -#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption +#import "@preview/unofficial-hka-thesis:1.0.1": todo, flex-caption #heading(outlined: false, numbering: none, "Abstract") diff --git a/template/supplementary/abstractGerman.typ b/template/supplementary/abstractGerman.typ index fca6805..23f9348 100644 --- a/template/supplementary/abstractGerman.typ +++ b/template/supplementary/abstractGerman.typ @@ -1,4 +1,4 @@ -#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption +#import "@preview/unofficial-hka-thesis:1.0.1": todo, flex-caption #heading(outlined: false, numbering: none, "Zusammenfassung") diff --git a/template/thesis.pdf b/template/thesis.pdf new file mode 100644 index 0000000..b191f73 Binary files /dev/null and b/template/thesis.pdf differ diff --git a/template/thesis.typ b/template/thesis.typ index 2a4dce0..4e9b5ae 100644 --- a/template/thesis.typ +++ b/template/thesis.typ @@ -1,10 +1,11 @@ -#import "@preview/unofficial-hka-thesis:1.0.0": * +#import "@preview/unofficial-hka-thesis:1.0.1": * #import "abbreviations.typ": abbreviations #import "settings/metadata.typ": * #import "settings/settings.typ": * -#import "@preview/glossarium:0.5.1": make-glossary +#import "@preview/glossarium:0.5.4": make-glossary, register-glossary #show: make-glossary +#register-glossary(abbreviations) #set document(title: title-english, author: author) #open-title-page(settings: settings) @@ -34,7 +35,7 @@ submission-date: submission-date, ) -#preface(settings: settings) +#show: preface.with(settings: settings) // Citations - applied here so that you are able to use a local CSL file to define the citation style #set cite(style: settings.citation-style) diff --git a/typst.toml b/typst.toml index 4cad9d7..fb8fe86 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "unofficial-hka-thesis" -version = "1.0.0" +version = "1.0.1" entrypoint = "lib.typ" authors = ["Ansgar Lichter "] license = "MIT"