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 documentstum-blue
: The TUM Brand Colortum-info-block
: Builds the TUM affiliation block often visible at the top of a documenttum-author
: Builds an Author object as expected by some templates (for exampletum-article
)
Last page update: Saturday, January 18th 2025, 04:25:25 UTC