Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.