honor slide number config in pdf mode

This commit is contained in:
Dougal J. Sutherland 2019-03-02 09:21:29 -08:00
parent 1cf5ffe029
commit c189a21efd
2 changed files with 64 additions and 61 deletions

View file

@ -1011,9 +1011,9 @@ Reveal.configure({ slideNumber: true });
Reveal.configure({ slideNumber: 'c/t' });
// You can provide a function to fully customize the number:
Reveal.configure({ slideNumber: function() {
Reveal.configure({ slideNumber: function( slide ) {
// Ignore numbering of vertical slides
return [ Reveal.getIndices().h ];
return [ Reveal.getIndices( slide ).h ];
}});
// Control which views the slide number displays on using the "showSlideNumber" value: