Skip to content

Commit

Permalink
feat: add empty-slide
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed Mar 21, 2024
1 parent bdb3bb8 commit 0c4c398
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/aqua-zh.typ
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#show strong: alert

#let (slide, title-slide, outline-slide, focus-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, outline-slide, focus-slide) = utils.slides(s)
#show: slides

= 第一节
Expand Down
2 changes: 1 addition & 1 deletion examples/aqua.typ
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#show strong: alert

#let (slide, title-slide, outline-slide, focus-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, outline-slide, focus-slide) = utils.slides(s)
#show: slides

= The Section
Expand Down
2 changes: 1 addition & 1 deletion examples/dewdrop.typ
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#show strong: alert

#let (slide, title-slide, new-section-slide, focus-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, new-section-slide, focus-slide) = utils.slides(s)
#show: slides

= Section A
Expand Down
2 changes: 1 addition & 1 deletion examples/example.typ
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#show strong: alert

// Extract slide functions
#let (slide,) = utils.slides(s)
#let (slide, empty-slide) = utils.slides(s)
#show: slides

= Animation
Expand Down
2 changes: 1 addition & 1 deletion examples/metropolis.typ
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#set par(justify: true)
#show strong: alert

#let (slide, title-slide, new-section-slide, focus-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, new-section-slide, focus-slide) = utils.slides(s)
#show: slides

= First Section
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#let (init, slides) = utils.methods(s)
#show: init

#let (slide, title-slide, centered-slide, focus-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, centered-slide, focus-slide) = utils.slides(s)
#show: slides

#title-slide[
Expand Down
2 changes: 1 addition & 1 deletion examples/slides.typ
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#show strong: alert

#let (slide,) = utils.slides(s)
#let (slide, empty-slide) = utils.slides(s)
#show: slides

= Let's start a new section
Expand Down
2 changes: 1 addition & 1 deletion examples/university.typ
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#show strong: alert

#let (slide, title-slide, focus-slide, matrix-slide) = utils.slides(s)
#let (slide, empty-slide, title-slide, focus-slide, matrix-slide) = utils.slides(s)
#show: slides.with(title-slide: false)

#title-slide(authors: ([Author A], [Author B]))
Expand Down
4 changes: 4 additions & 0 deletions slide.typ
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@
// default slide
touying-slide: touying-slide,
slide: touying-slide,
empty-slide: (self: none, ..args) => {
self = utils.empty-page(self)
(self.methods.slide)(self: self, ..args)
},
touying-slides: touying-slides,
slides: touying-slides,
// append the preamble
Expand Down

0 comments on commit 0c4c398

Please sign in to comment.