diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8c4fb83 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Ansgar Lichter + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib.typ b/lib.typ index 037c927..ebb54b1 100644 --- a/lib.typ +++ b/lib.typ @@ -1,4 +1,4 @@ -#import "modules/titlepage.typ": * +#import "modules/titlePage.typ": * #import "@preview/glossarium:0.5.1": print-glossary, register-glossary #let in-outline = state("in-outline", false) @@ -7,36 +7,8 @@ } #let preface( - settings: (), - degree: "", - program: "", - title: "", - subtitle: "", - author: "", - matriculationNumber: "", - placeOfWork: "", - supervisor: "", - advisor: "", - startDate: none, - submissionDate: none + settings: () ) = { - set document(title: title, author: author) - - titlepage( - settings: settings, - degree: degree, - program: program, - title: title, - subtitle: subtitle, - author: author, - placeOfWork: placeOfWork, - matriculationNumber: matriculationNumber, - supervisor: supervisor, - advisor: advisor, - startDate: startDate, - submissionDate: submissionDate - ) - // Page Setup set page( margin: ( diff --git a/modules/titlepage.typ b/modules/titlepage.typ index 0e33724..b0bd1ee 100644 --- a/modules/titlepage.typ +++ b/modules/titlepage.typ @@ -1,20 +1,4 @@ -#let titlepage( - settings: (), - degree: "", - program: "", - title: "", - subtitle: "", - titleGerman: "", - subtitleGerman: "", - author: "", - matriculationNumber: "", - placeOfWork: "", - supervisor: "", - advisor: "", - startDate: none, - submissionDate: none, -) = { - set document(title: title, author: author) +#let openTitlePage(settings: ()) = { set page( paper: "a4", margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm), @@ -30,19 +14,24 @@ ) set par(leading: 1em) +} - - // Title Page - //TODO: How to apply company logo? - grid( - columns: (1fr, 1fr), - align(left)[ - #image("/assets/company.svg", height: 1.5cm) - ], - align(right)[ - #image("/assets/HKALogo.png", height: 2cm) - ] - ) +#let finishTitlePage( + settings: (), + degree: "", + program: "", + title: "", + subtitle: "", + titleGerman: "", + subtitleGerman: "", + author: "", + matriculationNumber: "", + placeOfWork: "", + supervisor: "", + advisor: "", + startDate: none, + submissionDate: none, +) = { v(5mm) align(center, text(font: settings.fontHeading, 1.9em, weight: 700, "University of Applied Sciences Karlsruhe")) diff --git a/template/logo/HKALogo.png b/template/logo/HKALogo.png new file mode 100644 index 0000000..de443bc Binary files /dev/null and b/template/logo/HKALogo.png differ diff --git a/template/logo/company.svg b/template/logo/company.svg new file mode 100644 index 0000000..29b765e --- /dev/null +++ b/template/logo/company.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/template/thesis.typ b/template/thesis.typ index 1a63d30..06b9c8b 100644 --- a/template/thesis.typ +++ b/template/thesis.typ @@ -6,7 +6,20 @@ #show: make-glossary -#preface( +#set document(title: titleEnglish, author: author) +#openTitlePage(settings: settings) +// Customize your company logo or just use the one from the university +#grid( + columns: (1fr, 1fr), + align(left)[ + #image("/logo/company.svg", height: 1.5cm) + ], + align(right)[ + #image("/logo/HKALogo.png", height: 2cm) + ] +) + +#finishTitlePage( settings: settings, degree: degree, program: program, @@ -21,6 +34,8 @@ submissionDate: submissionDate, ) +#preface(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.citationStyle)