An (unoffical) template for writing a thesis at the Karlsruhe Institute of Technology (KIT) using Typst.
TLDR: Run make install, create a new project typst init @local/kit-thesis:0.1.0 and open kit-thesis/thesis.pdf.
- KIT corporate design
- Generation of SVG line plots (
.line-plot.svg) from CSVs (.line-plot.csv) using Python/matplotlib in theassets/directory - Generation of basic statistics (
.stats.csv) from CSVs (.line-plot.csv) data using Python/pandas including mean, median, standard deviation, min, max, and count - Generation of Typst tables from CSV data, for example to show computed statistics
- Conversion of draw.io PDF exports to SVG for embedding in Typst (see Tips & Tricks)
- Bibliography management using BibTeX (see
references.bib) - Macros for showing ToDo blocks (
#todo-block[text]) and ToDo footnotes (#todo[text]) - Makefile for easy building and watching for changes
- Example chapters to get you started quickly
- Inline author citations using
#cite(<SOURCE>, form: "author")powered by a custom cite style ensures that inline citations have a maximum of 3 authors before using "et al."
- Install Typst, matplotlib and pandas for Python
- Install this template to your local packages
make install - Create a new project
typst init @local/kit-thesis:0.1.0andcd kit-thesis - Fill your data in
thesis.typ - Write your thesis text in the corresponding files for each chapter in
chapters/ - Add your references to
references.bib(BibTeX format) - Add your figures, CSV data and draw.io-generated PDFs to the
assets/directory - Run
make watchto auto-build on changes ormake buildto build once, and openthesis.pdf
- Inline author citations:
#cite(<SOURCE>, form: "author")lists the authors. A custom cite style ensures that inline citations have a maximum of 3 authors before using "et al.". - DOI hyperlink bug: If a citation contains a DOI, the first part of the link (i.e. the
https://doi.org/) is clickable. If the DOI is removed and a URL is used instead, the URL is shown and is fully clickable. - Labels: To better organize labels and avoid naming conflicts, consider using labels with their category and section, i.e.
<sec:SECTION>,<fig:SECTION:FIGURE>,<tab:SECTION:TABLE>. - Draw.io figures: If you want to use draw.io to create figures, export them as PDF (not as SVG) and put them in the
assets/directory. The Makefile automatically converts them to SVG for embedding in Typst. Trying to export SVGs directly from draw.io and embedding them in Typst leads to black boxes instead of the actual figure.
The KIT logo is property of the Karlsruhe Institute of Technology (KIT) and is used according to the KIT Corporate Design Guidelines. The rest of the code in this repository is licensed under the MIT-0 License.
