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"
section~\ref{sec:some_sec} \nameref{sec:some_sec}
– egreg Jun 30 '13 at 18:05{sec:subsec}
has a negative effect. You are using\subsection*
and so there is no anchor (number) for any label. – Marco Daniel Jun 30 '13 at 18:55