# [texhax] Problem with the nameref package

José Carlos Santos jcsantos at fc.up.pt
Mon May 19 17:03:05 CEST 2014

Hi all,

If I compile this file:

\documentclass{book}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\chapter[Short title]{A very, very long title}\label{title}
See chapter \nameref{title}''.
\end{document}

then the command \nameref{title} gets the short version of the chapter
title, whereas I am interested in the long one. Is there a way of
forcing the nameref package to behave as I want?

Best regards,

Jose Carlos Santos