From d9b32d86f3b479ffef5bf0c7a0932a8fd907f2cc Mon Sep 17 00:00:00 2001 From: Klagarge Date: Wed, 19 Jun 2024 10:29:58 +0200 Subject: [PATCH] ADD fade transition choice --- 00-templates/template.typ | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/00-templates/template.typ b/00-templates/template.typ index 3ad7915..5370c58 100644 --- a/00-templates/template.typ +++ b/00-templates/template.typ @@ -7,6 +7,7 @@ authors: [], date: datetime.today(), duration: none, + fade: true, handout: false, doc, ) = { @@ -36,21 +37,27 @@ enable-handout-mode(true) } + let transition = if fade { + "fade" + } else { + "none" + } + if duration != none{ pdfpc.config( duration-minutes: duration, default-transition: ( - type: "fade", + type: transition, ) ) } else { pdfpc.config( default-transition: ( - type: "fade", + type: transition, ) ) } - + title-slide( title: [#title], subtitle: [#subtitle],