Discussion:
reference to label with title instead of number
(too old to reply)
Phillip Helbig (undress to reply)
2020-06-02 06:37:03 UTC
Permalink
Usually, one does something like

See section \ref{blabla} for details

and

\section{Gory details}
\label{blabla}

Is there a way to get the title of the section, rather than its number,
via \ref or something similar. So, instead of

See section 2 for details

I get

See section "Gory details" for details
samcarter8
2020-06-02 07:23:01 UTC
Permalink
With hyperref:

\documentclass{article}

\usepackage{hyperref}

\begin{document}

\section{Gory details}
\label{blabla}


see section \nameref{blabla}

\end{document}
Post by Phillip Helbig (undress to reply)
\section{Gory details}
\label{blabla}
Loading...