I am using the tufte-book class. When referencing with \ref within a caption using the babel package I get two errors:
"Argument of \@iiminipage has an extra }." and "Paragraph ended before \@iiminipage was complete."
The error does not occur when using \autoref instead of \ref or when deactivating babel.
Code example:
\documentclass[a4paper,twoside,justified,symmetric,notoc]{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage{graphicx}
\begin{document}
\begin{marginfigure}
\includegraphics{fig1}
\caption{xxx}
\label{fig:one}
\end{marginfigure}
\begin{figure*}[t]
\includegraphics{fig2}
\caption{Figure \ref{fig:one}...}
\label{fig:two}
\end{figure*}
\end{document}
How can I resolve this issue?
\ref
you can use the package optionsafe=bib
orsafe=none
.