Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No outline-slide export from utils.slides(s) #42

Closed
blucin opened this issue May 4, 2024 · 1 comment
Closed

No outline-slide export from utils.slides(s) #42

blucin opened this issue May 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@blucin
Copy link

blucin commented May 4, 2024

I wanted to create a title_slide with an extra option. I followed the accepted solution shown in #20 , which looks something like this:

#import "@preview/touying:0.4.0": *

#let s = themes.dewdrop.register(
  aspect-ratio: "16-9",
  footer: [Dewdrop],
  navigation: none,
)
#let s = (s.methods.info)(
  self: s,
  title: [Title],
  subtitle: [Subtitle],
  author: [Authors],
  date: datetime.today(),
  institution: [Institution],
)
#let (init, slides, touying-outline, alert) = utils.methods(s)
#show: init

#show strong: alert

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

#title-slide(extra: "Extra")
  • This creates a single title_slide with the extra option working.
  • Not setting outline-slide: false shows the outline slide before the title_slide which is not the expected behaviour.

Issue

I cannot import the outline-slide from utils.slide(s)

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

#title-slide(extra: "Extra")

// does not work
#outline-slide() 

The workaround solution for this is

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

#title-slide(extra: "Extra")

// workaround for #outline-slide()
#slide(heading(level: 2, s.outline-title) + parbreak() + (s.methods.touying-outline)(self: s, cover: false))
@OrangeX4 OrangeX4 added the enhancement New feature or request label May 6, 2024
@OrangeX4
Copy link
Member

done in 0.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants