quarto-dev / quarto-dev/quarto-cli

Curstom slide numbers

Open
#530 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement revealjs themes
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.