I want my cross reference links to look like:
Chapter X: Chapter Title
To achieve that I have created the following command:
\newcommand{\fancyref}[1]{\autoref{#1}: \nameref{#1}}
The problem is that the :
character is not part of the generated hyperlink.
Could someone help?
Thanks in advance.
Warning I get when compiling Leo Liu's example:
LaTeX Warning: Reference `*' on page 1 undefined on input line 10.
[1{/usr/local/texlive/2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./example.aux)
LaTeX Warning: There were undefined references.