feat: initial commit
This commit is contained in:
commit
b802ff49ab
454 files changed
+52429
No files matched your search
@@ -0,0 +1,43 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.aqua: *
|
||||
|
||||
#show: aqua-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
config-info(
|
||||
title: [标题],
|
||||
subtitle: [副标题],
|
||||
author: [作者],
|
||||
date: datetime.today(),
|
||||
institution: [机构],
|
||||
),
|
||||
)
|
||||
|
||||
#set text(lang: "zh")
|
||||
|
||||
#title-slide()
|
||||
|
||||
#outline-slide()
|
||||
|
||||
= 第一节
|
||||
|
||||
== 小标题
|
||||
|
||||
#slide[
|
||||
#lorem(40)
|
||||
]
|
||||
|
||||
#slide[
|
||||
#lorem(40)
|
||||
]
|
||||
|
||||
== 总结
|
||||
|
||||
#slide(self => [
|
||||
#align(center + horizon)[
|
||||
#set text(size: 3em, weight: "bold", self.colors.primary)
|
||||
|
||||
THANKS FOR ALL
|
||||
|
||||
敬请指正!
|
||||
]
|
||||
])
|
||||
@@ -0,0 +1,37 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.aqua: *
|
||||
|
||||
#show: aqua-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
config-info(
|
||||
title: [Title],
|
||||
subtitle: [Subtitle],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
),
|
||||
)
|
||||
|
||||
#title-slide()
|
||||
|
||||
#outline-slide()
|
||||
|
||||
= The Section
|
||||
|
||||
== Slide Title
|
||||
|
||||
#lorem(40)
|
||||
|
||||
#focus-slide[
|
||||
Another variant with primary color in background...
|
||||
]
|
||||
|
||||
== Summary
|
||||
|
||||
#slide(self => [
|
||||
#align(center + horizon)[
|
||||
#set text(size: 3em, weight: "bold", fill: self.colors.primary)
|
||||
THANKS FOR ALL
|
||||
]
|
||||
])
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.default: *
|
||||
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
|
||||
#show: default-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
config-common(
|
||||
slide-level: 3,
|
||||
zero-margin-header: false,
|
||||
),
|
||||
config-colors(primary: blue),
|
||||
config-methods(alert: utils.alert-with-primary-color),
|
||||
config-page(
|
||||
header: text(gray, utils.display-current-short-heading(level: 2)),
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
= Outline <touying:hidden>
|
||||
|
||||
#components.adaptive-columns(outline(title: none, indent: 1em))
|
||||
|
||||
= Title
|
||||
|
||||
== Recall <recall>
|
||||
|
||||
*Recall*
|
||||
|
||||
#speaker-note[Recall]
|
||||
|
||||
#show: touying-set-config.with(config-methods(
|
||||
cover: utils.semi-transparent-cover,
|
||||
))
|
||||
|
||||
== Animation
|
||||
|
||||
#set math.equation(numbering: "(1)")
|
||||
|
||||
Simple
|
||||
|
||||
#pause
|
||||
|
||||
$ x + y $
|
||||
|
||||
animation
|
||||
|
||||
#touying-recall(<recall>)
|
||||
|
||||
|
||||
#show: appendix
|
||||
|
||||
= Appendix
|
||||
|
||||
Appendix
|
||||
@@ -0,0 +1,63 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.dewdrop: *
|
||||
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
|
||||
#show: dewdrop-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
footer: self => self.info.institution,
|
||||
navigation: "mini-slides",
|
||||
config-info(
|
||||
title: [Title],
|
||||
subtitle: [Subtitle],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
#title-slide()
|
||||
|
||||
#outline-slide()
|
||||
|
||||
= Section A
|
||||
|
||||
== Subsection A.1
|
||||
|
||||
$ x_(n+1) = (x_n + a / x_n) / 2 $
|
||||
|
||||
== Subsection A.2
|
||||
|
||||
A slide without a title but with *important* infos
|
||||
|
||||
= Section B
|
||||
|
||||
== Subsection B.1
|
||||
|
||||
#lorem(80)
|
||||
|
||||
#focus-slide[
|
||||
Wake up!
|
||||
]
|
||||
|
||||
== Subsection B.2
|
||||
|
||||
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.
|
||||
|
||||
#show: appendix
|
||||
|
||||
= Appendix
|
||||
|
||||
== Appendix
|
||||
|
||||
Please pay attention to the current slide number.
|
||||
@@ -0,0 +1,220 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.university: *
|
||||
#import "@preview/cetz:0.4.1"
|
||||
#import "@preview/fletcher:0.5.8" as fletcher: edge, node
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
#import "@preview/theorion:0.4.1": *
|
||||
#import cosmos.clouds: *
|
||||
#show: show-theorion
|
||||
|
||||
// cetz and fletcher bindings for touying
|
||||
#let cetz-canvas = touying-reducer.with(
|
||||
reduce: cetz.canvas,
|
||||
cover: cetz.draw.hide.with(bounds: true),
|
||||
)
|
||||
#let fletcher-diagram = touying-reducer.with(
|
||||
reduce: fletcher.diagram,
|
||||
cover: fletcher.hide,
|
||||
)
|
||||
|
||||
#show: university-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
// align: horizon,
|
||||
// config-common(handout: true),
|
||||
config-common(frozen-counters: (theorem-counter,)), // freeze theorem counter for animation
|
||||
config-info(
|
||||
title: [Title],
|
||||
subtitle: [Subtitle],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
logo: emoji.school,
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
#title-slide()
|
||||
|
||||
== Outline <touying:hidden>
|
||||
|
||||
#components.adaptive-columns(outline(title: none, indent: 1em))
|
||||
|
||||
= Animation
|
||||
|
||||
== Simple Animation
|
||||
|
||||
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.
|
||||
|
||||
#speaker-note[
|
||||
+ This is a speaker note.
|
||||
+ You won't see it unless you use `config-common(show-notes-on-second-screen: right)`
|
||||
]
|
||||
|
||||
|
||||
== Complex Animation
|
||||
|
||||
At subslide #touying-fn-wrapper((self: none) => str(self.subslide)), we can
|
||||
|
||||
use #uncover("2-")[`#uncover` function] for reserving space,
|
||||
|
||||
use #only("2-")[`#only` function] for not reserving space,
|
||||
|
||||
#alternatives[call `#only` multiple times \u{2717}][use `#alternatives` function #sym.checkmark] for choosing one of the alternatives.
|
||||
|
||||
|
||||
== Callback Style Animation
|
||||
|
||||
#slide(
|
||||
repeat: 3,
|
||||
self => [
|
||||
#let (uncover, only, alternatives) = utils.methods(self)
|
||||
|
||||
At subslide #self.subslide, we can
|
||||
|
||||
use #uncover("2-")[`#uncover` function] for reserving space,
|
||||
|
||||
use #only("2-")[`#only` function] for not reserving space,
|
||||
|
||||
#alternatives[call `#only` multiple times \u{2717}][use `#alternatives` function #sym.checkmark] for choosing one of the alternatives.
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
== Math Equation Animation
|
||||
|
||||
Equation with `pause`:
|
||||
|
||||
$
|
||||
f(x) & = pause x^2 + 2x + 1 \
|
||||
& = pause (x + 1)^2 \
|
||||
$
|
||||
|
||||
#meanwhile
|
||||
|
||||
Here, #pause we have the expression of $f(x)$.
|
||||
|
||||
#pause
|
||||
|
||||
By factorizing, we can obtain this result.
|
||||
|
||||
|
||||
== CeTZ Animation
|
||||
|
||||
CeTZ Animation in Touying:
|
||||
|
||||
#cetz-canvas({
|
||||
import cetz.draw: *
|
||||
|
||||
rect((0, 0), (5, 5))
|
||||
|
||||
(pause,)
|
||||
|
||||
rect((0, 0), (1, 1))
|
||||
rect((1, 1), (2, 2))
|
||||
rect((2, 2), (3, 3))
|
||||
|
||||
(pause,)
|
||||
|
||||
line((0, 0), (2.5, 2.5), name: "line")
|
||||
})
|
||||
|
||||
|
||||
== Fletcher Animation
|
||||
|
||||
Fletcher Animation in Touying:
|
||||
|
||||
#fletcher-diagram(
|
||||
node-stroke: .1em,
|
||||
node-fill: gradient.radial(
|
||||
blue.lighten(80%),
|
||||
blue,
|
||||
center: (30%, 20%),
|
||||
radius: 80%,
|
||||
),
|
||||
spacing: 4em,
|
||||
edge((-1, 0), "r", "-|>", `open(path)`, label-pos: 0, label-side: center),
|
||||
node((0, 0), `reading`, radius: 2em),
|
||||
edge((0, 0), (0, 0), `read()`, "--|>", bend: 130deg),
|
||||
pause,
|
||||
edge(`read()`, "-|>"),
|
||||
node((1, 0), `eof`, radius: 2em),
|
||||
pause,
|
||||
edge(`close()`, "-|>"),
|
||||
node((2, 0), `closed`, radius: 2em, extrude: (-2.5, 0)),
|
||||
edge((0, 0), (2, 0), `close()`, "-|>", bend: -40deg),
|
||||
)
|
||||
|
||||
|
||||
= Theorems
|
||||
|
||||
== Prime numbers
|
||||
|
||||
#definition[
|
||||
A natural number is called a #highlight[_prime number_] if it is greater
|
||||
than 1 and cannot be written as the product of two smaller natural numbers.
|
||||
]
|
||||
#example[
|
||||
The numbers $2$, $3$, and $17$ are prime.
|
||||
@cor_largest_prime shows that this list is not exhaustive!
|
||||
]
|
||||
|
||||
#theorem(title: "Euclid")[
|
||||
There are infinitely many primes.
|
||||
]
|
||||
#pagebreak(weak: true)
|
||||
#proof[
|
||||
Suppose to the contrary that $p_1, p_2, dots, p_n$ is a finite enumeration
|
||||
of all primes. Set $P = p_1 p_2 dots p_n$. Since $P + 1$ is not in our list,
|
||||
it cannot be prime. Thus, some prime factor $p_j$ divides $P + 1$. Since
|
||||
$p_j$ also divides $P$, it must divide the difference $(P + 1) - P = 1$, a
|
||||
contradiction.
|
||||
]
|
||||
|
||||
#corollary[
|
||||
There is no largest prime number.
|
||||
] <cor_largest_prime>
|
||||
#corollary[
|
||||
There are infinitely many composite numbers.
|
||||
]
|
||||
|
||||
#theorem[
|
||||
There are arbitrarily long stretches of composite numbers.
|
||||
]
|
||||
|
||||
#proof[
|
||||
For any $n > 2$, consider $ n! + 2, quad n! + 3, quad ..., quad n! + n $
|
||||
]
|
||||
|
||||
|
||||
= Others
|
||||
|
||||
== Side-by-side
|
||||
|
||||
#slide(composer: (1fr, 1fr))[
|
||||
First column.
|
||||
][
|
||||
Second column.
|
||||
]
|
||||
|
||||
|
||||
== Multiple Pages
|
||||
|
||||
#lorem(200)
|
||||
|
||||
|
||||
#show: appendix
|
||||
|
||||
= Appendix
|
||||
|
||||
== Appendix
|
||||
|
||||
Please pay attention to the current slide number.
|
||||
@@ -0,0 +1,68 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.metropolis: *
|
||||
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
|
||||
#show: metropolis-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
footer: self => self.info.institution,
|
||||
config-info(
|
||||
title: [Title],
|
||||
subtitle: [Subtitle],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
logo: emoji.city,
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
#title-slide()
|
||||
|
||||
= Outline <touying:hidden>
|
||||
|
||||
#outline(title: none, indent: 1em, depth: 1)
|
||||
|
||||
= First Section
|
||||
|
||||
---
|
||||
|
||||
A slide without a title but with some *important* information.
|
||||
|
||||
== A long long long long long long long long long long long long long long long long long long long long long long long long Title
|
||||
|
||||
=== sdfsdf
|
||||
|
||||
A slide with equation:
|
||||
|
||||
$ x_(n+1) = (x_n + a / x_n) / 2 $
|
||||
|
||||
#lorem(200)
|
||||
|
||||
= Second Section
|
||||
|
||||
#focus-slide[
|
||||
Wake up!
|
||||
]
|
||||
|
||||
== Simple Animation
|
||||
|
||||
We can use `#pause` to #pause display something later.
|
||||
|
||||
#meanwhile
|
||||
|
||||
Meanwhile, #pause we can also use `#meanwhile` to display other content synchronously.
|
||||
|
||||
#speaker-note[
|
||||
+ This is a speaker note.
|
||||
+ You won't see it unless you use `config-common(show-notes-on-second-screen: right)`
|
||||
]
|
||||
|
||||
#show: appendix
|
||||
|
||||
= Appendix
|
||||
|
||||
---
|
||||
|
||||
Please pay attention to the current slide number.
|
||||
@@ -0,0 +1,38 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.simple: *
|
||||
|
||||
#show: simple-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
footer: [Simple slides],
|
||||
)
|
||||
|
||||
#title-slide[
|
||||
= Keep it simple!
|
||||
#v(2em)
|
||||
|
||||
Alpha #footnote[Uni Augsburg] #h(1em)
|
||||
Bravo #footnote[Uni Bayreuth] #h(1em)
|
||||
Charlie #footnote[Uni Chemnitz] #h(1em)
|
||||
|
||||
July 23
|
||||
]
|
||||
|
||||
== First slide
|
||||
|
||||
#lorem(20)
|
||||
|
||||
#focus-slide[
|
||||
_Focus!_
|
||||
|
||||
This is very important.
|
||||
]
|
||||
|
||||
= Let's start a new section!
|
||||
|
||||
== Dynamic slide
|
||||
|
||||
Did you know that...
|
||||
|
||||
#pause
|
||||
|
||||
...you can see the current section at the top of the slide?
|
||||
@@ -0,0 +1,66 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.stargazer: *
|
||||
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
|
||||
#show: stargazer-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
config-info(
|
||||
title: [Stargazer in Touying: Customize Your Slide Title Here],
|
||||
subtitle: [Customize Your Slide Subtitle Here],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
logo: emoji.school,
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
#title-slide()
|
||||
|
||||
#outline-slide()
|
||||
|
||||
= Section A
|
||||
|
||||
== Subsection A.1
|
||||
|
||||
#tblock(title: [Theorem])[
|
||||
A simple theorem.
|
||||
|
||||
$ x_(n+1) = (x_n + a / x_n) / 2 $
|
||||
]
|
||||
|
||||
== Subsection A.2
|
||||
|
||||
A slide without a title but with *important* information.
|
||||
|
||||
= Section B
|
||||
|
||||
== Subsection B.1
|
||||
|
||||
#lorem(80)
|
||||
|
||||
#focus-slide[
|
||||
Wake up!
|
||||
]
|
||||
|
||||
== Subsection B.2
|
||||
|
||||
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.
|
||||
|
||||
#show: appendix
|
||||
|
||||
= Appendix
|
||||
|
||||
== Appendix
|
||||
|
||||
Please pay attention to the current slide number.
|
||||
@@ -0,0 +1,46 @@
|
||||
#import "@preview/touying:0.6.1": *
|
||||
#import themes.university: *
|
||||
|
||||
#import "@preview/numbly:0.1.0": numbly
|
||||
|
||||
#show: university-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
config-info(
|
||||
title: [Title],
|
||||
subtitle: [Subtitle],
|
||||
author: [Authors],
|
||||
date: datetime.today(),
|
||||
institution: [Institution],
|
||||
logo: emoji.school,
|
||||
),
|
||||
)
|
||||
|
||||
#set heading(numbering: numbly("{1}.", default: "1.1"))
|
||||
|
||||
#title-slide(authors: ([Author A], [Author B]))
|
||||
|
||||
= The Section
|
||||
|
||||
== Slide Title
|
||||
|
||||
#lorem(40)
|
||||
|
||||
#focus-slide[
|
||||
Another variant with primary color in background...
|
||||
]
|
||||
|
||||
#matrix-slide[
|
||||
left
|
||||
][
|
||||
middle
|
||||
][
|
||||
right
|
||||
]
|
||||
|
||||
#matrix-slide(columns: 1)[
|
||||
top
|
||||
][
|
||||
bottom
|
||||
]
|
||||
|
||||
#matrix-slide(columns: (1fr, 2fr, 1fr), ..(lorem(8),) * 9)
|
||||
Reference in new issue
Block a user