PDF page labels











up vote
5
down vote

favorite
3












Is it possible to set page labels in pdfs “correctly”? Pages in my latex documents are numbered 1-x. I'd like the page labels to correspond to the actual page numbers (as mentioned here: http://pdf.editme.com/pdfua-PageLabels).



So that the first page would be “Cover”, pages—let's say—2–5 (with toc and so on) numbered with Roman literals (i, ii, iii, etc.) and pages 6–end numbered with Arabic literals.
How do I achieve that?










share|improve this question


















  • 1




    Package hyperref also sets page labels.
    – Heiko Oberdiek
    May 24 '15 at 14:59










  • Thank you, how can I label the cover page „Cover“?
    – Kurztipp
    May 24 '15 at 15:21















up vote
5
down vote

favorite
3












Is it possible to set page labels in pdfs “correctly”? Pages in my latex documents are numbered 1-x. I'd like the page labels to correspond to the actual page numbers (as mentioned here: http://pdf.editme.com/pdfua-PageLabels).



So that the first page would be “Cover”, pages—let's say—2–5 (with toc and so on) numbered with Roman literals (i, ii, iii, etc.) and pages 6–end numbered with Arabic literals.
How do I achieve that?










share|improve this question


















  • 1




    Package hyperref also sets page labels.
    – Heiko Oberdiek
    May 24 '15 at 14:59










  • Thank you, how can I label the cover page „Cover“?
    – Kurztipp
    May 24 '15 at 15:21













up vote
5
down vote

favorite
3









up vote
5
down vote

favorite
3






3





Is it possible to set page labels in pdfs “correctly”? Pages in my latex documents are numbered 1-x. I'd like the page labels to correspond to the actual page numbers (as mentioned here: http://pdf.editme.com/pdfua-PageLabels).



So that the first page would be “Cover”, pages—let's say—2–5 (with toc and so on) numbered with Roman literals (i, ii, iii, etc.) and pages 6–end numbered with Arabic literals.
How do I achieve that?










share|improve this question













Is it possible to set page labels in pdfs “correctly”? Pages in my latex documents are numbered 1-x. I'd like the page labels to correspond to the actual page numbers (as mentioned here: http://pdf.editme.com/pdfua-PageLabels).



So that the first page would be “Cover”, pages—let's say—2–5 (with toc and so on) numbered with Roman literals (i, ii, iii, etc.) and pages 6–end numbered with Arabic literals.
How do I achieve that?







page-numbering






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 24 '15 at 14:51









Kurztipp

786




786








  • 1




    Package hyperref also sets page labels.
    – Heiko Oberdiek
    May 24 '15 at 14:59










  • Thank you, how can I label the cover page „Cover“?
    – Kurztipp
    May 24 '15 at 15:21














  • 1




    Package hyperref also sets page labels.
    – Heiko Oberdiek
    May 24 '15 at 14:59










  • Thank you, how can I label the cover page „Cover“?
    – Kurztipp
    May 24 '15 at 15:21








1




1




Package hyperref also sets page labels.
– Heiko Oberdiek
May 24 '15 at 14:59




Package hyperref also sets page labels.
– Heiko Oberdiek
May 24 '15 at 14:59












Thank you, how can I label the cover page „Cover“?
– Kurztipp
May 24 '15 at 15:21




Thank you, how can I label the cover page „Cover“?
– Kurztipp
May 24 '15 at 15:21










2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










Package hyperref also adds support for the PDF page labels. It uses thepage for this purpose.



The cover page can be labeled using thispdfpagelabel:



documentclass{report}
usepackage{hyperref}
begin{document}
begin{titlepage}
hypersetup{pageanchor=false}
thispdfpagelabel{Cover}
Huge Cover
end{titlepage}
pagenumbering{roman}
tableofcontents
listoffigures
listoftables
pagenumbering{arabic}
chapter{Abc}
end{document}


