style(show): use show: lettre.with() instead of unnamed function
- Maybe more idiomatic… not sure actually
This commit is contained in:
parent
1961298f00
commit
63acdd1397
BIN
exemple.pdf
BIN
exemple.pdf
Binary file not shown.
@ -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 l’honneur que ce document
|
||||
|
@ -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
|
||||
)
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user