2
1

Compare commits

..

3 Commits

Author SHA1 Message Date
d9b32d86f3
ADD fade transition choice 2024-06-19 10:29:58 +02:00
6732c64d5f
CHG dates 2024-06-19 10:29:39 +02:00
562f5b52f1
ADD handout 2024-06-19 10:28:59 +02:00
2 changed files with 30 additions and 7 deletions

View File

@ -5,12 +5,25 @@
title: [Title],
subtitle: none,
authors: [],
date: none,
date: datetime.today(),
duration: none,
fade: true,
handout: false,
doc,
) = {
set text(font: "Inria Sans")
//set text(font: "Inria Sans")
let date-text = if date.day() == 1 {
date.display("[weekday], [day padding:none]st of [month repr:long] [year]")
} else if date.day() == 2 {
date.display("[weekday], [day padding:none]nd of [month repr:long] [year]")
} else if date.day() == 3 {
date.display("[weekday], [day padding:none]rd of [month repr:long] [year]")
} else {
date.display("[weekday], [day padding:none]th of [month repr:long] [year]")
}
show: clean-theme.with(
//aspect-ratio: "4-3",
@ -20,17 +33,27 @@
color: rgb("#ea366a"),
)
if handout {
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,
)
)
}
@ -39,7 +62,7 @@
title: [#title],
subtitle: [#subtitle],
authors: ([#authors]),
date: [#date],
date: [#date-text],
)
doc

View File

@ -4,7 +4,7 @@
title: [Title],
subtitle: [Subtitle],
authors: [Author A, Author B],
date: datetime.today().display("[day].[month].[year]"),
date: datetime.today(),
duration: 10, // time in minutes for presentation or counter timer if no field is given
doc,
)