polylux
polylux copied to clipboard
Add a way to hide the slide number? And an option to making some slides unnumbered (including section slides)?
I am using the metropolis theme, and I found no obvious way to achieve these by looking at the docs.
That's not supported at the moment but I can add this in the next release.
That would be great, thank you. Is there any workaround in the meantime?
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.
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.