I am using the subfig package in combination with the tufte latex class. Unfortunately I did not manage to make it work error free. As discussed in other forums (see here), the subfig package alters the caption size of all floats, which can be prevented by using the option caption=false when loading the package. However, this somehow confuses the hyperlinks in the document, such that figure and table references are linked to section headers instead of the figures and tables.
Here is an example of the problem I have
\documentclass{tufte-book}
%\usepackage[caption=false]{subfig}
\usepackage{subfig}
\begin{document}
\chapter{A}
\section{This section}
If [caption = false] is used, the hyperrefs go to the section heather above, instead of going to Figure~\ref{testfig} or to Table~\ref{testtab}. If it is not used, the hyperrefs work, but the figure captions are printed with a bigger fontsize than they usually do.
\vspace{10cm}
\begin{figure}
\caption{This is the test figure}\label{testfig}
\end{figure}
\begin{table}
\caption{This is the test table}\label{testtab}
\end{table}
\end{document}
I know this is a detail, but I am curious if there is a workaround. I have no clue on how to solve this issue on my own.
Thanks in advance for any help!
subfigpackage is deprecated, you might try the newersubcaptionpackage. – SFAB Aug 01 '12 at 14:18subcaptionpackage together with thetufte-latexclass (had to use the option\captionsetup{compatibility=false}in the preamble). Then the package can be loaded, but unfortunately thesubcaptionpackage also changes the font style in figures and tables, so its not help either... – yellowcap Aug 03 '12 at 14:54