style(show): use show: lettre.with() instead of unnamed function

- Maybe more idiomatic… not sure actually
This commit is contained in:
Fabrice Mouhartem 2025-02-11 20:01:30 +01:00
parent 1961298f00
commit 63acdd1397
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
3 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
#import "lettre.typ": *
#show link: strong
#show: doc => lettre(
#show: lettre.with(
de: [
Ex Péditeur,\
12 rue des Sept Nains\
@ -21,7 +21,6 @@
post: [
#emph("PS: Finalement, rien.")
],
doc
)
je soussigné, Ex Péditeur, atteste par la présente sur lhonneur que ce document

View File

@ -8,7 +8,7 @@ parameters, with the [`lettre.typ`](./lettre.typ) file in the same folder:
```typst
#import "lettre.typ": *
#show: doc => lettre(
#show: lettre.with(
de: [
Sender\
Address
@ -26,7 +26,6 @@ parameters, with the [`lettre.typ`](./lettre.typ) file in the same folder:
post: [
post-letter (e.g., post-scriptum)
],
doc
)
```