Using theabspage from the 'perpage' packageBib 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

Email Account under attack (really) - anything I can do?

Methods for deciding between [odd number] players

Theorems that impeded progress

Shell script not opening as desktop application

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

The use of multiple foreign keys on same column in SQL Server

N.B. ligature in Latex

Why is the design of haulage companies so “special”?

Underlining section titles

How is it possible for user to changed after storage was encrypted? (on OS X, Android)

Pronouncing Dictionary.com's W.O.D "vade mecum" in English

Explain the parameters before and after @ in the terminal prompt

What do you call a Matrix-like slowdown and camera movement effect?

Can a German sentence have two subjects?

Is it legal for company to use my work email to pretend I still work there?

Do any Labour MPs support no-deal?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

How long does it take to type this?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Is it possible to do 50 km distance without any previous training?

Japan - Plan around max visa duration

Why CLRS example on residual networks does not follows its formula?



Using theabspage from the 'perpage' package


Bib 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
    5 hours ago











  • @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
    5 hours ago






  • 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
    5 hours ago






  • 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
    5 hours ago







  • 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
    5 hours ago















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
    5 hours ago











  • @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
    5 hours ago






  • 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
    5 hours ago






  • 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
    5 hours ago







  • 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
    5 hours ago













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 6 hours ago









frougonfrougon

850711




850711







  • 1





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

    – moewe
    5 hours ago











  • @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
    5 hours ago






  • 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
    5 hours ago






  • 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
    5 hours ago







  • 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
    5 hours ago












  • 1





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

    – moewe
    5 hours ago











  • @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
    5 hours ago






  • 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
    5 hours ago






  • 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
    5 hours ago







  • 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
    5 hours ago







1




1





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

– moewe
5 hours ago





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

– moewe
5 hours ago













@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
5 hours ago





@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
5 hours ago




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
5 hours ago





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
5 hours ago




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
5 hours ago






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
5 hours ago





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
5 hours ago





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
5 hours ago










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 5 hours ago









        Ulrike FischerUlrike Fischer

        198k9306692




        198k9306692



























            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

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

            Aasi (pallopeli) Navigointivalikko