In my document I am referencing a section, e.g.

\section{My Section}\label{test}
Also see section\ref{test}

This gives me, e.g.

Also see section 1

but what I want is:

Also see section My Section

How can I do that?

[Edit: comment moved to question body]

Of course it makes more sense to have something like "chapter 1 My Section", therefore mentioning chapter number and title. Anyways, this is just an example and you can easily combine both.


1 Answer 1


The nameref package does what you want (and cooperates well with hyperref).


\usepackage{nameref}% Only if hyperref isn't loaded
% \usepackage{hyperref}



Some text.


Some text. Also see section \nameref{test}.


enter image description here

  • 14
    It is worth noting that for this to work, it is not necessary for section numbering to be enabled. I.e. one can use \section*. Aug 13, 2011 at 21:25
  • 6
    An alternative is package titleref. Nov 12, 2012 at 23:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .