Skip to content

Slide number in ?print-pdf of deck with vertical slides is wrong #3198

@michaelmyc

Description

@michaelmyc

I'm using latest 4.3.1 release of reveal.js, and I'm trying to enable slide numbers in a deck with vertical slides. The slide numbers work fine in presentation mode, but the ?print-pdf generated page would jump numbers when encountering vertical slides.

I'm using the following html to create vertical slides:

<section>
    Horizontal Slide 1
</section>
<section>
    <section>
        Vertical Slide 1
    </section>
    <section>
        Vertical Slide 2
    </section>
</section>

I'm expecting to see "1" for "Horizontal Slide 1", "2" for "Vertical Slide 1", and "3" for "Vertical Slide 2". However, I'm seeing "1", "3", and "4" respectively. The slide number also doesn't respect the custom "c/t" config I placed in Reveal.initialize(). I'm suspecting the slide numbers in ?print-pdf is generated separately by numbering the <section> and rendering those that has content. This seems to be the wrong logic to me if vertical slides are present. Also, I'd love to see the pdf line numbers to respect line number formatting.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions