See the MWE below. I want to achieve that, the \nameref{c}
is printed as Appendix
not as Some Stuff
.
\documentclass{book}
\usepackage{lipsum}
\usepackage{appendix}
\usepackage{hyperref}
\begin{document}
\chapter{First Chapter}
\lipsum[1]
We refer to the \nameref{c}.
\lipsum
\begin{appendices}
\renewcommand\thechapter{}
\chapter{Some stuff}\label{c}
\lipsum
\end{appendices}
\end{document}
Note that for some reasons I want to use \renewcommand\thechapter{}
rather than \chapter*{...}
plus \addcontentsline...
.
This seems like a bit of a special situation. However, the following MWE shows an application which might be quite frequent:
\documentclass{book}
\usepackage{lipsum}
\usepackage{appendix}
\usepackage{hyperref}
\begin{document}
\chapter{First Chapter}
\lipsum[1]
This is explained in the next chapter.
%I want to set a link on "next chapter" which points to the second chapter
\lipsum[2]
\chapter{Second Chapter}
\lipsum[3]
\end{document}
NB: I have rewritten my original question. It is now much more to the point and may also be more interesting for others.