4

So, this is pretty well-known:

\section{boring Hello World} \label{bHW}

but in this case?:

\section*{boring Hello World with no section} \label{bHW_noSection}

with the above I got referenced to the last section in my document and not to the \section* itself.

Hints are welcomed

Mico
  • 506,678
Gery
  • 513

1 Answers1

6

How about a named reference, i.e. to the name of the starred section? This can be done with \nameref or \nameref* if no link is needed!

\documentclass{article}

\usepackage{blindtext}

\usepackage{hyperref}

\begin{document}



\section{A section}

In \textbf{\nameref*{abus}} we will see a lot of boring stuff and here's a link to it: \nameref{abus}

\blindtext[10]

\section*{A boring unnumbered section} \label{abus}

Very boring stuff



\end{document}