Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Typst Thesis Template

Updated: 05 Mar 2026

For bachelor / master thesis we created a template utilizing Typst, a modern typesetting system. When you use the starterkit, the build of a Typst thesis using this template is automated. That is, with every new commit the pdf export of the thesis is updated and include at the top right corner of your site.

Although the template comes with default settings that already let your thesis look professional, you can customize the output by changing the typst_config.yml file. In this file you can specify which content to include in the export, how to style the document and how to layout the pages. Below you find the typst_config.yml file with the defaults settings and explanations of the different options.

typst_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: 1
project:
  downloads:
    - id: thesis-pdf
  exports:
    - id: thesis-pdf
      format: typst
      template: https://github.com/TUD-JB-OS/typst_template
      output: ./exports/thesis_typst.pdf

      show_cover_full: true
      show_title_page: true
      show_title_page_image: false
      show_contributor_affiliations: true
      show_toc: true
      show_list_of_figures: false
      show_list_of_tables: false
      frontmatter_numbering: roman
      mainmatter_numbering: arabic

# page layout and styling      
      paper_size: a4
      margin_top_cm: 2.5
      margin_bottom_cm: 2.5
      margin_left_cm: 3.0
      margin_right_cm: 2.0
      font_body: Libertinus Serif
      font_mono: Consolas
      font_size_pt: 11
      line_spacing_em: 1
      
      toc_depth: 3
      logo: config/assets/brand/logo.svg

      # Cover variant: simple | graphical | custom
      cover_page_variant: graphical
      cover_background_image: figures/cover.jpg
      cover_title_box_opacity_pct: 55
      
      # Title-page variant: simple | formal | custom
      title_page_variant: "formal"
      title_page_image: figures/cover.jpg
      title_page_image_anchor: bottom
      title_page_image_width_cm: 3
      title_page_image_dx_cm: 0
      title_page_image_dy_cm: -3.0

Override defaults

OptionTypeDefaultDescription
show_cover_fullbooleantrueWhether to show the full cover page
show_title_pagebooleantrueWhether to show the title page
show_title_page_imagebooleanfalseWhether to show an image on the title page
show_contributor_affiliationsbooleantrueWhether to show contributor affiliations
show_tocbooleantrueWhether to show the table of contents
show_list_of_figuresbooleanfalseWhether to show the list of figures
show_list_of_tablesbooleanfalseWhether to show the list of tables
frontmatter_numberingstringromanPage numbering style for frontmatter (e.g. “roman” for roman numerals)
mainmatter_numberingstringarabicPage numbering style for main content (e.g. “arabic” for numbers)
paper_sizestringa4Paper size to be used (e.g. “a4”, “letter”)
margin_top_cmnumber2.5Top margin in centimeters
margin_bottom_cmnumber2.5Bottom margin in centimeters
margin_left_cmnumber3.0Left margin in centimeters
margin_right_cmnumber2.0Right margin in centimeters
font_bodystringLibertinus SerifFont to use for body text
font_monostringConsolasFont to use for monospaced text
font_size_ptnumber11Base font size in points
line_spacing_emnumber1Line spacing in em units
toc_depthnumber3Depth of the table of contents
logofile-Path to logo image (e.g. “config/assets/brand/logo.svg”)
cover_page_variantstringgraphicalCover page design variant (“simple”, “graphical”, or “custom”)
cover_background_imagefile-Path to background image for cover page
cover_title_box_opacity_pctnumber55Opacity of title box on cover in percentage
title_page_variantstringformalTitle page design variant (“simple”, “formal”, or “custom”)
title_page_imagefile-Path to image for title page
title_page_image_anchorstringbottomAnchor position of title page image
title_page_image_width_cmnumber3Width of title page image in centimeters
title_page_image_dx_cmnumber0Horizontal offset of title page image in centimeters
title_page_image_dy_cmnumber-3.0Vertical offset of title page image in centimeters