The example also disables the page label for the cover page, because it is unlikely, that it is needed (e.g., page anchors are needed for index entries). Otherwise the page anchor for the cover page (1) would clash with the page anchor for the first chapter page (also 1).



If the cover pages do not print the page number, then thepage can be redefined, e.g., with Cover- as prefix. With a unique thepage the page anchor does not need to be disabled, example:



documentclass{book}
usepackage{hyperref}
begin{document}
begingroup
renewcommand*{thepage}{Cover-arabic{page}}
pagestyle{empty}
Huge Cover
cleardoublepage
endgroup
frontmatter
tableofcontents
listoffigures
listoftables
mainmatter
chapter{Abc}
end{document}





share|improve this answer






























    up vote
    1
    down vote













    As mentioned by Heiko, just use the hyperref package.



    Example:



    documentclass{report}

    usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref}

    begin{document}

    Hola. This is my cover page

    pdfbookmark[0]{Cover}{initialpage}

    end{document}


    Output:



    enter image description here






    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',
      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%2f246705%2fpdf-page-labels%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      4
      down vote



      accepted










      Package hyperref also adds support for the PDF page labels. It uses thepage for this purpose.



      The cover page can be labeled using thispdfpagelabel:



      documentclass{report}
      usepackage{hyperref}
      begin{document}
      begin{titlepage}
      hypersetup{pageanchor=false}
      thispdfpagelabel{Cover}
      Huge Cover
      end{titlepage}
      pagenumbering{roman}
      tableofcontents
      listoffigures
      listoftables
      pagenumbering{arabic}
      chapter{Abc}
      end{document}


      The example also disables the page label for the cover page, because it is unlikely, that it is needed (e.g., page anchors are needed for index entries). Otherwise the page anchor for the cover page (1) would clash with the page anchor for the first chapter page (also 1).



      If the cover pages do not print the page number, then thepage can be redefined, e.g., with Cover- as prefix. With a unique thepage the page anchor does not need to be disabled, example:



      documentclass{book}
      usepackage{hyperref}
      begin{document}
      begingroup
      renewcommand*{thepage}{Cover-arabic{page}}
      pagestyle{empty}
      Huge Cover
      cleardoublepage
      endgroup
      frontmatter
      tableofcontents
      listoffigures
      listoftables
      mainmatter
      chapter{Abc}
      end{document}





      share|improve this answer



























        up vote
        4
        down vote



        accepted










        Package hyperref also adds support for the PDF page labels. It uses thepage for this purpose.



        The cover page can be labeled using thispdfpagelabel:



        documentclass{report}
        usepackage{hyperref}
        begin{document}
        begin{titlepage}
        hypersetup{pageanchor=false}
        thispdfpagelabel{Cover}
        Huge Cover
        end{titlepage}
        pagenumbering{roman}
        tableofcontents
        listoffigures
        listoftables
        pagenumbering{arabic}
        chapter{Abc}
        end{document}


        The example also disables the page label for the cover page, because it is unlikely, that it is needed (e.g., page anchors are needed for index entries). Otherwise the page anchor for the cover page (1) would clash with the page anchor for the first chapter page (also 1).



        If the cover pages do not print the page number, then thepage can be redefined, e.g., with Cover- as prefix. With a unique thepage the page anchor does not need to be disabled, example:



        documentclass{book}
        usepackage{hyperref}
        begin{document}
        begingroup
        renewcommand*{thepage}{Cover-arabic{page}}
        pagestyle{empty}
        Huge Cover
        cleardoublepage
        endgroup
        frontmatter
        tableofcontents
        listoffigures
        listoftables
        mainmatter
        chapter{Abc}
        end{document}





        share|improve this answer

























          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          Package hyperref also adds support for the PDF page labels. It uses thepage for this purpose.



          The cover page can be labeled using thispdfpagelabel:



          documentclass{report}
          usepackage{hyperref}
          begin{document}
          begin{titlepage}
          hypersetup{pageanchor=false}
          thispdfpagelabel{Cover}
          Huge Cover
          end{titlepage}
          pagenumbering{roman}
          tableofcontents
          listoffigures
          listoftables
          pagenumbering{arabic}
          chapter{Abc}
          end{document}


          The example also disables the page label for the cover page, because it is unlikely, that it is needed (e.g., page anchors are needed for index entries). Otherwise the page anchor for the cover page (1) would clash with the page anchor for the first chapter page (also 1).



          If the cover pages do not print the page number, then thepage can be redefined, e.g., with Cover- as prefix. With a unique thepage the page anchor does not need to be disabled, example:



          documentclass{book}
          usepackage{hyperref}
          begin{document}
          begingroup
          renewcommand*{thepage}{Cover-arabic{page}}
          pagestyle{empty}
          Huge Cover
          cleardoublepage
          endgroup
          frontmatter
          tableofcontents
          listoffigures
          listoftables
          mainmatter
          chapter{Abc}
          end{document}





          share|improve this answer














          Package hyperref also adds support for the PDF page labels. It uses thepage for this purpose.



          The cover page can be labeled using thispdfpagelabel:



          documentclass{report}
          usepackage{hyperref}
          begin{document}
          begin{titlepage}
          hypersetup{pageanchor=false}
          thispdfpagelabel{Cover}
          Huge Cover
          end{titlepage}
          pagenumbering{roman}
          tableofcontents
          listoffigures
          listoftables
          pagenumbering{arabic}
          chapter{Abc}
          end{document}


          The example also disables the page label for the cover page, because it is unlikely, that it is needed (e.g., page anchors are needed for index entries). Otherwise the page anchor for the cover page (1) would clash with the page anchor for the first chapter page (also 1).



          If the cover pages do not print the page number, then thepage can be redefined, e.g., with Cover- as prefix. With a unique thepage the page anchor does not need to be disabled, example:



          documentclass{book}
          usepackage{hyperref}
          begin{document}
          begingroup
          renewcommand*{thepage}{Cover-arabic{page}}
          pagestyle{empty}
          Huge Cover
          cleardoublepage
          endgroup
          frontmatter
          tableofcontents
          listoffigures
          listoftables
          mainmatter
          chapter{Abc}
          end{document}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago









          Cimbali

          1338




          1338










          answered May 24 '15 at 18:10









          Heiko Oberdiek

          228k17549899




          228k17549899






















              up vote
              1
              down vote













              As mentioned by Heiko, just use the hyperref package.



              Example:



              documentclass{report}

              usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref}

              begin{document}

              Hola. This is my cover page

              pdfbookmark[0]{Cover}{initialpage}

              end{document}


              Output:



              enter image description here






              share|improve this answer

























                up vote
                1
                down vote













                As mentioned by Heiko, just use the hyperref package.



                Example:



                documentclass{report}

                usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref}

                begin{document}

                Hola. This is my cover page

                pdfbookmark[0]{Cover}{initialpage}

                end{document}


                Output:



                enter image description here






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  As mentioned by Heiko, just use the hyperref package.



                  Example:



                  documentclass{report}

                  usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref}

                  begin{document}

                  Hola. This is my cover page

                  pdfbookmark[0]{Cover}{initialpage}

                  end{document}


                  Output:



                  enter image description here






                  share|improve this answer












                  As mentioned by Heiko, just use the hyperref package.



                  Example:



                  documentclass{report}

                  usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref}

                  begin{document}

                  Hola. This is my cover page

                  pdfbookmark[0]{Cover}{initialpage}

                  end{document}


                  Output:



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 24 '15 at 15:37









                  Mario S. E.

                  10.8k961121




                  10.8k961121






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f246705%2fpdf-page-labels%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

                      Entries order in /etc/network/interfaces

                      新発田市

                      Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)