2
1

ADD fade transition choice

This commit is contained in:
Rémi Heredero 2024-06-19 10:29:58 +02:00
parent 6732c64d5f
commit d9b32d86f3
Signed by: Klagarge
GPG Key ID: 3CBAC2C6CD1E8807

View File

@ -7,6 +7,7 @@
authors: [], authors: [],
date: datetime.today(), date: datetime.today(),
duration: none, duration: none,
fade: true,
handout: false, handout: false,
doc, doc,
) = { ) = {
@ -36,17 +37,23 @@
enable-handout-mode(true) enable-handout-mode(true)
} }
let transition = if fade {
"fade"
} else {
"none"
}
if duration != none{ if duration != none{
pdfpc.config( pdfpc.config(
duration-minutes: duration, duration-minutes: duration,
default-transition: ( default-transition: (
type: "fade", type: transition,
) )
) )
} else { } else {
pdfpc.config( pdfpc.config(
default-transition: ( default-transition: (
type: "fade", type: transition,
) )
) )
} }