Compare commits
No commits in common. "dccd6c9d6d2076713cf37a8dd8f9ed866ab5f344" and "a1f2ab79826db727b402bbd7f103a0a7a3bbebb0" have entirely different histories.
dccd6c9d6d
...
a1f2ab7982
BIN
exemple.pdf
BIN
exemple.pdf
Binary file not shown.
|
@ -27,5 +27,4 @@
|
||||||
je soussigné, Ex Péditeur, atteste par la présente sur l’honneur que ce document
|
je soussigné, Ex Péditeur, atteste par la présente sur l’honneur que ce document
|
||||||
a été réalisé avec #link("https://typst.app/")[Typst].
|
a été réalisé avec #link("https://typst.app/")[Typst].
|
||||||
|
|
||||||
Les sources sont disponibles à l’adresse suivante:
|
Les sources sont disponibles à l’adresse suivante: #link("https://git.epheme.re/fmouhart/typst-lettre").
|
||||||
#link("https://git.epheme.re/fmouhart/typst-lettre").
|
|
||||||
|
|
41
readme.md
41
readme.md
|
@ -1,42 +1 @@
|
||||||
A simple template for French letters for typst.
|
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:
|
|
||||||
|
|
||||||
```typst
|
|
||||||
#import "lettre.typ": *
|
|
||||||
#show link: strong
|
|
||||||
|
|
||||||
#show: doc => lettre(
|
|
||||||
de: [
|
|
||||||
Sender\
|
|
||||||
Address
|
|
||||||
],
|
|
||||||
pour: [
|
|
||||||
Recipient\
|
|
||||||
Address
|
|
||||||
],
|
|
||||||
objet: "subject of the letter", // optional
|
|
||||||
date: "date of sending", // optional
|
|
||||||
lieu: "location",
|
|
||||||
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:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
typst compile <filename.typ>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Example
|
|
||||||
|
|
||||||
An example file is given in the [`exemple.typ`](./exemple.typ) file in the repository.
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user