-
Notifications
You must be signed in to change notification settings - Fork 1
/
slides.typ
61 lines (47 loc) · 1.48 KB
/
slides.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#import "template.typ": *
#show: doc => slides(doc)
#show link: l => underline(l)
#slide(title: "Motivation")[
- The template aims to make it easy to create pretty slides
- Typst is great to use
- Automatic styling of sections/chapters via headings
- `#slide` function for creating slides
]
= How to use
#slide(title: "Starting with the template", pad(x: 2em)[
+ Download or copy the `metadata.typ` and `template.typ` files to your project.
+ Adjust the metadata in the `metadata.typ` file to your needs.
+ Create a `slides.typ` or similar with the following starting content:
```typst
#import "template.typ": *
#show: doc => slides(doc)
```
])
#slide(title: "Filling in content", pad(x: 2em)[
Next you can fill in content with headings for sections and `slide` functions for slides:
```typst
= My Section
#slide(title: "My Title")[
My slide content.
]
#slide()[
#image("your-image.svg", width: 80%)
]
```
])
= Examples
#slide(title: "Image")[
#figure(
image("./images/mark-harpur-unsplash.jpg", height: 90%),
caption: [
#link("https://unsplash.com/de/fotos/K2s_YE031CA?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText")[Photo] by #link("https://unsplash.com/de/@luckybeanz?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText")[Mark Harpur]
]
)
]
#slide(title: "Drawings")[
#circle(radius: 5em, fill: red)
]
= Problems
#slide(pad(x: 2em)[
- There is no thing similar to `\pause` sadly, at least I have not found a way to do it
])