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

Add a way to hide the slide number? And an option to making some slides unnumbered (including section slides)? #152

Open
ami-null opened this issue Feb 3, 2024 · 4 comments

Comments

@ami-null
Copy link

ami-null commented Feb 3, 2024

I am using the metropolis theme, and I found no obvious way to achieve these by looking at the docs.

@andreasKroepelin
Copy link
Owner

That's not supported at the moment but I can add this in the next release.

@ami-null
Copy link
Author

ami-null commented Feb 3, 2024

That would be great, thank you. Is there any workaround in the meantime?

@floffy-f
Copy link

That would be great, thank you. Is there any workaround in the meantime?

Very ugly workaround, but I use

#counter("logical-slide").update(x)

with x the maximum number of slides. I put that over my last slide.

You can also set it to 0 after the last slide you want to show numbered, but it may break a lot of stuff (headers, footers, etc), proceed with caution.

@AnnLIU15
Copy link

AnnLIU15 commented May 9, 2024

It can be implemented by costuming the metropolis.typ locally. For example, adding a unnumbered parameter to new-section-slide.

#let new-section-slide(unnumbered: false, name) = {
  let content = {
    utils.register-section(name)
    set align(horizon)
    show: pad.with(20%)
    set text(size: 1.5em)
    name
    block(height: 2pt, width: 100%, spacing: 0pt, m-progress-bar)
  }
  if unnumbered {
    content
  }
  else{
    logic.polylux-slide(content)
  }
}

And then use #new-section-slide(unnumbered: true,"First section",) to making section slides unnumbered. Also, the unnumbered pages will not be included in the total.

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

No branches or pull requests

4 participants