A Typst template for h_da thesis and papers in the department of Computer Sciences.
The template recreates mbredel/thesis-template by forking the the existing template of DHBW, which looked the most similar to the original latex implementation for h_da students.
This is an unofficial template for Hochschule Darmstadt - University of Applied Sciences for the department of Computer Sciences. Contributions and takeover by h_da affiliated are welcome.
Getting started
Run the following command in your terminal to create a new project using this template:
Make sure to replace <version> with the actual version you want to use, e.g. 0.2.0.
typst init @preview/clean-hda:<version> MyMasterThesis
Abbreviations
The template includes built-in support for abbreviations using the abbr package. You can define your abbreviations in a CSV file and reference them throughout your document.
Setting up abbreviations
- Create a CSV file with your abbreviations (e.g.,
abbr.csv) in your project directory:
PR,Pull Request
MR,Merge Request
K8S,Kubernetes
CI/CD,Continuous Integration/Continuous Deployment
h_da,Hochschule Darmstadt
- Load the abbreviations file in your main document before the
show: clean-hda.with(...)statement:
#import "@preview/clean-hda:0.3.0": *
#import "@preview/abbr:0.3.0"
// Load abbreviations BEFORE applying the template
#abbr.load("abbr.csv")
#show: clean-hda.with(
title: "Your Title",
// ... other configuration ...
abbr-page-break: false, // optional: set to true to start abbreviations list on new page
)
Using abbreviations in your text
Once loaded, you can use abbreviations in your text. The abbr package provides several functions - see the official documentation for all options:
| Typst Input | Rendered Output |
|---|---|
The @API is widely used. @HTTP is a common protocol. Multiple @API:pla can be combined. |
The Application Programming Interface (API) is widely used. Hypertext Transfer Protocol (HTTP) is a common protocol. Multiple APIs can be combined. |
The template will automatically:
- Generate a list of abbreviations in the front matter
- Include the abbreviations list in the Table of Contents
- Apply consistent styling to abbreviation references (blue colored links)
- Support the
abbr-page-breakparameter to control whether the abbreviations list starts on a new page
Bibliography and Citation Style
The template includes a customized IEEE citation style (ieee.csl) that displays full author names instead of abbreviated initials. This differs from the standard IEEE style which abbreviates first names (e.g., “J. Smith” becomes “John Smith”).
Using the custom IEEE style
The custom IEEE style is used by entering the file path
#show: clean-hda.with(
title: "Your Title",
// ... other configuration ...
// default:
// bib-style: "ieee",
// customized with full names
bib-style: "ieee.csl",
bibliography: bibliography("sources.bib"),
)
The custom ieee.csl file is included in the template and automatically provides:
- Full author names in references (not abbreviated)
- Compliance with IEEE formatting guidelines otherwise
Math Equation Numbering
The template provides optional automatic numbering for math equations. By default, math equations are not numbered.
Enabling math equation numbering
To enable automatic numbering of equations, set the enable-math-numbering parameter to true:
#show: clean-hda.with(
title: "Your Title",
// ... other configuration ...
enable-math-numbering: true, // Enable automatic equation numbering
math-numbering: "(1)", // Optional: customize numbering format (default: "(1)")
)
When enabled, all display math equations will be automatically numbered. You can customize the numbering format using the math-numbering parameter (e.g., "(1)", "[1]", etc.).
Getting started for template development
You may want to follow these steps if you want to contribute to the template itself and make your development easier for fast iteration cycles.
- Add this as a git submodule
git submodule add https://github.com/stefan-ctrl/clean-hda-typst-template hda_template
- Include as the following in your
main.typst:
#import "./hda_template/template/main.typ": *
Contributions are welcome.
Forked from DHBW Template
Please review the original forked documentation for more information, configuration and usage options : roland-KA/clean-dhbw-typst-template
To see the direct changes compared to the forked project, consider taking a look at the CHANGELOG.MD.