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": *
|
#import "lettre.typ": *
|
||||||
#show link: strong
|
#show link: strong
|
||||||
|
|
||||||
#show: doc => lettre(
|
#show: lettre.with(
|
||||||
de: [
|
de: [
|
||||||
Ex Péditeur,\
|
Ex Péditeur,\
|
||||||
12 rue des Sept Nains\
|
12 rue des Sept Nains\
|
||||||
@ -21,7 +21,6 @@
|
|||||||
post: [
|
post: [
|
||||||
#emph("PS: Finalement, rien.")
|
#emph("PS: Finalement, rien.")
|
||||||
],
|
],
|
||||||
doc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
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
|
||||||
|
@ -8,7 +8,7 @@ parameters, with the [`lettre.typ`](./lettre.typ) file in the same folder:
|
|||||||
```typst
|
```typst
|
||||||
#import "lettre.typ": *
|
#import "lettre.typ": *
|
||||||
|
|
||||||
#show: doc => lettre(
|
#show: lettre.with(
|
||||||
de: [
|
de: [
|
||||||
Sender\
|
Sender\
|
||||||
Address
|
Address
|
||||||
@ -26,7 +26,6 @@ parameters, with the [`lettre.typ`](./lettre.typ) file in the same folder:
|
|||||||
post: [
|
post: [
|
||||||
post-letter (e.g., post-scriptum)
|
post-letter (e.g., post-scriptum)
|
||||||
],
|
],
|
||||||
doc
|
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user