Code Style
Simple Style​
-If we only need simplicity, we can directly input content under the title, just like writing a normal Typst document. The title here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
If we only need simplicity, we can directly input content under the heading, just like writing a normal Typst document. The heading here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
You can use an empty title ==
to create a new page. This technique also helps clear the continuation of the previous title.
You can use an empty heading ==
to create a new page. This skill also helps clear the continuation of the previous title.
PS: We can use the #slides-end
marker to signify the end of #show: slides
.
Block Style​
Many times, using simple style alone cannot achieve all the functions we need. For more powerful features and clearer structure, we can also use block style in the form of #slide[...]
. The #slide
function needs to be unpacked using the syntax #let (slide,) = utils.slides(s)
to be used correctly after #show: slides
.
Block StyleIt has a clearer structure. By identifying #slide[...]
blocks, we can easily distinguish the specific pagination effects of slides.
Convention Over Configuration​
-You may have noticed that when using the simple theme, using a level-one title automatically creates a section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
+You may have noticed that when using the simple theme, using a level-one heading automatically creates a new section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
If we don't want it to automatically create such a section slide, we can delete this method:
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#(s.methods.touying-new-section-slide = none)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
diff --git a/docs/dynamic/complex/index.html b/docs/dynamic/complex/index.html
index f77eb5b99..07980bf1e 100644
--- a/docs/dynamic/complex/index.html
+++ b/docs/dynamic/complex/index.html
@@ -5,7 +5,7 @@
Complex Animations | Touying
-
+
diff --git a/docs/dynamic/cover/index.html b/docs/dynamic/cover/index.html
index 82f8122ba..0c243c74c 100644
--- a/docs/dynamic/cover/index.html
+++ b/docs/dynamic/cover/index.html
@@ -5,7 +5,7 @@
Cover Function | Touying
-
+
diff --git a/docs/dynamic/equation/index.html b/docs/dynamic/equation/index.html
index 02b125dd8..812fc946d 100644
--- a/docs/dynamic/equation/index.html
+++ b/docs/dynamic/equation/index.html
@@ -5,7 +5,7 @@
Math Equation Animations | Touying
-
+
diff --git a/docs/dynamic/handout/index.html b/docs/dynamic/handout/index.html
index 2aecf1635..766c56b63 100644
--- a/docs/dynamic/handout/index.html
+++ b/docs/dynamic/handout/index.html
@@ -5,7 +5,7 @@
Handout Mode | Touying
-
+
diff --git a/docs/dynamic/other/index.html b/docs/dynamic/other/index.html
index 5c894d05c..439eadffb 100644
--- a/docs/dynamic/other/index.html
+++ b/docs/dynamic/other/index.html
@@ -5,7 +5,7 @@
Other Animations | Touying
-
+
diff --git a/docs/dynamic/simple/index.html b/docs/dynamic/simple/index.html
index 5ba9ea77a..9df6fade8 100644
--- a/docs/dynamic/simple/index.html
+++ b/docs/dynamic/simple/index.html
@@ -5,7 +5,7 @@
Simple Animations | Touying
-
+
diff --git a/docs/external/pdfpc/index.html b/docs/external/pdfpc/index.html
index 65b962f30..2dd828e79 100644
--- a/docs/external/pdfpc/index.html
+++ b/docs/external/pdfpc/index.html
@@ -5,7 +5,7 @@
Pdfpc | Touying
-
+
diff --git a/docs/external/typst-preview/index.html b/docs/external/typst-preview/index.html
index 8e67c50ef..4e3e02547 100644
--- a/docs/external/typst-preview/index.html
+++ b/docs/external/typst-preview/index.html
@@ -5,7 +5,7 @@
Typst Preview | Touying
-
+
diff --git a/docs/global-settings/index.html b/docs/global-settings/index.html
index 34757be65..e7a09cc04 100644
--- a/docs/global-settings/index.html
+++ b/docs/global-settings/index.html
@@ -5,7 +5,7 @@
Global Settings | Touying
-
+
diff --git a/docs/integration/cetz/index.html b/docs/integration/cetz/index.html
index 638e7eec4..6344222d0 100644
--- a/docs/integration/cetz/index.html
+++ b/docs/integration/cetz/index.html
@@ -5,7 +5,7 @@
CeTZ | Touying
-
+
diff --git a/docs/integration/codly/index.html b/docs/integration/codly/index.html
index 436bb1c44..0e3c0b91b 100644
--- a/docs/integration/codly/index.html
+++ b/docs/integration/codly/index.html
@@ -5,7 +5,7 @@
Codly | Touying
-
+
diff --git a/docs/integration/fletcher/index.html b/docs/integration/fletcher/index.html
index a1696be67..1d17996f0 100644
--- a/docs/integration/fletcher/index.html
+++ b/docs/integration/fletcher/index.html
@@ -5,7 +5,7 @@
Fletcher | Touying
-
+
diff --git a/docs/integration/pinit/index.html b/docs/integration/pinit/index.html
index eae9e1d05..0653fb7af 100644
--- a/docs/integration/pinit/index.html
+++ b/docs/integration/pinit/index.html
@@ -5,7 +5,7 @@
Pinit | Touying
-
+
diff --git a/docs/integration/polylux/index.html b/docs/integration/polylux/index.html
index a1c6e1200..28a4cf8a7 100644
--- a/docs/integration/polylux/index.html
+++ b/docs/integration/polylux/index.html
@@ -5,7 +5,7 @@
Polylux | Touying
-
+
diff --git a/docs/intro/index.html b/docs/intro/index.html
index 5165d96e2..514df67bd 100644
--- a/docs/intro/index.html
+++ b/docs/intro/index.html
@@ -5,7 +5,7 @@
Introduction to Touying | Touying
-
+
diff --git a/docs/layout/index.html b/docs/layout/index.html
index 2ed9098e1..0019d6525 100644
--- a/docs/layout/index.html
+++ b/docs/layout/index.html
@@ -5,7 +5,7 @@
Page Layout | Touying
-
+
diff --git a/docs/next/build-your-own-theme/index.html b/docs/next/build-your-own-theme/index.html
index 53860b0f5..16a5d833f 100644
--- a/docs/next/build-your-own-theme/index.html
+++ b/docs/next/build-your-own-theme/index.html
@@ -5,7 +5,7 @@
Creating Your Own Theme | Touying
-
+
diff --git a/docs/next/category/dynamic-slides/index.html b/docs/next/category/dynamic-slides/index.html
index ee2cb21c5..ded1b286a 100644
--- a/docs/next/category/dynamic-slides/index.html
+++ b/docs/next/category/dynamic-slides/index.html
@@ -5,7 +5,7 @@
Dynamic Slides | Touying
-
+
diff --git a/docs/next/category/external-tools/index.html b/docs/next/category/external-tools/index.html
index d603b6e1e..66d8dc5e7 100644
--- a/docs/next/category/external-tools/index.html
+++ b/docs/next/category/external-tools/index.html
@@ -5,7 +5,7 @@
External Tools | Touying
-
+
diff --git a/docs/next/category/package-integration/index.html b/docs/next/category/package-integration/index.html
index bc4e9e365..ee732cb92 100644
--- a/docs/next/category/package-integration/index.html
+++ b/docs/next/category/package-integration/index.html
@@ -5,7 +5,7 @@
Package Integration | Touying
-
+
diff --git a/docs/next/category/progress/index.html b/docs/next/category/progress/index.html
index 305692a7e..e4a9edc1a 100644
--- a/docs/next/category/progress/index.html
+++ b/docs/next/category/progress/index.html
@@ -5,7 +5,7 @@
Progress | Touying
-
+
diff --git a/docs/next/category/themes/index.html b/docs/next/category/themes/index.html
index f29dffc15..6338bbc6d 100644
--- a/docs/next/category/themes/index.html
+++ b/docs/next/category/themes/index.html
@@ -5,7 +5,7 @@
Themes | Touying
-
+
diff --git a/docs/next/category/utilities/index.html b/docs/next/category/utilities/index.html
index c458c491a..ac1d0f856 100644
--- a/docs/next/category/utilities/index.html
+++ b/docs/next/category/utilities/index.html
@@ -5,7 +5,7 @@
Utilities | Touying
-
+
diff --git a/docs/next/changelog/index.html b/docs/next/changelog/index.html
index 435698b9a..940754c9e 100644
--- a/docs/next/changelog/index.html
+++ b/docs/next/changelog/index.html
@@ -5,7 +5,7 @@
Changelog | Touying
-
+
diff --git a/docs/next/code-styles/index.html b/docs/next/code-styles/index.html
index bd834a240..c9f240f96 100644
--- a/docs/next/code-styles/index.html
+++ b/docs/next/code-styles/index.html
@@ -5,16 +5,16 @@
Code Style | Touying
-
+
Version: NextCode Style
Simple Style​
-If we only need simplicity, we can directly input content under the title, just like writing a normal Typst document. The title here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
+If we only need simplicity, we can directly input content under the heading, just like writing a normal Typst document. The heading here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
-You can use an empty title ==
to create a new page. This technique also helps clear the continuation of the previous title.
+You can use an empty heading ==
to create a new page. This skill also helps clear the continuation of the previous title.
PS: We can use the #slides-end
marker to signify the end of #show: slides
.
Block Style​
Many times, using simple style alone cannot achieve all the functions we need. For more powerful features and clearer structure, we can also use block style in the form of #slide[...]
. The #slide
function needs to be unpacked using the syntax #let (slide,) = utils.slides(s)
to be used correctly after #show: slides
.
@@ -28,7 +28,7 @@ Block StyleIt has a clearer structure. By identifying #slide[...]
blocks, we can easily distinguish the specific pagination effects of slides.
Convention Over Configuration​
-You may have noticed that when using the simple theme, using a level-one title automatically creates a section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
+You may have noticed that when using the simple theme, using a level-one heading automatically creates a new section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
If we don't want it to automatically create such a section slide, we can delete this method:
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#(s.methods.touying-new-section-slide = none)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
diff --git a/docs/next/dynamic/complex/index.html b/docs/next/dynamic/complex/index.html
index 596252274..ae374b286 100644
--- a/docs/next/dynamic/complex/index.html
+++ b/docs/next/dynamic/complex/index.html
@@ -5,7 +5,7 @@
Complex Animations | Touying
-
+
diff --git a/docs/next/dynamic/cover/index.html b/docs/next/dynamic/cover/index.html
index b41dd0100..80bb5cfb1 100644
--- a/docs/next/dynamic/cover/index.html
+++ b/docs/next/dynamic/cover/index.html
@@ -5,7 +5,7 @@
Cover Function | Touying
-
+
diff --git a/docs/next/dynamic/equation/index.html b/docs/next/dynamic/equation/index.html
index 633c90765..c18b2faf2 100644
--- a/docs/next/dynamic/equation/index.html
+++ b/docs/next/dynamic/equation/index.html
@@ -5,7 +5,7 @@
Math Equation Animations | Touying
-
+
diff --git a/docs/next/dynamic/handout/index.html b/docs/next/dynamic/handout/index.html
index 8bd28f670..2d2824736 100644
--- a/docs/next/dynamic/handout/index.html
+++ b/docs/next/dynamic/handout/index.html
@@ -5,7 +5,7 @@
Handout Mode | Touying
-
+
diff --git a/docs/next/dynamic/other/index.html b/docs/next/dynamic/other/index.html
index 3da8b69cc..e997a5730 100644
--- a/docs/next/dynamic/other/index.html
+++ b/docs/next/dynamic/other/index.html
@@ -5,7 +5,7 @@
Other Animations | Touying
-
+
diff --git a/docs/next/dynamic/simple/index.html b/docs/next/dynamic/simple/index.html
index 0d1990187..386c59bcd 100644
--- a/docs/next/dynamic/simple/index.html
+++ b/docs/next/dynamic/simple/index.html
@@ -5,7 +5,7 @@
Simple Animations | Touying
-
+
diff --git a/docs/next/external/pdfpc/index.html b/docs/next/external/pdfpc/index.html
index ec0e3b6f4..96b33c2cd 100644
--- a/docs/next/external/pdfpc/index.html
+++ b/docs/next/external/pdfpc/index.html
@@ -5,7 +5,7 @@
Pdfpc | Touying
-
+
diff --git a/docs/next/external/typst-preview/index.html b/docs/next/external/typst-preview/index.html
index 00011256c..9f6e6a300 100644
--- a/docs/next/external/typst-preview/index.html
+++ b/docs/next/external/typst-preview/index.html
@@ -5,7 +5,7 @@
Typst Preview | Touying
-
+
diff --git a/docs/next/global-settings/index.html b/docs/next/global-settings/index.html
index 200b5f6f1..59d00476f 100644
--- a/docs/next/global-settings/index.html
+++ b/docs/next/global-settings/index.html
@@ -5,7 +5,7 @@
Global Settings | Touying
-
+
diff --git a/docs/next/integration/cetz/index.html b/docs/next/integration/cetz/index.html
index 67e365b51..1de0ac246 100644
--- a/docs/next/integration/cetz/index.html
+++ b/docs/next/integration/cetz/index.html
@@ -5,7 +5,7 @@
CeTZ | Touying
-
+
diff --git a/docs/next/integration/codly/index.html b/docs/next/integration/codly/index.html
index ea6f7be39..d0aa80237 100644
--- a/docs/next/integration/codly/index.html
+++ b/docs/next/integration/codly/index.html
@@ -5,7 +5,7 @@
Codly | Touying
-
+
diff --git a/docs/next/integration/fletcher/index.html b/docs/next/integration/fletcher/index.html
index a7f46e3b6..23a96be8b 100644
--- a/docs/next/integration/fletcher/index.html
+++ b/docs/next/integration/fletcher/index.html
@@ -5,7 +5,7 @@
Fletcher | Touying
-
+
diff --git a/docs/next/integration/pinit/index.html b/docs/next/integration/pinit/index.html
index b36ca987b..4b9cf609e 100644
--- a/docs/next/integration/pinit/index.html
+++ b/docs/next/integration/pinit/index.html
@@ -5,7 +5,7 @@
Pinit | Touying
-
+
diff --git a/docs/next/integration/polylux/index.html b/docs/next/integration/polylux/index.html
index d6014e896..bb2ba98a6 100644
--- a/docs/next/integration/polylux/index.html
+++ b/docs/next/integration/polylux/index.html
@@ -5,7 +5,7 @@
Polylux | Touying
-
+
diff --git a/docs/next/intro/index.html b/docs/next/intro/index.html
index 465c57b1c..f9482c773 100644
--- a/docs/next/intro/index.html
+++ b/docs/next/intro/index.html
@@ -5,7 +5,7 @@
Introduction to Touying | Touying
-
+
diff --git a/docs/next/layout/index.html b/docs/next/layout/index.html
index 2a9d0c8d9..16e061945 100644
--- a/docs/next/layout/index.html
+++ b/docs/next/layout/index.html
@@ -5,7 +5,7 @@
Page Layout | Touying
-
+
diff --git a/docs/next/progress/counters/index.html b/docs/next/progress/counters/index.html
index 3d54aa8c6..0af603d5e 100644
--- a/docs/next/progress/counters/index.html
+++ b/docs/next/progress/counters/index.html
@@ -5,7 +5,7 @@
Touying Counters | Touying
-
+
diff --git a/docs/next/progress/sections/index.html b/docs/next/progress/sections/index.html
index 2ea0d6834..53bf30398 100644
--- a/docs/next/progress/sections/index.html
+++ b/docs/next/progress/sections/index.html
@@ -5,7 +5,7 @@
Touying Sections | Touying
-
+
diff --git a/docs/next/sections/index.html b/docs/next/sections/index.html
index ac4e2ad7b..1a12a19f2 100644
--- a/docs/next/sections/index.html
+++ b/docs/next/sections/index.html
@@ -5,7 +5,7 @@
Sections and Subsections | Touying
-
+
diff --git a/docs/next/start/index.html b/docs/next/start/index.html
index 700616a1a..38e389c0f 100644
--- a/docs/next/start/index.html
+++ b/docs/next/start/index.html
@@ -5,7 +5,7 @@
Getting Started | Touying
-
+
diff --git a/docs/next/themes/dewdrop/index.html b/docs/next/themes/dewdrop/index.html
index 2fb3857e4..8090b3721 100644
--- a/docs/next/themes/dewdrop/index.html
+++ b/docs/next/themes/dewdrop/index.html
@@ -5,7 +5,7 @@
Dewdrop Theme | Touying
-
+
diff --git a/docs/next/themes/metropolis/index.html b/docs/next/themes/metropolis/index.html
index 3f3b3a751..fcc79835a 100644
--- a/docs/next/themes/metropolis/index.html
+++ b/docs/next/themes/metropolis/index.html
@@ -5,7 +5,7 @@
Metropolis Theme | Touying
-
+
diff --git a/docs/next/themes/simple/index.html b/docs/next/themes/simple/index.html
index 0d7704f24..a98513bcc 100644
--- a/docs/next/themes/simple/index.html
+++ b/docs/next/themes/simple/index.html
@@ -5,7 +5,7 @@
Simple Theme | Touying
-
+
diff --git a/docs/next/themes/university/index.html b/docs/next/themes/university/index.html
index 0105cc113..c1fa4969b 100644
--- a/docs/next/themes/university/index.html
+++ b/docs/next/themes/university/index.html
@@ -5,7 +5,7 @@
University Theme | Touying
-
+
diff --git a/docs/next/utilities/fit-to/index.html b/docs/next/utilities/fit-to/index.html
index 9ba0a46d1..65cfd2731 100644
--- a/docs/next/utilities/fit-to/index.html
+++ b/docs/next/utilities/fit-to/index.html
@@ -5,7 +5,7 @@
Fit to Height / Width | Touying
-
+
diff --git a/docs/next/utilities/oop/index.html b/docs/next/utilities/oop/index.html
index 2499ca4e1..b5b6954f0 100644
--- a/docs/next/utilities/oop/index.html
+++ b/docs/next/utilities/oop/index.html
@@ -5,7 +5,7 @@
Object-Oriented Programming | Touying
-
+
diff --git a/docs/progress/counters/index.html b/docs/progress/counters/index.html
index 7707d8eeb..3f2c2f667 100644
--- a/docs/progress/counters/index.html
+++ b/docs/progress/counters/index.html
@@ -5,7 +5,7 @@
Touying Counters | Touying
-
+
diff --git a/docs/progress/sections/index.html b/docs/progress/sections/index.html
index 536b178c8..eb7389d40 100644
--- a/docs/progress/sections/index.html
+++ b/docs/progress/sections/index.html
@@ -5,7 +5,7 @@
Touying Sections | Touying
-
+
diff --git a/docs/sections/index.html b/docs/sections/index.html
index f87f312e1..320d8fddc 100644
--- a/docs/sections/index.html
+++ b/docs/sections/index.html
@@ -5,7 +5,7 @@
Sections and Subsections | Touying
-
+
diff --git a/docs/start/index.html b/docs/start/index.html
index d71e8aab4..a935614bf 100644
--- a/docs/start/index.html
+++ b/docs/start/index.html
@@ -5,7 +5,7 @@
Getting Started | Touying
-
+
diff --git a/docs/themes/dewdrop/index.html b/docs/themes/dewdrop/index.html
index 1c35226de..8bf183152 100644
--- a/docs/themes/dewdrop/index.html
+++ b/docs/themes/dewdrop/index.html
@@ -5,7 +5,7 @@
Dewdrop Theme | Touying
-
+
diff --git a/docs/themes/metropolis/index.html b/docs/themes/metropolis/index.html
index d38b97694..b2e5fcdc3 100644
--- a/docs/themes/metropolis/index.html
+++ b/docs/themes/metropolis/index.html
@@ -5,7 +5,7 @@
Metropolis Theme | Touying
-
+
diff --git a/docs/themes/simple/index.html b/docs/themes/simple/index.html
index bdf548edf..e2b6b44fe 100644
--- a/docs/themes/simple/index.html
+++ b/docs/themes/simple/index.html
@@ -5,7 +5,7 @@
Simple Theme | Touying
-
+
diff --git a/docs/themes/university/index.html b/docs/themes/university/index.html
index 62f0ec162..163297ce9 100644
--- a/docs/themes/university/index.html
+++ b/docs/themes/university/index.html
@@ -5,7 +5,7 @@
University Theme | Touying
-
+
diff --git a/docs/utilities/fit-to/index.html b/docs/utilities/fit-to/index.html
index f2cd44061..12568273c 100644
--- a/docs/utilities/fit-to/index.html
+++ b/docs/utilities/fit-to/index.html
@@ -5,7 +5,7 @@
Fit to Height / Width | Touying
-
+
diff --git a/docs/utilities/oop/index.html b/docs/utilities/oop/index.html
index f43a16c55..76a83a8d0 100644
--- a/docs/utilities/oop/index.html
+++ b/docs/utilities/oop/index.html
@@ -5,7 +5,7 @@
Object-Oriented Programming | Touying
-
+
diff --git a/index.html b/index.html
index 96312559f..298b06da5 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
Touying in Typst | Touying
-
+
diff --git a/markdown-page/index.html b/markdown-page/index.html
index c45fee40f..fe6d28d89 100644
--- a/markdown-page/index.html
+++ b/markdown-page/index.html
@@ -5,7 +5,7 @@
Markdown page example | Touying
-
+
s.methods.touying-new-section-slide
method, so Touying will automatically call this method.s.methods.touying-new-section-slide
method, so Touying will automatically call this method.#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#(s.methods.touying-new-section-slide = none)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
Code Style
Simple Style​
-If we only need simplicity, we can directly input content under the title, just like writing a normal Typst document. The title here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
If we only need simplicity, we can directly input content under the heading, just like writing a normal Typst document. The heading here serves to divide the pages, and we can use commands like #pause
to achieve animation effects.
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
You can use an empty title ==
to create a new page. This technique also helps clear the continuation of the previous title.
You can use an empty heading ==
to create a new page. This skill also helps clear the continuation of the previous title.
PS: We can use the #slides-end
marker to signify the end of #show: slides
.
Block Style​
Many times, using simple style alone cannot achieve all the functions we need. For more powerful features and clearer structure, we can also use block style in the form of #slide[...]
. The #slide
function needs to be unpacked using the syntax #let (slide,) = utils.slides(s)
to be used correctly after #show: slides
.
Block StyleIt has a clearer structure. By identifying #slide[...]
blocks, we can easily distinguish the specific pagination effects of slides.
Convention Over Configuration​
-You may have noticed that when using the simple theme, using a level-one title automatically creates a section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
+You may have noticed that when using the simple theme, using a level-one heading automatically creates a new section slide. This is because the simple theme registers an s.methods.touying-new-section-slide
method, so Touying will automatically call this method.
If we don't want it to automatically create such a section slide, we can delete this method:
#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#(s.methods.touying-new-section-slide = none)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!
diff --git a/docs/next/dynamic/complex/index.html b/docs/next/dynamic/complex/index.html
index 596252274..ae374b286 100644
--- a/docs/next/dynamic/complex/index.html
+++ b/docs/next/dynamic/complex/index.html
@@ -5,7 +5,7 @@
Complex Animations | Touying
-
+
diff --git a/docs/next/dynamic/cover/index.html b/docs/next/dynamic/cover/index.html
index b41dd0100..80bb5cfb1 100644
--- a/docs/next/dynamic/cover/index.html
+++ b/docs/next/dynamic/cover/index.html
@@ -5,7 +5,7 @@
Cover Function | Touying
-
+
diff --git a/docs/next/dynamic/equation/index.html b/docs/next/dynamic/equation/index.html
index 633c90765..c18b2faf2 100644
--- a/docs/next/dynamic/equation/index.html
+++ b/docs/next/dynamic/equation/index.html
@@ -5,7 +5,7 @@
Math Equation Animations | Touying
-
+
diff --git a/docs/next/dynamic/handout/index.html b/docs/next/dynamic/handout/index.html
index 8bd28f670..2d2824736 100644
--- a/docs/next/dynamic/handout/index.html
+++ b/docs/next/dynamic/handout/index.html
@@ -5,7 +5,7 @@
Handout Mode | Touying
-
+
diff --git a/docs/next/dynamic/other/index.html b/docs/next/dynamic/other/index.html
index 3da8b69cc..e997a5730 100644
--- a/docs/next/dynamic/other/index.html
+++ b/docs/next/dynamic/other/index.html
@@ -5,7 +5,7 @@
Other Animations | Touying
-
+
diff --git a/docs/next/dynamic/simple/index.html b/docs/next/dynamic/simple/index.html
index 0d1990187..386c59bcd 100644
--- a/docs/next/dynamic/simple/index.html
+++ b/docs/next/dynamic/simple/index.html
@@ -5,7 +5,7 @@
Simple Animations | Touying
-
+
diff --git a/docs/next/external/pdfpc/index.html b/docs/next/external/pdfpc/index.html
index ec0e3b6f4..96b33c2cd 100644
--- a/docs/next/external/pdfpc/index.html
+++ b/docs/next/external/pdfpc/index.html
@@ -5,7 +5,7 @@
Pdfpc | Touying
-
+
diff --git a/docs/next/external/typst-preview/index.html b/docs/next/external/typst-preview/index.html
index 00011256c..9f6e6a300 100644
--- a/docs/next/external/typst-preview/index.html
+++ b/docs/next/external/typst-preview/index.html
@@ -5,7 +5,7 @@
Typst Preview | Touying
-
+
diff --git a/docs/next/global-settings/index.html b/docs/next/global-settings/index.html
index 200b5f6f1..59d00476f 100644
--- a/docs/next/global-settings/index.html
+++ b/docs/next/global-settings/index.html
@@ -5,7 +5,7 @@
Global Settings | Touying
-
+
diff --git a/docs/next/integration/cetz/index.html b/docs/next/integration/cetz/index.html
index 67e365b51..1de0ac246 100644
--- a/docs/next/integration/cetz/index.html
+++ b/docs/next/integration/cetz/index.html
@@ -5,7 +5,7 @@
CeTZ | Touying
-
+
diff --git a/docs/next/integration/codly/index.html b/docs/next/integration/codly/index.html
index ea6f7be39..d0aa80237 100644
--- a/docs/next/integration/codly/index.html
+++ b/docs/next/integration/codly/index.html
@@ -5,7 +5,7 @@
Codly | Touying
-
+
diff --git a/docs/next/integration/fletcher/index.html b/docs/next/integration/fletcher/index.html
index a7f46e3b6..23a96be8b 100644
--- a/docs/next/integration/fletcher/index.html
+++ b/docs/next/integration/fletcher/index.html
@@ -5,7 +5,7 @@
Fletcher | Touying
-
+
diff --git a/docs/next/integration/pinit/index.html b/docs/next/integration/pinit/index.html
index b36ca987b..4b9cf609e 100644
--- a/docs/next/integration/pinit/index.html
+++ b/docs/next/integration/pinit/index.html
@@ -5,7 +5,7 @@
Pinit | Touying
-
+
diff --git a/docs/next/integration/polylux/index.html b/docs/next/integration/polylux/index.html
index d6014e896..bb2ba98a6 100644
--- a/docs/next/integration/polylux/index.html
+++ b/docs/next/integration/polylux/index.html
@@ -5,7 +5,7 @@
Polylux | Touying
-
+
diff --git a/docs/next/intro/index.html b/docs/next/intro/index.html
index 465c57b1c..f9482c773 100644
--- a/docs/next/intro/index.html
+++ b/docs/next/intro/index.html
@@ -5,7 +5,7 @@
Introduction to Touying | Touying
-
+
diff --git a/docs/next/layout/index.html b/docs/next/layout/index.html
index 2a9d0c8d9..16e061945 100644
--- a/docs/next/layout/index.html
+++ b/docs/next/layout/index.html
@@ -5,7 +5,7 @@
Page Layout | Touying
-
+
diff --git a/docs/next/progress/counters/index.html b/docs/next/progress/counters/index.html
index 3d54aa8c6..0af603d5e 100644
--- a/docs/next/progress/counters/index.html
+++ b/docs/next/progress/counters/index.html
@@ -5,7 +5,7 @@
Touying Counters | Touying
-
+
diff --git a/docs/next/progress/sections/index.html b/docs/next/progress/sections/index.html
index 2ea0d6834..53bf30398 100644
--- a/docs/next/progress/sections/index.html
+++ b/docs/next/progress/sections/index.html
@@ -5,7 +5,7 @@
Touying Sections | Touying
-
+
diff --git a/docs/next/sections/index.html b/docs/next/sections/index.html
index ac4e2ad7b..1a12a19f2 100644
--- a/docs/next/sections/index.html
+++ b/docs/next/sections/index.html
@@ -5,7 +5,7 @@
Sections and Subsections | Touying
-
+
diff --git a/docs/next/start/index.html b/docs/next/start/index.html
index 700616a1a..38e389c0f 100644
--- a/docs/next/start/index.html
+++ b/docs/next/start/index.html
@@ -5,7 +5,7 @@
Getting Started | Touying
-
+
diff --git a/docs/next/themes/dewdrop/index.html b/docs/next/themes/dewdrop/index.html
index 2fb3857e4..8090b3721 100644
--- a/docs/next/themes/dewdrop/index.html
+++ b/docs/next/themes/dewdrop/index.html
@@ -5,7 +5,7 @@
Dewdrop Theme | Touying
-
+
diff --git a/docs/next/themes/metropolis/index.html b/docs/next/themes/metropolis/index.html
index 3f3b3a751..fcc79835a 100644
--- a/docs/next/themes/metropolis/index.html
+++ b/docs/next/themes/metropolis/index.html
@@ -5,7 +5,7 @@
Metropolis Theme | Touying
-
+
diff --git a/docs/next/themes/simple/index.html b/docs/next/themes/simple/index.html
index 0d7704f24..a98513bcc 100644
--- a/docs/next/themes/simple/index.html
+++ b/docs/next/themes/simple/index.html
@@ -5,7 +5,7 @@
Simple Theme | Touying
-
+
diff --git a/docs/next/themes/university/index.html b/docs/next/themes/university/index.html
index 0105cc113..c1fa4969b 100644
--- a/docs/next/themes/university/index.html
+++ b/docs/next/themes/university/index.html
@@ -5,7 +5,7 @@
University Theme | Touying
-
+
diff --git a/docs/next/utilities/fit-to/index.html b/docs/next/utilities/fit-to/index.html
index 9ba0a46d1..65cfd2731 100644
--- a/docs/next/utilities/fit-to/index.html
+++ b/docs/next/utilities/fit-to/index.html
@@ -5,7 +5,7 @@
Fit to Height / Width | Touying
-
+
diff --git a/docs/next/utilities/oop/index.html b/docs/next/utilities/oop/index.html
index 2499ca4e1..b5b6954f0 100644
--- a/docs/next/utilities/oop/index.html
+++ b/docs/next/utilities/oop/index.html
@@ -5,7 +5,7 @@
Object-Oriented Programming | Touying
-
+
diff --git a/docs/progress/counters/index.html b/docs/progress/counters/index.html
index 7707d8eeb..3f2c2f667 100644
--- a/docs/progress/counters/index.html
+++ b/docs/progress/counters/index.html
@@ -5,7 +5,7 @@
Touying Counters | Touying
-
+
diff --git a/docs/progress/sections/index.html b/docs/progress/sections/index.html
index 536b178c8..eb7389d40 100644
--- a/docs/progress/sections/index.html
+++ b/docs/progress/sections/index.html
@@ -5,7 +5,7 @@
Touying Sections | Touying
-
+
diff --git a/docs/sections/index.html b/docs/sections/index.html
index f87f312e1..320d8fddc 100644
--- a/docs/sections/index.html
+++ b/docs/sections/index.html
@@ -5,7 +5,7 @@
Sections and Subsections | Touying
-
+
diff --git a/docs/start/index.html b/docs/start/index.html
index d71e8aab4..a935614bf 100644
--- a/docs/start/index.html
+++ b/docs/start/index.html
@@ -5,7 +5,7 @@
Getting Started | Touying
-
+
diff --git a/docs/themes/dewdrop/index.html b/docs/themes/dewdrop/index.html
index 1c35226de..8bf183152 100644
--- a/docs/themes/dewdrop/index.html
+++ b/docs/themes/dewdrop/index.html
@@ -5,7 +5,7 @@
Dewdrop Theme | Touying
-
+
diff --git a/docs/themes/metropolis/index.html b/docs/themes/metropolis/index.html
index d38b97694..b2e5fcdc3 100644
--- a/docs/themes/metropolis/index.html
+++ b/docs/themes/metropolis/index.html
@@ -5,7 +5,7 @@
Metropolis Theme | Touying
-
+
diff --git a/docs/themes/simple/index.html b/docs/themes/simple/index.html
index bdf548edf..e2b6b44fe 100644
--- a/docs/themes/simple/index.html
+++ b/docs/themes/simple/index.html
@@ -5,7 +5,7 @@
Simple Theme | Touying
-
+
diff --git a/docs/themes/university/index.html b/docs/themes/university/index.html
index 62f0ec162..163297ce9 100644
--- a/docs/themes/university/index.html
+++ b/docs/themes/university/index.html
@@ -5,7 +5,7 @@
University Theme | Touying
-
+
diff --git a/docs/utilities/fit-to/index.html b/docs/utilities/fit-to/index.html
index f2cd44061..12568273c 100644
--- a/docs/utilities/fit-to/index.html
+++ b/docs/utilities/fit-to/index.html
@@ -5,7 +5,7 @@
Fit to Height / Width | Touying
-
+
diff --git a/docs/utilities/oop/index.html b/docs/utilities/oop/index.html
index f43a16c55..76a83a8d0 100644
--- a/docs/utilities/oop/index.html
+++ b/docs/utilities/oop/index.html
@@ -5,7 +5,7 @@
Object-Oriented Programming | Touying
-
+
diff --git a/index.html b/index.html
index 96312559f..298b06da5 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
Touying in Typst | Touying
-
+
diff --git a/markdown-page/index.html b/markdown-page/index.html
index c45fee40f..fe6d28d89 100644
--- a/markdown-page/index.html
+++ b/markdown-page/index.html
@@ -5,7 +5,7 @@
Markdown page example | Touying
-
+
s.methods.touying-new-section-slide
method, so Touying will automatically call this method.s.methods.touying-new-section-slide
method, so Touying will automatically call this method.#import "@preview/touying:0.3.1": *
#let s = themes.simple.register(s)
#(s.methods.touying-new-section-slide = none)
#let (init, slides) = utils.methods(s)
#show: init
#let (slide,) = utils.slides(s)
#show: slides
= Title
== First Slide
Hello, Touying!
#pause
Hello, Typst!