2
1

add fade transision and speker-note

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

View File

@ -6,6 +6,7 @@
subtitle: none, subtitle: none,
authors: [], authors: [],
date: none, date: none,
duration: none,
doc, doc,
) = { ) = {
@ -19,6 +20,21 @@
color: rgb("#ea366a"), 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-slide(
title: [#title], title: [#title],
subtitle: [#subtitle], 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], subtitle: [Subtitle],
authors: [Author A, Author B], authors: [Author A, Author B],
date: datetime.today().display("[day].[month].[year]"), date: datetime.today().display("[day].[month].[year]"),
duration: 10, // time in minutes for presentation or counter timer if no field is given
doc, doc,
) )
@ -12,6 +13,8 @@
title: [First slide title] title: [First slide title]
)[ )[
#lorem(20) #lorem(20)
#pdfpc.speaker-note("This is a note that only the speaker will see.")
] ]
#focus-slide( #focus-slide(
@ -33,4 +36,11 @@
#pause #pause
...you can see the current section at the top of the slide? ...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!_
```
)
] ]