This is an unofficial template for writing a report or thesis in the HAW Hamburg department of Computer Science design using Typst.
Required Fonts
To correctly render this template please make sure that the New Computer Modern font is installed on your system.
Usage
To use this package just add the following code to your Typst document:
Report
#import "@preview/haw-hamburg:0.3.0": report
#show: report.with(
language: "en",
title: "Example title",
author:"Example author",
faculty: "Engineering and Computer Science",
department: "Computer Science",
include-declaration-of-independent-processing: true,
)
Bachelor Thesis
#import "@preview/haw-hamburg:0.3.0": bachelor-thesis
#show: bachelor-thesis.with(
language: "en",
title-de: "Beispiel Titel",
keywords-de: ("Stichwort", "Wichtig", "Super"),
abstract-de: "Beispiel Zusammenfassung",
title-en: "Example title",
keywords-en: ("Keyword", "Important", "Super"),
abstract-en: "Example abstract",
author: "Example author",
faculty: "Engineering and Computer Science",
department: "Computer Science",
study-course: "Bachelor of Science Informatik Technischer Systeme",
supervisors: ("Prof. Dr. Example", "Prof. Dr. Example"),
submission-date: datetime(year: 1948, month: 12, day: 10),
include-declaration-of-independent-processing: true,
)
Master Thesis
#import "@preview/haw-hamburg:0.3.0": master-thesis
#show: master-thesis.with(
language: "en",
title-de: "Beispiel Titel",
keywords-de: ("Stichwort", "Wichtig", "Super"),
abstract-de: "Beispiel Zusammenfassung",
title-en: "Example title",
keywords-en: ("Keyword", "Important", "Super"),
abstract-en: "Example abstract",
author: "The Computer",
faculty: "Engineering and Computer Science",
department: "Computer Science",
study-course: "Master of Science Computer Science",
supervisors: ("Prof. Dr. Example", "Prof. Dr. Example"),
submission-date: datetime(year: 1948, month: 12, day: 10),
include-declaration-of-independent-processing: true,
)
How to Compile
This project contains an example setup that splits individual chapters into different files.
This can cause problems when using references etc.
These problems can be avoided by following these steps:
- Make sure to always compile your
main.typfile which includes all of your chapters for references to work correctly. - VSCode:
- Install the Tinymist Typst extension.
- Make sure to start the
PDForLive Previewonly from within yourmain.typfile. - If problems occur it usually helps to close the preview and restart it from your
main.typfile.
Examples
Examples can be found inside of the examples directory
- For Bachelor theses see: Bachelor thesis example
- For Master theses see: Master thesis example
- For reports see: Report example