Typst template for french letters
Find a file
2025-02-11 20:03:47 +01:00
exemple.pdf style(show): use show: lettre.with() instead of unnamed function 2025-02-11 20:03:47 +01:00
exemple.typ style(show): use show: lettre.with() instead of unnamed function 2025-02-11 20:03:47 +01:00
lettre.typ style(template): remove useless else 2024-10-20 11:26:16 +02:00
readme.md style(show): use show: lettre.with() instead of unnamed function 2025-02-11 20:03:47 +01:00

A simple template for French letters for typst.

Usage

To create a letter, write a typst document while defining the following parameters, with the lettre.typ file in the same folder:

#import "lettre.typ": *

#show: lettre.with(
  de: [
    Sender\
    Address
  ],
  pour: [
    Recipient\
    Address
  ],
  objet: "subject of the letter", // optional
  date: "date of sending", // optional
  lieu: "location", // optional
  introduction: "opening",
  cloture: "closing",
  signature: "signature",
  post: [
    post-letter (e.g., post-scriptum)
  ],
)

Now you can fill the letter afterward, and compile your document with:

typst compile <filename.typ>

Example

An example file is given in the exemple.typ file in the repository.