Typst template for letters
Go to file
Fabrice Mouhartem 9af1dcb98b
fix(template): fix the display of location and date
- extra space
- without the location, the comma still appeared
- docs(readme): add the optional comment for the sending location
2024-10-20 11:24:05 +02:00
exemple.pdf fix(template): fix the display of location and date 2024-10-20 11:24:05 +02:00
exemple.typ style(example): wrapping 2024-10-19 21:37:48 +02:00
lettre.typ fix(template): fix the display of location and date 2024-10-20 11:24:05 +02:00
readme.md fix(template): fix the display of location and date 2024-10-20 11:24:05 +02: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: doc => lettre(
  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)
  ],
  doc
)

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.