quarto-dev / quarto-dev/quarto-cli
Curstom slide numbers
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Thanks for the great tool. I'm currently trying to implement custom slide numbering (the title page and overview should not count and horizontal and vertical slides should be displayed specifically). With the option to set a custom generator, it works great (as mentioned in https://revealjs.com/slide-numbers/). Unfortunately, I had to adapt the Pandoc template and lose some quarto possibilities. Is there an easier / better way to set a custom slide number generator?
I want to specify something like this instead of slideNumber: 'c/t':
slideNumber: slide => {
return [ '<span>' + (Reveal.getIndices( slide ).h - 1) + '</span><span>[' + (Reveal.getIndices( slide ).v + 1) + ']</span>'];
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the reveal.js slide-number documentation and inspect how Quarto passes the slideNumber option through its Pandoc template. Compare the documented custom generator with the requested horizontal and vertical numbering behavior. Done means users can configure this generator without adapting the Pandoc template or losing Quarto features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100