From 63acdd139736712be5d7ef12c9c7174e320994f8 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 11 Feb 2025 20:01:30 +0100 Subject: [PATCH] style(show): use show: lettre.with() instead of unnamed function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Maybe more idiomatic… not sure actually --- exemple.pdf | Bin 20688 -> 20688 bytes exemple.typ | 3 +-- readme.md | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/exemple.pdf b/exemple.pdf index 1c7ebbca0b91e4deb5d9fa4e9c8fe2ddde99414b..670e298f4e4c1bfb162347d4c46842fd119c292e 100644 GIT binary patch delta 164 zcmcbxknzGo#tmQHxlIj>3=It}4GfJeCwYh`l-8mD+gl~(#DmE<{j z2WRKImv2t;W@QvG)ip5EH8cz{w6roXv@)`sT<)WaA-H*s&qros?8eyIYQ}Qe*>M$@ YBo>ua6s4wd8CqIc7;veoy862T094p7LjV8( delta 164 zcmcbxknzGo#tmQHxlIfWj0_Acjf_mqCV7Y;b2rO-=rW5%>AQMbROn|rhL<|$7G`<` znmeTzI&Mz#W@QvG(KR&CH8Kb>u(UEVvNAQBT<)WaA-H*s&qros?8eyIYQ}Qe*>M$@ YBo>ua6s4wd8CqIc7;veoy862T0QT`N0{{R3 diff --git a/exemple.typ b/exemple.typ index 3652353..d179747 100644 --- a/exemple.typ +++ b/exemple.typ @@ -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 diff --git a/readme.md b/readme.md index a287f99..c146af9 100644 --- a/readme.md +++ b/readme.md @@ -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 ) ```