From 15c2cb4cac4b5c5154b60178bf27b908fdd0d40f Mon Sep 17 00:00:00 2001 From: Maxime Augier Date: Thu, 23 May 2024 09:40:55 +0200 Subject: [PATCH] Use partial application for nicer show API --- exam/demo.typ | 7 +++---- exam/lib.typ | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/exam/demo.typ b/exam/demo.typ index dacaaf9..a1f69dc 100644 --- a/exam/demo.typ +++ b/exam/demo.typ @@ -1,13 +1,12 @@ -#import "@ysec/exam:0.1.0": exam, question, reponse -#show: doc => exam( +#import "@y-sec/exam:0.1.0": exam, question, reponse +#show: exam( title: "Examen en Typst", subtitle: "Y-Security - Typst Essentials", course: "TES", - date: datetime(year: 2024, month: 5, day: 27), + date: datetime(year: 2050, month: 1, day: 1), author: "Maxime Augier", time: "45 minutes", allowed: "une page A4 (recto-verso) de résumé personnel", - doc ) = Questions et Réponses diff --git a/exam/lib.typ b/exam/lib.typ index f21e089..c8338e9 100644 --- a/exam/lib.typ +++ b/exam/lib.typ @@ -29,7 +29,7 @@ #let exam(title: "Exam", course: none, date: none, class: none, year: none, author: none, subtitle: none, indications: none, - time: none, allowed: none, doc) = { + time: none, allowed: none) = doc => { { set text(font: "Montserrat")