-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.typ
More file actions
129 lines (100 loc) · 2.54 KB
/
example.typ
File metadata and controls
129 lines (100 loc) · 2.54 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#import "@preview/polylux:0.4.0": *
#import "@preview/touying:0.6.1"
#import "theme.typ": *
#show: mytheme.with(
aspect-ratio: "16-9",
font-en: "Noto Sans",
font-ja: "BIZ UDPGothic",
font-math: "Noto Sans Math",
config-info(
title: [Title],
subtitle: [Subtitle],
author: [Author],
institution: [Institution],
header: [Conference\@Location (Date)]
)
)
#title-slide()
= First Section
== Usage
```typst
#import "@preview/touying:0.6.1"
#import "theme.typ": *
#show: mytheme.with(
aspect-ratio: "16-9",
font-en: "Noto Sans",
font-ja: "BIZ UDPGothic",
font-math: "Noto Sans Math",
config-info(
title: [Title],
subtitle: [Subtitle],
author: [Author],
institution: [Institution],
header: [Conference\@Location (Date)]
)
)
```
Note that `*text*` is modified to *underline with the secondary color*, not #text(weight: "bold")[bold].
== Example
Here is an example of a displayed equation:
$
a x^2 + b x + c = 0,
$
$
x = (-b plus.minus sqrt(b^2 - 4 a c)) / (2 a), quad x != 0
$ <eq:2>
@eq:2 is the *quadratic formula*.
```typst
Here is an example of a displayed equation:
$
a x^2 + b x + c = 0,
$
$
x = (-b plus.minus sqrt(b^2 - 4 a c)) / (2 a), quad x != 0
$ <eq:1>
@eq:1 is the *quadratic formula*.
```
== Speaker notes with pdfpc
You can add speaker notes using `#pdfpc.speaker-note()`.
```typst
== Speaker notes with pdfpc
You can add speaker notes using `#pdfpc.speaker-note()`.
#pdfpc.speaker-note("This is a speaker note.")
```
The `polylux2pdfpc` command generates a `.pdfpc` file.
```bash
typst compile example.typ # create example.pdf
polylux2pdfpc example.typ # create example.pdfpc
pdfpc example.pdf -w both # start a presentation with speaker and main windows
```
=== Notes:
- pdfpc v4.5.0 did not display speaker notes, possibly because of `pdfpcFormat: 2`.
- Installing pdfpc v4.7.0 from #link("https://github.com/pdfpc/pdfpc/releases", text(fill: blue, underline([GitHub Releases]))) solved this issue.
#pdfpc.speaker-note("This is a speaker note.")
---
Example of the speaker view and the main presentation:
#align(horizon)[
#grid(
columns: (1fr, 1fr),
column-gutter: 1em,
[
#figure(
image("figure/speaker-view.png"),
caption: "Speaker view",
numbering: none,
)
], [
#figure(
image("figure/main-presentation.png"),
caption: "Main presentation",
numbering: none,
)
]
)
]
#show: appendix
= Appendix
== Appendix 1
Note that appendix is *not counted* in the total page count.
#lorem(30)
#lorem(30)