Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MIT No Attribution

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.

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.
32 changes: 32 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# exzellenz-tum-thesis
This is a Typst template for a thesis at TU Munich. I made it for my thesis in the School CIT, but I think it can be adapted to other schools as well.

## Usage
You can use this template in the Typst web app by clicking "Start from template"
on the dashboard and searching for `exzellenz-tum-thesis`.

Alternatively, you can use the CLI to kick this project off using the command
```
typst init @preview/exzellenz-tum-thesis
```

Typst will create a new directory with all the files needed to get you started.

## Configuration
This template exports the `exzellenz-tum-thesis` function with the following named arguments:

- `degree`: String - e.g. Bachelor, Master
- `program`: String - e.g. Informatics, Electrical Engineering
- `school`: String - e.g. School of Computation, Information and Technology
- `examiner`: String - Your TUM professor
- `supervisors`: Array of Strings - The official advisors and supervisors
- `author`: String
- `title-en`: String
- `title-de`: String
- `abstract-text`: Content block
- `acknowledgements`: Content block - optional, if you have thanks to give
- `submission-date`: String
- `show-title-in-header`: Boolean - Should author and title appear in the header of each content page?
- `draft`: Boolean - Set to false when finalizing the thesis

The template will initialize your package with a sample call to the `exzellenz-tum-thesis` function.
58 changes: 58 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/TUM_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/abstract.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#let abstract(body) = {

set text(
size: 12pt,
lang: "en"
)

set par(leading: 1em)


v(1fr)

align(center, text(1.2em, weight: 600, "Abstract"))

align(
left,
text[
#body
]
)

v(1fr)

pagebreak()
}
15 changes: 15 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/acknowledgement.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#let acknowledgement(body) = {
set text(
size: 12pt,
lang: "en",
)

set par(leading: 1em)


v(25mm)
// --- Acknowledgements ---
align(center, text(1.5em, weight: 700, "Acknowledgements"))
body
pagebreak()
}
40 changes: 40 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/cover.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#let covertitel(
degree: "",
program: "",
school: "",
) = {
// --- Cover ---
v(1cm)
align(center, image("TUM_logo.svg", width: 26%))

upper(align(center, text(font: "New Computer Modern", 1.75em, weight: 700, school)))
upper(align(center, text(font: "New Computer Modern", 1.45em, weight: 500, program)))
upper(align(center, text(font: "New Computer Modern", 1.45em, weight: 500, "Technische Universität München")))

v(15mm)

align(center, text(1.3em, weight: 100, degree + "’s Thesis in " + program))

v(15mm)
}


#let cover(
title: "",
degree: "",
program: "",
author: "",
school: "",
) = {

covertitel(degree: degree, program: program, school: school)

align(center, text(2em, weight: 700, title))

v(10mm)
align(center, text(2em, weight: 500, author))

pagebreak()
}


31 changes: 31 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/disclaimer.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#let disclaimer(
title: "",
degree: "",
author: "",
submission-date: "",
) = {
// --- Disclaimer ---
v(1fr)
text("Disclaimer", weight: 600, size: 1.4em)

v(1.5em)

text(
"I confirm that this "
+ lower(degree)
+ "’s thesis is my own work and I have documented all sources and material used.",
size: 1.1em,
)

v(25mm)
grid(
columns: 2,
gutter: 1fr,
overline[#sym.wj #sym.space #sym.space #sym.space #sym.space Munich, #submission-date #sym.space #sym.space #sym.space #sym.space #sym.wj],
overline[#sym.wj #sym.space #sym.space #sym.space #sym.space #sym.space #author #sym.space #sym.space #sym.space #sym.space #sym.space #sym.wj],
)

v(15%)

pagebreak()
}
93 changes: 93 additions & 0 deletions packages/preview/exzellenz-tum-thesis/0.2.1/template.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#import "cover.typ": *
#import "titlepage.typ": *
#import "disclaimer.typ": *
#import "acknowledgement.typ": *
#import "abstract.typ": *


#let exzellenz-tum-thesis(
degree: "The Degree",
program: "The Program",
school: "The School",
examiner: "Your Supervisor",
supervisors: ("The first supervisor", "The second supervisor"),
author: "The Author",
title-en: "English Title",
title-de: "German Title",
abstract-text: none,
acknowledgements: none,
submission-date: "(Handover Date)",
show-title-in-header: true,
draft: true,
body,
) = {

let draft_string = ""
if draft{
draft_string = "DRAFT - "
}

set document(author: author, title: draft_string + title-en)
set page(
numbering: "1",
number-align: center,
margin: (left: 25mm, right: 25mm, top: 30mm, bottom: 30mm),
header: {
set text(8pt)
h(1fr)
if draft [
DRAFT
]
},
)

set page(numbering: none)

cover(
title: draft_string + title-en,
degree: degree,
program: program,
author: author,
school: school
)

titlepage(
title: draft_string + title-en,
title-de: title-de,
degree: degree,
program: program,
school: school,
examiner: examiner,
supervisors: supervisors,
author: author,
submission-date: draft_string + submission-date
)

disclaimer(
title: title-en,
degree: degree,
author: author,
submission-date: submission-date
)
if acknowledgements != none {
acknowledgement(acknowledgements)
}

abstract(abstract-text)

set page(
header: {
set text(8pt)
if show-title-in-header [
#author - #title-en
]
h(1fr)
if draft [
DRAFT
]
},
)

body

}
Loading
Loading