How to link to a label at hyperref?

Here is MWE:

\documentclass{scrartcl}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
{hyperref}
\hypersetup{

\begin{document}

abc
\newpage
$CBC$: \label{cbc}
\newpage
\hyperref[cbc]{$CBC$}

\end{document}


As you can see (if you run it) the \hyperref[cbc]{$CBC$} don't links to the label cbc, instead it links to the top of the page...
Do you know why?

Thank you!

• Have you tried with \hypertarget instead \label? – Mensch Apr 7 '19 at 10:05

The definition you need to use are

\hypertarget{cbc}{$CBC$}


and

\hyperlink{cbc}{$CBC$}


which means that cbc is the used label and $CBC$ is the displayed text in the document.

So with the complete code

\documentclass{scrartcl}
\usepackage[%
unicode=true,
pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
]{hyperref}
\hypersetup{

\begin{document}

abc
\newpage
\hypertarget{cbc}{$CBC$:} % \label{cbc} <===============================
\newpage
\hyperlink{cbc}{$CBC$} % <==============================================