Using theabspage from the 'perpage' package The 2019 Stack Overflow Developer Survey Results Are InBib page number in my index and bibtitle distance from the topBug in glossaries package while using hyperref?Total page numbers not shown correctly using beamer presentation packageBegin page counting from a given pageturn off frame number in certain slides using the beamer packagePage numbering is starting from 2how to remove the page numbering from the first slidePage numbering from roman to arabicExclude page numbering from certain pagesPagenumbering using alphalph package

How did passengers keep warm on sail ships?

Why couldn't they take pictures of a closer black hole?

Why “相同意思的词” is called “同义词” instead of "同意词"?

Can there be female White Walkers?

Ubuntu Server install with full GUI

A word that means fill it to the required quantity

Pokemon Turn Based battle (Python)

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Is one supposed to eat the zero'ah (shank bone) from the Seder plate?

Can we generate random numbers using irrational numbers like π and e?

Is it possible for absolutely everyone to attain enlightenment?

What do hard-Brexiteers want with respect to the Irish border?

Is bread bad for ducks?

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

Button changing its text & action. Good or terrible?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

How do you keep chess fun when your opponent constantly beats you?

Correct punctuation for showing a character's confusion

What is the most efficient way to store a numeric range?

How much of the clove should I use when using big garlic heads?

How to support a colleague who finds meetings extremely tiring?

Keeping a retro style to sci-fi spaceships?

What is the light source in the black hole images?

How can I define good in a religion that claims no moral authority?



Using theabspage from the 'perpage' package



The 2019 Stack Overflow Developer Survey Results Are InBib page number in my index and bibtitle distance from the topBug in glossaries package while using hyperref?Total page numbers not shown correctly using beamer presentation packageBegin page counting from a given pageturn off frame number in certain slides using the beamer packagePage numbering is starting from 2how to remove the page numbering from the first slidePage numbering from roman to arabicExclude page numbering from certain pagesPagenumbering using alphalph package










2















After two compilations of the following example with pdflatex:



documentclassarticle
usepackagelipsum
usepackageperpage

begindocument
lipsum[1-5]
lipsum[6][2]
Page~theabspage, theabspage, theabspage, theabspage, arabicabspage.
enddocument


I obtain this:



enter image description here



However, I would have expected to see the number 2 printed twice at the top of page 2, after the second compilation run. Am I having wrong expectations, or somehow misusing theabspage?



In a kind of desperate attempt, I've also tried to put AddAbsoluteCounterpage in the preamble, same result.



My TeX distribution is TeX Live as shipped in current Debian unstable (texlive-base version 2018.20190227-2) and the log file written by pdfTeX says perpage 2014/10/25 2.0.










share|improve this question

















  • 1





    Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

    – moewe
    Apr 7 at 13:21











  • @moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

    – frougon
    Apr 7 at 13:32






  • 1





    no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

    – Ulrike Fischer
    Apr 7 at 13:34






  • 1





    If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

    – moewe
    Apr 7 at 13:43







  • 1





    If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

    – moewe
    Apr 7 at 13:54















2















After two compilations of the following example with pdflatex:



documentclassarticle
usepackagelipsum
usepackageperpage

begindocument
lipsum[1-5]
lipsum[6][2]
Page~theabspage, theabspage, theabspage, theabspage, arabicabspage.
enddocument


I obtain this:



enter image description here



However, I would have expected to see the number 2 printed twice at the top of page 2, after the second compilation run. Am I having wrong expectations, or somehow misusing theabspage?



In a kind of desperate attempt, I've also tried to put AddAbsoluteCounterpage in the preamble, same result.



My TeX distribution is TeX Live as shipped in current Debian unstable (texlive-base version 2018.20190227-2) and the log file written by pdfTeX says perpage 2014/10/25 2.0.










share|improve this question

















  • 1





    Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

    – moewe
    Apr 7 at 13:21











  • @moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

    – frougon
    Apr 7 at 13:32






  • 1





    no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

    – Ulrike Fischer
    Apr 7 at 13:34






  • 1





    If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

    – moewe
    Apr 7 at 13:43







  • 1





    If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

    – moewe
    Apr 7 at 13:54













2












2








2








After two compilations of the following example with pdflatex:



documentclassarticle
usepackagelipsum
usepackageperpage

begindocument
lipsum[1-5]
lipsum[6][2]
Page~theabspage, theabspage, theabspage, theabspage, arabicabspage.
enddocument


I obtain this:



enter image description here



However, I would have expected to see the number 2 printed twice at the top of page 2, after the second compilation run. Am I having wrong expectations, or somehow misusing theabspage?



In a kind of desperate attempt, I've also tried to put AddAbsoluteCounterpage in the preamble, same result.



My TeX distribution is TeX Live as shipped in current Debian unstable (texlive-base version 2018.20190227-2) and the log file written by pdfTeX says perpage 2014/10/25 2.0.










share|improve this question














After two compilations of the following example with pdflatex:



documentclassarticle
usepackagelipsum
usepackageperpage

begindocument
lipsum[1-5]
lipsum[6][2]
Page~theabspage, theabspage, theabspage, theabspage, arabicabspage.
enddocument


I obtain this:



enter image description here



However, I would have expected to see the number 2 printed twice at the top of page 2, after the second compilation run. Am I having wrong expectations, or somehow misusing theabspage?



In a kind of desperate attempt, I've also tried to put AddAbsoluteCounterpage in the preamble, same result.



My TeX distribution is TeX Live as shipped in current Debian unstable (texlive-base version 2018.20190227-2) and the log file written by pdfTeX says perpage 2014/10/25 2.0.







page-numbering perpage






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 7 at 13:13









frougonfrougon

945711




945711







  • 1





    Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

    – moewe
    Apr 7 at 13:21











  • @moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

    – frougon
    Apr 7 at 13:32






  • 1





    no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

    – Ulrike Fischer
    Apr 7 at 13:34






  • 1





    If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

    – moewe
    Apr 7 at 13:43







  • 1





    If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

    – moewe
    Apr 7 at 13:54












  • 1





    Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

    – moewe
    Apr 7 at 13:21











  • @moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

    – frougon
    Apr 7 at 13:32






  • 1





    no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

    – Ulrike Fischer
    Apr 7 at 13:34






  • 1





    If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

    – moewe
    Apr 7 at 13:43







  • 1





    If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

    – moewe
    Apr 7 at 13:54







1




1





Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

– moewe
Apr 7 at 13:21





Presumably abspage has the same issue as the normal page counter: texfaq.org/FAQ-wrongpn

– moewe
Apr 7 at 13:21













@moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

– frougon
Apr 7 at 13:32





@moewe Thanks for your comment! I believe I know what happens with the page counter, how paragraphs and pages are broken, etc. (read the TeXbook 'till chapter 27). From reading the perpage manual, I expected that after two passes, theabspage would be up-to-date, but I'm not sure I really understand its textual definition from the perpage manual (it mentions page, what's that? A typo, I guess). So, maybe I just don't understand the purpose of theabspage, after all. That was the question. :)

– frougon
Apr 7 at 13:32




1




1





no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

– Ulrike Fischer
Apr 7 at 13:34





no you can't use theabspage like this, and the perpage package is for other counters, e.g. to get footnote references by pages.

– Ulrike Fischer
Apr 7 at 13:34




1




1





If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

– moewe
Apr 7 at 13:43






If I understand the documentation of perpage correctly then abspage is defined as AddAbsoluteCounterpage. And AddAbsoluteCounter<counter> just defines a counter abs<counter> that is stepped up each time <counter> is stepped up. Since it is not reset by resets to <counter> it holds the absolute/total counter value. For page that seems to imply that abspage has the exact same issues as page w.r.t. its value in the first paragraph on a new page. theabspage and page could differ if you started your document with Roman page numbers and only later switched to Arabic 1

– moewe
Apr 7 at 13:43





1




1





If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

– moewe
Apr 7 at 13:54





If you want to call this negative page numbers, then yes. It is not that unusual for people to want to reset their page numbers at certain points, so a robust and truly unique counter like abspage can be useful. This is especially useful for other objects where it is much more common to reset counters (like footnote counters per chapter or the like) particularly in the context of the perpage package, which resets all kinds of things per page.

– moewe
Apr 7 at 13:54










1 Answer
1






active

oldest

votes


















3














You can get the absolute page number e.g. with the zref package:



documentclassarticle
usepackagelipsum
usepackagezref-user,zref-abspage

begindocument
lipsum[1-5]
lipsum[6][2]
Page~zlabelAzref[abspage]A, zlabelBzref[abspage]B, zlabelCzref[abspage]C, zlabelDzref[abspage]D, zlabelEzref[abspage]E.
enddocument





share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483665%2fusing-theabspage-from-the-perpage-package%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    You can get the absolute page number e.g. with the zref package:



    documentclassarticle
    usepackagelipsum
    usepackagezref-user,zref-abspage

    begindocument
    lipsum[1-5]
    lipsum[6][2]
    Page~zlabelAzref[abspage]A, zlabelBzref[abspage]B, zlabelCzref[abspage]C, zlabelDzref[abspage]D, zlabelEzref[abspage]E.
    enddocument





    share|improve this answer



























      3














      You can get the absolute page number e.g. with the zref package:



      documentclassarticle
      usepackagelipsum
      usepackagezref-user,zref-abspage

      begindocument
      lipsum[1-5]
      lipsum[6][2]
      Page~zlabelAzref[abspage]A, zlabelBzref[abspage]B, zlabelCzref[abspage]C, zlabelDzref[abspage]D, zlabelEzref[abspage]E.
      enddocument





      share|improve this answer

























        3












        3








        3







        You can get the absolute page number e.g. with the zref package:



        documentclassarticle
        usepackagelipsum
        usepackagezref-user,zref-abspage

        begindocument
        lipsum[1-5]
        lipsum[6][2]
        Page~zlabelAzref[abspage]A, zlabelBzref[abspage]B, zlabelCzref[abspage]C, zlabelDzref[abspage]D, zlabelEzref[abspage]E.
        enddocument





        share|improve this answer













        You can get the absolute page number e.g. with the zref package:



        documentclassarticle
        usepackagelipsum
        usepackagezref-user,zref-abspage

        begindocument
        lipsum[1-5]
        lipsum[6][2]
        Page~zlabelAzref[abspage]A, zlabelBzref[abspage]B, zlabelCzref[abspage]C, zlabelDzref[abspage]D, zlabelEzref[abspage]E.
        enddocument






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 7 at 13:35









        Ulrike FischerUlrike Fischer

        199k9306692




        199k9306692



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483665%2fusing-theabspage-from-the-perpage-package%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company