polylux icon indicating copy to clipboard operation
polylux copied to clipboard

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

Open ami-null opened this issue 1 year ago • 4 comments

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

ami-null avatar Feb 03 '24 07:02 ami-null

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

andreasKroepelin avatar Feb 03 '24 19:02 andreasKroepelin

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

ami-null avatar Feb 03 '24 19:02 ami-null

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.

floffy-f avatar Feb 19 '24 23:02 floffy-f

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.

AnnLIU15 avatar May 09 '24 07:05 AnnLIU15