# \autoref doesn't work correctly when used in tufte-book

i want to use the \autoref command (from the hyperref package) in the document-class tufte-book.

mini-example:

\documentclass{tufte-book}
\usepackage{hyperref}

\begin{document}

\section{Testsection}
\label{sec:test}

\begin{figure}
\rule{20pt}{20pt}
\caption{Testfigure}
\label{fig:test}
\end{figure}

Cross Reference to \autoref{fig:test}

\end{document}


The Output is

Cross Reference to section 1

and not

Cross Reference to figure 1

what one could expect. any ideas how to fix this?

-
one ugly way to fix this is load \usepackage[compatibility=false]{caption} before the hyperref package. The problem seems to be that tufte and hyperref battle for supremacy. I'm sure a guru can explain the details :) –  cmhughes Mar 8 '13 at 20:09
it seems to work :) thank you –  Christian Mar 8 '13 at 20:13
Did you try \caption{Testfigure\label{fig:test}}, i.e. putting the \label into the caption text? –  Axel Sommerfeldt Mar 8 '13 at 20:44
makes no difference –  Christian Mar 8 '13 at 22:14
@cmhughes Could you make that an answer? –  Joseph Wright Aug 10 '13 at 7:10

 \usepackage[compatibility=false]{caption}

before the hyperref package. The problem seems to be that tufte and hyperref battle for supremacy.