Skip to content

Commit b30f6e4

Browse files
authored
haw-hamburg-bachelor-thesis:0.4.0, haw-hamburg-master-thesis:0.4.0, haw-hamburg-report:0.4.0 and haw-hamburg:0.4.0 (typst#1779)
1 parent cd39f95 commit b30f6e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3595
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Lasse Rosenow
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# HAW Hamburg Typst Template
2+
3+
This is an **`unofficial`** template for writing a bachelor thesis in the `HAW Hamburg` department of `Computer Science` design using [Typst](https://github.com/typst/typst).
4+
5+
## Required Fonts
6+
7+
To correctly render this template please make sure that the `New Computer Modern` font is installed on your system.
8+
9+
## Usage
10+
11+
To use this package just add the following code to your [Typst](https://github.com/typst/typst) document:
12+
13+
```typst
14+
#import "@preview/haw-hamburg:0.4.0": bachelor-thesis
15+
16+
#show: bachelor-thesis.with(
17+
language: "en",
18+
19+
title-de: "Beispiel Titel",
20+
keywords-de: ("Stichwort", "Wichtig", "Super"),
21+
abstract-de: "Beispiel Zusammenfassung",
22+
23+
title-en: "Example title",
24+
keywords-en: ("Keyword", "Important", "Super"),
25+
abstract-en: "Example abstract",
26+
27+
author: "Example author",
28+
faculty: "Engineering and Computer Science",
29+
department: "Computer Science",
30+
study-course: "Bachelor of Science Informatik Technischer Systeme",
31+
supervisors: ("Prof. Dr. Example", "Prof. Dr. Example"),
32+
submission-date: datetime(year: 1948, month: 12, day: 10),
33+
include-declaration-of-independent-processing: true,
34+
)
35+
```
36+
37+
## How to Compile
38+
39+
This project contains an example setup that splits individual chapters into different files.\
40+
This can cause problems when using references etc.\
41+
These problems can be avoided by following these steps:
42+
43+
- Make sure to always compile your `main.typ` file which includes all of your chapters for references to work correctly.
44+
- VSCode:
45+
- Install the [Tinymist Typst](https://marketplace.visualstudio.com/items?itemName=myriad-dreamin.tinymist) extension.
46+
- Make sure to start the `PDF` or `Live Preview` only from within your `main.typ` file.
47+
- If problems occur it usually helps to close the preview and restart it from your `main.typ` file.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// This file is redundant, but required by the Typst packaging system
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#let abbreviations-entry-list = (
2+
(
3+
key: "cpu",
4+
short: "CPU",
5+
long: "Central Processing Unit",
6+
),
7+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@book{UN,
2+
author = {{United Nations}},
3+
title = {Universal Declaration of Human Rights},
4+
year = {1948},
5+
month = dec,
6+
venue = {Paris},
7+
month_numeric = {12}
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#import "../dependencies.typ": *
2+
3+
= Introduction
4+
5+
== How to Use Abbreviations
6+
7+
This is how to call an abbreviation such as @cpu for the first time.
8+
9+
After that it will look different: @cpu.
10+
11+
And for plurals: @cpu:pl.
12+
13+
It is also call it using a different syntax: #gls("cpu") and #glspl("cpu").
14+
15+
== How to Use Glossary Entries
16+
17+
Glossary entries can be called the same way: @freedom or #gls("freedom").
18+
19+
It is also possible to call plurals: @freedom:pl or #glspl("freedom").
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#import "../dependencies.typ": *
2+
3+
= Background
4+
5+
== Subsection
6+
7+
#lorem(400)
8+
9+
== Another Subsection
10+
11+
#lorem(300)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import "@preview/glossarium:0.5.3": *
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#let glossary-entry-list = (
2+
(
3+
key: "freedom",
4+
short: "freedom",
5+
description: "Freedom is the power or right to speak, act and change as one wants without hindrance or restraint. Freedom is often associated with liberty and autonomy in the sense of \"giving oneself one's own laws\"",
6+
),
7+
)

0 commit comments

Comments
 (0)