My code:
\documentclass[
titlepage,
abstract
]{scrartcl}
\usepackage[texindy]{imakeidx}
\usepackage{hyperref}
\makeindex[intoc]
\title{Test}
\dedication{Test.}
\begin{document}
\maketitle
\begin{abstract}
Test.
\end{abstract}
\pagenumbering{Roman}
\tableofcontents
\newpage
\pagenumbering{arabic}
\section{Test}
Das Zweistrom-Turbinen-Luftstrahltriebwerk (ZTL)\index{ZTL}~\ldots
\newpage
\pagenumbering{Roman}
\setcounter{page}{2}
\printindex
\end{document}
The table of contents should start with big Roman one. The text part (in the MWE starts with the test section) should start with an arabic one. This works.
But if I click in the index on the link, then it jumps to the title page (physical page one). I don't know what I'm doing wrong, but if I comment out the lines, which have to do with the page numbering (twice \pagenumbering{Roman}, \pagenumbering{arabic} and \setcounter{page}{2}), than it have the expected behavior. At the same time the hyperlinks in the table of contents work every time.
Why is it so and how can I fix this?
Thank you for your help and effort in advance!
\pagenumbering{arabic}resets the page counter. so your index entry is linked to page 1 in your entire document, which is the title page. – naphaneal Jun 23 '18 at 16:18\usepackage[hypertexnames=false]{hyperref}– esdd Jun 23 '18 at 18:24hypertexnames=falsechanges nothing. – Su-47 Jun 29 '18 at 08:32