2
1

ADD example

This commit is contained in:
Rémi Heredero 2024-06-20 08:37:26 +02:00
parent d9b32d86f3
commit a3af0d8099
Signed by: Klagarge
GPG Key ID: 3CBAC2C6CD1E8807
10 changed files with 86 additions and 0 deletions

View File

@ -28,6 +28,19 @@ polylux2pdfpc slides.typ
pdfpc slides.pdf # add `-s` for swap the presentation/presenter screens pdfpc slides.pdf # add `-s` for swap the presentation/presenter screens
``` ```
## Example
Here some slide example
<style>
td, th {
border: none!important;
}
</style>
| <img src="example/01-title.png" width="400"/> | <img src="example/03-picture.png" width="400"/> |
| ---- | ---- |
| <img src="example/04-focus.png" width="400"/> | <img src="example/05-section.png" width="400"/> |
## Contribution ## Contribution
Contributions are welcome! If you have ideas for improvements or find bugs, feel free to open an issue or submit a pull request on the [repository](https://git.kb28.ch/Klagarge/HEI-Typst-presentation). Contributions are welcome! If you have ideas for improvements or find bugs, feel free to open an issue or submit a pull request on the [repository](https://git.kb28.ch/Klagarge/HEI-Typst-presentation).

BIN
example/01-title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
example/02-slide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
example/03-picture.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
example/04-focus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
example/05-section.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

14
example/placeholder.svg Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="placeholder" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="400px" height="200px" viewBox="0 0 400 200" enable-background="new 0 0 400 200" xml:space="preserve">
<radialGradient id="SVGID_1_" cx="196.5469" cy="94.4341" r="276.6305" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#3AA9D7"/>
<stop offset="1" style="stop-color:#2BA3D4"/>
</radialGradient>
<rect fill="url(#SVGID_1_)" width="400" height="200"/>
<g>
<path fill="#FFFFFF" d="M145.254,56.93v86.14h109.492V56.93H145.254z M245.924,133.729h-91.33V66.27h91.33V133.729L245.924,133.729 z"/>
<polygon fill="#FFFFFF" points="159.506,126.463 178.329,106.68 185.382,109.73 207.635,86.04 216.393,96.519 220.348,94.132 241.732,126.463 "/>
<circle fill="#FFFFFF" cx="181.251" cy="83.424" r="8.222"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1004 B

BIN
example/slides.pdf Normal file

Binary file not shown.

1
example/slides.pdfpc Normal file
View File

@ -0,0 +1 @@
{"pdfpcFormat":2,"duration":10,"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},{"idx":5,"label":6,"overlay":0,"forcedOverlay":false,"hidden":false,"note":"# My notes\nDid you know that pdfpc supports Markdown notes? _So cool!_"},{"idx":5,"label":6,"overlay":1,"forcedOverlay":true,"hidden":false,"note":"# My notes\nDid you know that pdfpc supports Markdown notes? _So cool!_"}]}

58
example/slides.typ Normal file
View File

@ -0,0 +1,58 @@
#import "/00-templates/template.typ": *
#show: doc => slide_template(
title: [HEI Slides],
subtitle: [Template with Polylux],
authors: [Firstname Lastname],
date: datetime.today(),
duration: 10, // time in minutes for presentation or counter timer if no field is given
doc,
)
#slide(
title: [First slide title]
)[
#lorem(20)
#pdfpc.speaker-note("This is a note that only the speaker will see.")
]
#slide(
title: [Slide with pictures]
)[
#side-by-side(gutter: 3mm, columns: (1fr, 1fr))[
- First element
- Second element
- Third element
][
#image("placeholder.svg", width: 100%)
]
]
#focus-slide(
foreground: white,
background: rgb("#ea366a")
)[
_Focus!_
This is very important.
]
#new-section-slide("Let's start a new section!")
#slide(
title: [Dynamic slide]
)[
Did you know that...
#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!_
```
)
]