Home

Awesome

typst l<sub>e</sub>tt<sub>e</sub>r

A customizable Typst letter template with some presets for DIN 5008 A/B and Swiss C5 Letter. Please note that the template is still under development and subject to breaking changes.

preview

See the examples

Templates

Parameters

All Parameters are optional and will override the global defaults and the defaults of the chosen format. Some of them allow to either specify the content directly or use a dict if other settings need to be changed also. For example: receiver: "x" is the same as receiver: (content: "x").

Basics

Sender and Receiver

Letter Beginning

Letter Ending

Other functions

Resources

Similar Projects

Development Setup

Currently, I just create a symlink such that I can import it with #import "@local/lttr:0.1.0": * as follows.

mkdir -p ${XDG_DATA_HOME}/typst/packages/local/lttr/
ln -s /path/to/this/repo ${XDG_DATA_HOME}/typst/packages/local/lttr/0.1.0

Installation

While there exists a first version of typst packages, they do not yet accept custom templates (afaik). For the meantime, you can download and extract the release tarball to ${XDG_DATA_HOME}/typst/packages/local/lttr/<version> and import it as described in Development Setup.

Roadmap

There are a couple of limitations in typst which I hope will be addressed.

Other things: