I'm having a problem using both the tufte-book class and the subfigure package. This problem started after a fresh install of texlive, and I can't find a reason for it.
Consider the following document:
\documentclass[a4paper,10pt]{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{subfigure}
\usepackage{graphicx}
%opening
\title{Test.}
\author{Myself}
\begin{document}
\maketitle
\section{adsf}
adsadfasdf
\begin{figure}
\centering
\includegraphics[width = 1.1\textwidth]{./path/to/figure}
\caption{ \label{fig:ushaped} Ilustração da história da organização social dos humanos e primatas pré-humanos.}
\end{figure}
See figure \ref{fig:ushaped}.
\end{document}
If I set the class to article
it works ok. If I set the class to tufte-book
it gives the following errors:
! Argument of \@iiminipage has an extra }.
! Paragraph ended before \@iiminipage was complete.
I also notice that if I delete the \label{fig:ushaped}
command, it works alright.
The problem is the same with the subfloats package.
I can't find the what's causing the problem. Anybody have an idea?
\label{fig:ushaped}
inside\caption
command. Try bringing that out. Also,10pt
is not a valid option intufte
\textwidth
:)