New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page counters in the document #91

Closed
SimonSapin opened this Issue May 20, 2013 · 6 comments

Comments

5 participants
@SimonSapin
Member

SimonSapin commented May 20, 2013

As discussed on the mailing list, content: counter(page) and content: counter(pages) should work everywhere, not just in page-margin boxes. This is not implemented yet.

@YuanZheCSYZ

This comment has been minimized.

Show comment
Hide comment
@YuanZheCSYZ

YuanZheCSYZ Dec 9, 2013

Hi I just use the below code, but it seems it just not work... Any suggestions? Thanks!

       @page {
            size: A4;
            margin: 0px 0px 0px 0px;
            counter-increment: page;
        }
        .pageNumber:after {
            content: counter(page) " of " counter(pages);
        }

        <table>
                 <tr>
                        <td>Page: </td><td class="pageNumber"></td>
                 </tr>
        </table>

YuanZheCSYZ commented Dec 9, 2013

Hi I just use the below code, but it seems it just not work... Any suggestions? Thanks!

       @page {
            size: A4;
            margin: 0px 0px 0px 0px;
            counter-increment: page;
        }
        .pageNumber:after {
            content: counter(page) " of " counter(pages);
        }

        <table>
                 <tr>
                        <td>Page: </td><td class="pageNumber"></td>
                 </tr>
        </table>
@SimonSapin

This comment has been minimized.

Show comment
Hide comment
@SimonSapin

SimonSapin Dec 9, 2013

Member

Hi @YuanZheCSYZ. As explained in the message you’re responding to, this is not implemented yet.

Member

SimonSapin commented Dec 9, 2013

Hi @YuanZheCSYZ. As explained in the message you’re responding to, this is not implemented yet.

@mashony

This comment has been minimized.

Show comment
Hide comment
@mashony

mashony Oct 30, 2015

Hi @SimonSapin. Are threre any news?

mashony commented Oct 30, 2015

Hi @SimonSapin. Are threre any news?

@SimonSapin

This comment has been minimized.

Show comment
Hide comment
@SimonSapin
Member

SimonSapin commented Oct 30, 2015

@nvernooy

This comment has been minimized.

Show comment
Hide comment
@nvernooy

nvernooy Feb 14, 2017

Any update on this?

Using

@page {
    counter-increment: page;
}
#pagesCounter::after {
     display: inline;
     content: counter(pages);
}

This paper consists of <span id="pagesCounter"></span> pages.

Results in
This paper consists of 0 pages

Using counter(pages) in the page margins works perfectly, but I need to use it inside the page area.

nvernooy commented Feb 14, 2017

Any update on this?

Using

@page {
    counter-increment: page;
}
#pagesCounter::after {
     display: inline;
     content: counter(pages);
}

This paper consists of <span id="pagesCounter"></span> pages.

Results in
This paper consists of 0 pages

Using counter(pages) in the page margins works perfectly, but I need to use it inside the page area.

@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe Aug 7, 2018

Member

Fixed by #652.

Member

liZe commented Aug 7, 2018

Fixed by #652.

@liZe liZe closed this Aug 7, 2018

@liZe liZe added this to the 43 milestone Aug 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment