When trying to reference to an appendix using autoref using the following code:

\documentclass[10pt,a4paper]{article}
\usepackage[titletoc]{appendix}

\usepackage{hyperref}

\begin{document}
\section{Title of Section}
See \autoref{sec:appendix}.

\begin{appendices}
\section{Title of Appendix}
\label{appendix}
Contents of Appendix.
\end{appendices}

\end{document}


What am I doing wrong?

-
possible duplicate of Figure references doesn't work –  Marco Daniel Dec 7 '11 at 10:08

You have to use

\label{sec:appendix}


\label{appendix}

i.e., the label has to be identical to the reference you use with \autoref.