From 7ef9aa57c7e5d60d0d11cf00b05eb6d0b7855dc2 Mon Sep 17 00:00:00 2001 From: Maxime Augier Date: Thu, 23 May 2024 09:41:26 +0200 Subject: [PATCH] Tweak exam code --- exam/demo.typ | 5 +++-- exam/lib.typ | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exam/demo.typ b/exam/demo.typ index a1f69dc..35c4257 100644 --- a/exam/demo.typ +++ b/exam/demo.typ @@ -14,12 +14,13 @@ La commande `#question` permet de définir une question avec un bloc de réponse. Le contenu de la réponse sera uniquement affiché dans le corrigé. -#question[Quelle est la manière la plus simple de fournir une réponse ?][ +#question[ + Quelle est la manière la plus simple de fournir une réponse ? +][ Avec un 2e argument à la fonction `question`. ] #question[Est-il possible d'avoir un bloc réponse séparé ?] - #reponse[Bien sûr ! Avec la commande `réponse`. ] #question[Comment fonctionne la numérotation des questions ?][ diff --git a/exam/lib.typ b/exam/lib.typ index c8338e9..afb128b 100644 --- a/exam/lib.typ +++ b/exam/lib.typ @@ -80,7 +80,7 @@ pagebreak() set text(font: "Carlito", size: 12pt) - show heading: h => pad(bottom: 0.5em, text(fill: eastern, size: 16pt, weight: "light", h.body + [ (#show_points(points_counter(h)))])) + show heading: h => pad(bottom: 0.5em, text(fill: eastern, size: 16pt, weight: "light", [#(h.body) (#show_points(points_counter(h)))])) set page(header: [#course #year - #title], footer: align(right, text(fill: gray, "Page ") + context counter(page).display("1 | 1", both: true))) doc