TUM Templates for Typst

TUM Templates for Typst. Based on the LaTex4EI templates.

Installation

Clone this repository into {data-dir}/typst/packages/{namespace}/tum-templates/{version}.

git clone https://github.com/lufixSch/tum-templates-typst.git {data-dir}/typst/packages/{namespace}/tum-templates/{version}

Here {data-dir} is the directory for local Typst packages:

  • $XDG_DATA_HOME or ~/.local/share on Linux
  • ~/Library/Application Support on macOS
  • %APPDATA% on Windows

{namespace} is the namespace you choose. In the following the local namespace is used. The package {version} can be obtained from the typst.toml file

Afterwards the package can be imported:

#import "@local/tum-templates:0.2.0": *

...

Typst WebAPP

Unfortunately this package is not yet available as an official Typst package. Therefore it can not be imported/installed in the Typst webapp. The easiest workaround is, to upload the utility.typ, the .typ file corresponding to the required template and the assets to your project.

Usage

Currently, the following templates are supported:

  • Article (tum-article): Generic scientific article
  • Beamer (tum-beamer): Presentation slides based on the touying package

The template is initialized as follows. Arguments change depending on the specific template.

#import "@local/tum-templates:0.2.0": *

#show template.with(...)

Utility

The package also provides the following utility functions and variables:

  • tum-text-font: The font family used in tum documents
  • tum-blue: The TUM Brand Color
  • tum-info-block: Builds the TUM affiliation block often visible at the top of a document
  • tum-author: Builds an Author object as expected by some templates (for example tum-article)

Last page update: Saturday, January 18th 2025, 04:25:25 UTC

Many of the articles on this website are automatically generated from the markdown files in the corresponding repositories. This might lead to some unexpected results, so please let me know if you find any errors!

Some articles are still in German, but I am working on translating them. If you are interested in a specific article, don't hesitate to contact me!

If you want to get in touch, you can send me an email at lukas.schuettler@tum.de.