2
1

add fade transition and speaker-note

This commit is contained in:
Rémi Heredero 2024-05-18 14:22:59 +02:00
parent e0b90f4d17
commit 7c423edd3b
Signed by: Klagarge
GPG Key ID: 3CBAC2C6CD1E8807
4 changed files with 27 additions and 0 deletions

View File

@ -6,6 +6,7 @@
subtitle: none,
authors: [],
date: none,
duration: none,
doc,
) = {
@ -19,6 +20,21 @@
color: rgb("#ea366a"),
)
if duration != none{
pdfpc.config(
duration-minutes: duration,
default-transition: (
type: "fade",
)
)
} else {
pdfpc.config(
default-transition: (
type: "fade",
)
)
}
title-slide(
title: [#title],
subtitle: [#subtitle],

Binary file not shown.

1
slides.pdfpc Normal file
View File

@ -0,0 +1 @@
{"pdfpcFormat":2,"disableMarkdown":false,"defaultTransition":"fade:1:180:horizontal:outward","pages":[{"idx":0,"label":1,"overlay":0,"forcedOverlay":false,"hidden":false},{"idx":1,"label":2,"overlay":0,"forcedOverlay":false,"hidden":false,"note":"This is a note that only the speaker will see."},{"idx":2,"label":3,"overlay":0,"forcedOverlay":false,"hidden":false},{"idx":3,"label":4,"overlay":0,"forcedOverlay":false,"hidden":false},{"idx":4,"label":5,"overlay":0,"forcedOverlay":false,"hidden":false,"note":"# My notes\nDid you know that pdfpc supports Markdown notes? _So cool!_"},{"idx":5,"label":5,"overlay":1,"forcedOverlay":true,"hidden":false,"note":"# My notes\nDid you know that pdfpc supports Markdown notes? _So cool!_"}]}

View File

@ -5,6 +5,7 @@
subtitle: [Subtitle],
authors: [Author A, Author B],
date: datetime.today().display("[day].[month].[year]"),
duration: 10, // time in minutes for presentation or counter timer if no field is given
doc,
)
@ -12,6 +13,8 @@
title: [First slide title]
)[
#lorem(20)
#pdfpc.speaker-note("This is a note that only the speaker will see.")
]
#focus-slide(
@ -33,4 +36,11 @@
#pause
...you can see the current section at the top of the slide?
#pdfpc.speaker-note(
```md
# My notes
Did you know that pdfpc supports Markdown notes? _So cool!_
```
)
]