Is it possible to make \nameref
display not only the title of the section but also its number?
\section{First Section}
\label{sec:some_sec}
\subsection*{Unnumbered subsection}
\label{sec:subsec}
[...]
As we defined in section \nameref{sec:some_sec}, yada yada yada, see section \nameref{sec:subsec}
With normal \nameref
I get:
"As we defined in section First Section, yada yada yada, see section Unnumbered subsection"
what I want is a combination of numbers (as in \autoref
} and section names AND (if possible) unnumbered subsections should inherit the number of the parenting section:
"As we defined in section 1 First Section, yada yada yada, see section 1 Unnumbered subsection"
Best Answer
How about defining a new command
\fullref
:Update
The
\fullref
defined above produces two links, one by\autoref
, the other by\nameref
. Heiko Oberdiek suggests the following definition that combines the two into one single link: