Home

Awesome

typst-din-5008-letter

A template for DIN 5008 inspired typst letter.

Furthermore, there is a envelope template.

Reference

The reference can be found at the Documentation. You should also take a look at the examples, to see how this package works in practise. Especially, example_letter.typ shows off many package options.

Usage

Right now, a entry in the public typst package @preview repository is not planned. However, a local package can be achieved downloading the repo in the local package directory (see typst package README)

local package

This method provides simpler versioning and a cleaner folder structure. However, as this method works only locally, it is not supported in the typst web app. The usage is pricipally the same as in the next section, but the first line changes to

#import "@local/letter:0.1.0": letter

repo copy in letter folder

To use the template, create a file next to letter.typ and use the important parts of this:

#import "letter.typ" : letter

You can also specify the package path as root when working locally.

Tipps

Showcase

The resulting pdfs are included in the examples directory, but the first pages looks like this:

example_letternice_defaultstemplate_letterenvelope_ex
example_letternice_defaultstemplate_letterenvelope_ex

Notable differences from DIN standard

ToDo's

Because certain functionality is not possible in typst right now, here are some things I want to add later on.

Furthermore, if someone has any ideas on how to improve this class, feel free to create an issue or better a PR.