41 lines
805 B
Markdown
41 lines
805 B
Markdown
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`](./lettre.typ) file in the same folder:
|
|
|
|
```typst
|
|
#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:
|
|
|
|
```bash
|
|
typst compile <filename.typ>
|
|
```
|
|
|
|
## Example
|
|
|
|
An example file is given in the [`exemple.typ`](./exemple.typ) file in the repository.
|