Skip to content

Strange behaviour of dewdrop theme with new-section-slide-fn #239

@dhnam

Description

@dhnam
#import "@preview/touying:0.6.1": *
#import themes.dewdrop: *

#show: dewdrop-theme.with(
  aspect-ratio: "16-9",
  config-common(
    new-section-slide-fn: (section => {
      touying-slide-wrapper(self => {
        touying-slide(
          self:self,
          {
            utils.display-current-heading(level: 1)
            components.mini-slides(fill: self.colors.primary, display-subsection: false)
            // layout(fn=>none)
            // grid()
            // []
          },
        )
      }
    )
    }),
  ),

  navigation: none,
)

= Subtitle 1
== subsub1
inner1

= Subtitle 2
== subsub2
inner2

In this code, uncommenting any of those three comments will make presentation worked as expected.

But commenting out all three of those will show this: section slide (Subtitle 1) -> subsub2, inner1 -> section slide (Subtitle 2) -> subsub2, inner 2.

Furthermore, if I add this section with no content;

= Subtitle 3

It becomes weirder. Section (Subtitle 1) -> Subtitle3, inner 1 -> Section (Subtitle 2) -> subsub2, inner 2 -> Section (Subtitle 2)

All of these behaviour is not shown with those comments uncommented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions