I am using three page numbering styles which are Alpha, Roman and Arabic.
I want my pdf viewer to display them as well and to jump to the first arabic numbered page when I enter '1' and not to the first page of the document.
I found this thread Different page labels/numbering in PDF viewer
explaining very good how it's done for two styles (arabic and roman)
But how is it done for three?
A working example
\documentclass[
a4paper, % A4 Papier ist Pflicht am Fachgebiet
twoside, % Empfehlung des Fachgebietes
openright, % Empfehlung des Fachgebietes
12pt, % mindestens 9pt
BCOR=1cm, % Bindungskorrektur -> sollte an die eigenen Ansprüche entsprechend angepasst werden
DIV=10 % Seitenaufteilung: 10 ist Standard für 11pt Schrift. Vor Änderung am besten passende Literatur zu scrreport lesen.
]{scrreprt}
\usepackage{amsmath}
\usepackage[english,ngerman]{babel}
\usepackage[OT1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
% % % % % % % % % % % % % % % % % % % %
% Gleichungen in der Form Chapter.equation
\numberwithin{equation}{chapter}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
% Die ersten Seiten bekommen keine Kopf- und Fußzeile.
\pagestyle{empty}
%\pdfcatalog{%
% /PageLabels<<%
% /Nums[%
% % Page numbers are zero based.
% % Uppercase roman numbers starting with first page.
% A<</S/R>>%
% % Arabic numbers starting with current page.
% \the\numexpr\value{page}-1\relax<</S/D>>%
% ]%
% >>%
%}
\pagenumbering{Alph}
%% Eidesstattliche Versicherung %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{formaler_Inhalt/selbststaendigkeitsErklaerung}
\cleardoublepage
%% Inhaltsverzeichnis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{Roman}
\tableofcontents %Table of contents
\cleardoublepage
%% Abbildungsverzeichnis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\addcontentsline{toc}{chapter}{Abbildungsverzeichnis} % Abbildungsverzeichnis ins Inhaltsverzeichnis schreiben
\listoffigures
%% INHALT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\pagestyle{headings}
\pdfcatalog{%
/PageLabels<<%
/Nums[%
% Page numbers are zero based.
% Uppercase roman numbers starting with first page.
0<</S/R>>%
% Arabic numbers starting with current page.
\the\numexpr\value{page}-1\relax<</S/D>>%
]%
>>%
}
\pagenumbering{arabic}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\chapter{Kant sagt}
Sapere aude
\newpage
Sapere aude
%% LITERATURVERZEICHNIS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\addcontentsline{toc}{chapter}{Literaturverzeichnis} % Literaturverzeichnis ins Inhaltsverzeichnis schreiben
\end{document}
Best Answer
It also works completely without
hyperref
. You first have to declare a\newcounter
in the preamble. Then, instead of setting the PDF page labels at the first numbering change, you set the counter.You then set the PDF page labels at the second numbering change, using the counter's value for the start of the second entry.
(This used this answer by Heiko Oberdiek)