forked from touying-typ/touying
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdewdrop.typ
77 lines (54 loc) · 1.21 KB
/
dewdrop.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#import "../lib.typ": *
#let s = themes.dewdrop.register(
aspect-ratio: "16-9",
footer: [Dewdrop],
navigation: "mini-slides",
// navigation: none,
)
#let s = (s.methods.info)(
self: s,
title: [Title],
subtitle: [Subtitle],
author: [Authors],
date: datetime.today(),
institution: [Institution],
)
#let (init, slides, touying-outline, alert) = utils.methods(s)
#show: init
#show strong: alert
#let (slide, empty-slide, title-slide, outline-slide, new-section-slide, focus-slide) = utils.slides(s)
#show: slides
= Section A
== Subsection A.1
#slide[
A slide with equation:
$ x_(n+1) = (x_n + a/x_n) / 2 $
]
== Subsection A.2
#slide[
A slide without a title but with *important* infos
]
= Section B
== Subsection B.1
#slide[
#lorem(80)
]
#focus-slide[
Wake up!
]
== Subsection B.2
#slide[
We can use `#pause` to #pause display something later.
#pause
Just like this.
#meanwhile
Meanwhile, #pause we can also use `#meanwhile` to #pause display other content synchronously.
]
// appendix by freezing last-slide-number
#let s = (s.methods.appendix)(self: s)
#let (slide,) = utils.slides(s)
= Appendix
=== Appendix
#slide[
Please pay attention to the current slide number.
]