Skip to content

Sematre/typst-letter-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst-letter-pro

A template for creating business letters following the DIN 5008 standard.

Overview

typst-letter-pro provides a convenient and professional way to generate business letters with a standardized layout. The template follows the guidelines specified in the DIN 5008 standard, ensuring that your letters adhere to the commonly accepted business communication practices.

The goal of typst-letter-pro is to simplify the process of creating business letters while maintaining a clean and professional appearance. It offers predefined sections for the sender and recipient information, subject, date, header, footer and more.

Example

Text source: Musterbrief Widerspruch gegen Einkommensteuerbescheid

Preview (PDF version)

Image of a simple letter created with typst-letter-pro

Code

#import "@preview/letter-pro:3.0.0": letter-simple

#set text(lang: "de")

#show: letter-simple.with(
  sender: (
    name: "Anja Ahlsen",
    address: "Deutschherrenufer 28, 60528 Frankfurt",
    extra: [
      Telefon: #link("tel:+4915228817386")[+49 152 28817386]\
      E-Mail: #link("mailto:[email protected]")[aahlsen\@example.com]\
    ],
  ),
  
  annotations: [Einschreiben - Rückschein],
  recipient: [
    Finanzamt Frankfurt\
    Einkommenssteuerstelle\
    Gutleutstraße 5\
    60329 Frankfurt
  ],
  
  reference-signs: (
    ([Steuernummer], [333/24692/5775]),
  ),
  
  date: "12. November 2014",
  subject: "Einspruch gegen den ESt-Bescheid",
)

Sehr geehrte Damen und Herren,

die von mir bei den Werbekosten geltend gemachte Abschreibung für den im
vergangenen Jahr angeschafften Fotokopierer wurde von Ihnen nicht berücksichtigt.
Der Fotokopierer steht in meinem Büro und wird von mir ausschließlich zu beruflichen
Zwecken verwendet.

Ich lege deshalb Einspruch gegen den oben genannten Einkommensteuerbescheid ein
und bitte Sie, die Abschreibung anzuerkennen.

Anbei erhalten Sie eine Kopie der Rechnung des Gerätes.

Mit freundlichen Grüßen
#v(1cm)
Anja Ahlsen

#v(1fr)
*Anlagen:*
- Rechnung

Usage

Preview repository

Import the package in your document:

#import "@preview/letter-pro:3.0.0": letter-simple

Local namespace

Download the repository to the local package namespace using Git:

$ git clone -c advice.detachedHead=false https://github.com/Sematre/typst-letter-pro.git --depth 1 --branch v3.0.0 ~/.local/share/typst/packages/local/letter-pro/3.0.0

Then import the package in your document:

#import "@local/letter-pro:3.0.0": letter-simple

Manual

Download the letter-pro-v3.0.0.typ file from the releases page and place it next to your document file, e.g., using wget:

$ wget https://github.com/Sematre/typst-letter-pro/releases/download/v3.0.0/letter-pro-v3.0.0.typ

Then import the package in your document:

#import "letter-pro-v3.0.0.typ": letter-simple

Contributing

Contributions to typst-letter-pro are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on GitHub or submit a pull request.

Before making any significant changes, please discuss your ideas with the project maintainers to ensure they align with the project's goals and direction.

Acknowledgments

This project is inspired by the following projects and resources:

License

Distributed under the MIT License. See LICENSE for more information.