[texhax] Referencing a section title

Alexandru Scorpan ascorpan at math.ufl.edu
Fri Sep 10 09:54:11 CEST 2004

> I need to make a reference to the title of a section (not just its 
> number). If I
> have
>   \section{NiceTitle} \label{sec:mysection}
> it is clear that \ref{sec:mysection} produces the number of the 
> section. But
> what if I want to get the title itself? I want of course to avoid 
> doing it
> manually (retyping 'NiceTitle' in the part of the text I need it).

Try the package titleref (described in The LaTeX Companion [2nd ed], in 
sec 2.4.4).


More information about the texhax mailing list