Skip to content
Merged
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
21 changes: 21 additions & 0 deletions packages/preview/cleanified-hpi-thesis/0.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025-2026 Robert Richter and Felix Hoffmann

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.
49 changes: 49 additions & 0 deletions packages/preview/cleanified-hpi-thesis/0.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# HPI Thesis Template

This template is for HPI students writing their Bachelor's or Master's thesis.

## Disclaimer

- This template is not official.
- Official university guidelines may differ from the ones used in this template.

## Getting Started

```bash
typst init @preview/cleanified-hpi-thesis
```

## Configuration

An example configuration is located in [`example/`](./example/main.typ).

```typst
#import "@preview/cleanified-hpi-thesis:0.1.0": *

#show: project.with(
title: "My Very Long, Informative, Expressive, and Definitely Fancy Title",
translation: "Eine adäquate Übersetzung meines Titels",
name: "Max Mustermann",
date: "17. Juli, 2025",
study-program: "IT-Systems Engineering",
chair: "Data-Intensive Internet Computing",
professor: "Prof. Dr. Rosseforp Renttalp",
advisors: ("This person", "Someone Else"),
abstract: "Some abstract",
abstract-de: "Der deutsche Abstract...",
acknowledgements: "Thanks to ...",
type: "Master",
bibliography: bibliography("references.bib"),
// lang: "de",
// typography: (font: "STIX Two Text", body-text-size: 12pt),
// layout: (for-print: true, toc-depth: 2),
// appearance: (accent-color: rgb("#B1063A")),
// labels: (declaration-city: "Berlin"),
)

... your content ...
```

## Logo Usage

Please note the logo usage guidelines of University of Potsdam ([UP Logo Usage Guidelines](https://www.uni-potsdam.de/fileadmin/projects/zim/files/MMP/PDF_Dateien_MMP/250509-Leitfaden_DigitalPrint-web.pdf)) and Hasso Plattner Institute ([HPI Logo Usage Guidelines](https://hpi.de/en/imprint/)). The logos are subject to copyright of the respective institutions.
53 changes: 53 additions & 0 deletions packages/preview/cleanified-hpi-thesis/0.1.0/example/main.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// For local development, replace the import below with:
// #import "../template/lib.typ": *
#import "@preview/cleanified-hpi-thesis:0.1.0": *

#let abstract = [
This is a very good abstract.
]

#let abstract-de = [
Die ist eine wirklich gute Zusammenfassung.
]

#let acknowledgements = [
Thanks to ...
]

#show: project.with(
title: "My Very Long, Informative, Expressive, and Definitely Fancy Title",
translation: "Eine adäquate Übersetzung meines Titels",
name: "Max Mustermann",
date: "17. Juli, 2025",
study-program: "IT-Systems Engineering",
chair: "Data-Intensive Internet Computing",
professor: "Prof. Dr. Rosseforp Renttalp",
advisors: ("This person", "Someone Else"),
abstract: abstract,
abstract-de: abstract-de,
acknowledgements: acknowledgements,
type: "Master",
bibliography: bibliography("references.bib"),
// lang: "de", // Switch all labels to German defaults
// typography: (font: "STIX Two Text", body-text-size: 12pt),
// layout: (for-print: true, toc-depth: 2),
// appearance: (accent-color: rgb("#B1063A")),
// labels: (declaration-city: "Berlin"),
)

= Introduction
#lorem(80)

As shown by Doe and Smith @example2025, this approach is effective.

== In this paper
#lorem(20)

=== Contributions
#lorem(40)

==== Really Small Stuff
#lorem(20)

= Related Work
#lorem(500)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@article{example2025,
author = {Jane Doe and John Smith},
title = {An Example Article for Demonstration},
journal = {Journal of Examples},
year = {2025},
volume = {1},
number = {1},
pages = {1--10},
}
69 changes: 69 additions & 0 deletions packages/preview/cleanified-hpi-thesis/0.1.0/template/hpi-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#let hpi-title-page(
professor: "",
advisors: (),
chair: "",
name: "",
title: "",
translation: "",
study-program: "",
date: none,
type: "",
accent-color: rgb("#4f5358"),
university-logo: "up-logo.svg",
institute-logo: "hpi-logo.svg",
labels: (:),
) = {
assert(type in ("Bachelor", "Master", ""), message: "type must be 'Bachelor' or 'Master'")

let (thesis-kind, degree, abbreviation) = if type == "Master" {
(labels.at("master-thesis-kind"), labels.at("master-degree"), labels.at("master-abbreviation"))
} else {
(labels.at("bachelor-thesis-kind"), labels.at("bachelor-degree"), labels.at("bachelor-abbreviation"))
}

page(footer: [])[
// Title page
#grid(
columns: (1fr, 1fr),
rows: (80pt, 80pt),
grid.cell(image(university-logo, alt: "University logo")),
grid.cell(align(right, image(
institute-logo,
alt: "Institute logo",
))),
)

#align(center, block[
#line(length: 100%, stroke: 0.75pt + accent-color)\
#text(2em, weight: "bold", title) \ \
#text(1.5em, translation) \ \
#line(length: 100%, stroke: 0.75pt + accent-color)
])

#align(center, text(1.5em, weight: "bold", name))

#align(center, block[
#thesis-kind\
#labels.at("thesis-purpose")
])

#align(center, text(1.5em, block[
#degree \
#text(style: "italic", "(" + abbreviation + ")")
]))

#align(center, block[
#labels.at("study-program-label") \
#study-program
])

#align(center, block[
#labels.at("submitted-on") #date #labels.at("submitted-on-suffix") \
#labels.at("chair-label") #chair #labels.at("chair-suffix") \
#labels.at("faculty") \
#labels.at("university")
])

#v(1cm)
#align(center, grid(
columns: (1fr, 1.8fr),
rows: (18pt, 18pt),
grid.cell(align(left, text(weight: "bold", labels.at("examiner")))),
grid.cell(align(left, professor)),
grid.cell(align(left, text(weight: "bold", labels.at("advisor")))),
grid.cell(align(left, advisors.join(", "))),
))
]
}
Loading
Loading