Way to remove slide-number for n^th slide in a revealjs presentation? #5566
Answered
by
mcanouil
melissavanbussel
asked this question in
Q&A (Q1)
|
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! |
Answered by
mcanouil
May 16, 2023
Replies: 3 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 |
6 replies
Answer selected by
melissavanbussel
|
FYI:
|
0 replies
|
It needs to be added to every slide that you'd like to avoid counting for, but I suppose |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initially from: https://stackoverflow.com/questions/31146251/hide-slide-number-on-title-page
Screen.Recording.2023-05-16.at.20.29.01.mov