Perhaps I've misunderstood the question anyway completely:
There should be a hyperlink
looking like a chapter entry but not to the start page of the chapter, pointing to somewhere else.
I've done a \nottocchapter
which behaves like an usual numbered chapter, but kicked out \addcontentsline
there.
Then I defined \lookslikeachapterentrybutpointstosomewhereelse
(that name is a pain for users misusing the appropiate thing ;-)) which adds the relevant chapter entry later on, with the page number where it appears.
Do I recommend this all? No ;-)
\documentclass{book}
\usepackage{blindtext}
\usepackage{xparse}
\makeatletter
\let\latex@chapter\chapter
\def\currentchaptername{}
\NewDocumentCommand{\notocchapter}{om}{%
\IfValueTF{#1}{%
\def\currentchaptername{#1}
}{%
\def\currentchaptername{#2}
}%
\begingroup
\renewcommand{\addcontentsline}[3]{}% Do nothing for this chapter
\IfValueTF{#1}{%
\latex@chapter[#1]{#2}
}{%
\latex@chapter{#2}
}%
\endgroup
}
\NewDocumentCommand{\lookslikeachapterentrybutpointstosomewhereelse}{o}{%
\phantomsection
\IfValueTF{#1}{%
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
}{%
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}\currentchaptername}
}%
}
\makeatother
\usepackage[linktocpage]{hyperref}
\begin{document}
\tableofcontents
\notocchapter{Some chapter}
\blindtext[20]
\lookslikeachapterentrybutpointstosomewhereelse
\chapter{Some other chapter}
\notocchapter{Another chapter}
\blindtext[40]
\lookslikeachapterentrybutpointstosomewhereelse[And now for something completely different]
\end{document}
general
, you should give a rule what to do actually. What is the rule for another chapter? Is it the second page of the chapter too then?\phantomsection
at the right place or using\refstepcounter
instead\stepcounter
might already solve the issue.