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