Way to remove slide-number for n^th slide in a revealjs presentation? #5566
-
I would like to remove the slide-number for the I can get this to work for the title slide by using the solution described here, but can't figure out how to apply it to a non-title slide. Any clever workarounds / alternatives way to tackle this problem are appreciated :) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Initially from: https://stackoverflow.com/questions/31146251/hide-slide-number-on-title-page ---
title: "Untitled"
format:
revealjs:
slide-number: true
include-after-body:
- text: |
<script type="text/javascript">
Reveal.addEventListener('slidechanged', (event) => {
const isSnOn = (event.currentSlide.dataset.hideSlideNumber !== 'true');
Reveal.configure({ slideNumber: isSnOn });
});
</script>
---
## Slide 1
## Slide 2
## Slide 3 without slide number {data-hide-slide-number="true"}
## Slide 4 without slide number {data-hide-slide-number="true"} Screen.Recording.2023-05-16.at.20.29.01.mov |
Beta Was this translation helpful? Give feedback.
-
FYI:
|
Beta Was this translation helpful? Give feedback.
Initially from: https://stackoverflow.com/questions/31146251/hide-slide-number-on-title-page
Screen.Recording.2023-05-16.at.20.29.01.mov