PDF page labels
up vote
5
down vote
favorite
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
add a comment |
up vote
5
down vote
favorite
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
1
Packagehyperrefalso 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
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
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
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
page-numbering
asked May 24 '15 at 14:51
Kurztipp
786
786
1
Packagehyperrefalso 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
add a comment |
1
Packagehyperrefalso 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
add a comment |
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}
add a comment |
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:

add a comment |
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}
add a comment |
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}
add a comment |
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}
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}
edited 2 hours ago
Cimbali
1338
1338
answered May 24 '15 at 18:10
Heiko Oberdiek
228k17549899
228k17549899
add a comment |
add a comment |
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:

add a comment |
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:

add a comment |
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:

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:

answered May 24 '15 at 15:37
Mario S. E.
10.8k961121
10.8k961121
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Package
hyperrefalso 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