7

With the tufte-book class I cannot get references for figures right.

\documentclass{tufte-book} 
\usepackage{lipsum,blindtext}
\usepackage[demo]{graphicx} % Demo option for MWE without image
\begin{document}

\listoffigures
\newpage
\Blindtext

\begin{marginfigure}
\includegraphics{img1}
\label{fig:l1}
\caption{some image}
\end{marginfigure}
\Blindtext

\begin{marginfigure}
\includegraphics{img2}
\label{fig:l2}
\caption{any other image}
\end{marginfigure}

\end{document}

The entries in the list of figures only refer to the page itself (here the first page).

5
  • 1
    Always place the label after or within the caption. Sep 23, 2013 at 8:22
  • 3
    Forgive me, I was too quick in voting to close, the issue isn't related to the label position. (Reviewers: don't vote to close.) Sep 23, 2013 at 8:27
  • Cannot reproduce your problem: The LoF shows correctly, that "some figure" is on page 3 and "any other image" is on page 4.
    – DG'
    Sep 23, 2013 at 8:58
  • 2
    @DG' The hyperlink doesn't work though. Sep 23, 2013 at 9:02
  • 1
    You are right, this is a problem with the hyperrefpackage, which could be solved by calling the document class with the option nohyper and using \usepackage{bookmark} instead.
    – DG'
    Sep 23, 2013 at 9:35

1 Answer 1

6

Apparently the problem is, that the hyperlinks within the pdf do not work properly, although the correct page numbers are displayed in the LoF. A possible solution would be to call tufte-bookwith the option nohyper and to use the package bookmarkinstead of hyperref:

\documentclass[nohyper]{tufte-book} 
\usepackage{lipsum,blindtext}
\usepackage[demo]{graphicx} % Demo option for MWE without image
\usepackage{bookmark}

\begin{document}

\listoffigures
\newpage
\Blindtext

\begin{marginfigure}
\includegraphics{img1}
\label{fig:l1}
\caption{some image}
\end{marginfigure}
\Blindtext

\begin{marginfigure}
\includegraphics{img2}
\label{fig:l2}
\caption{any other image}
\end{marginfigure}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .