[Tex/LaTex] change caption in tufte class full-page figure

captionsfloatstufte

I've tried to change the caption in a full-width float with tufte-book, but to no avail. I want the caption in this figure to be like more common LaTeX classes.

Here is a MWE and the result:

\documentclass[a4paper,nohyper]{tufte-book} %abstracton
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={TeX}}
\setmainfont[Numbers={OldStyle}]{Minion Pro} %or any other font
\setsansfont{Myriad Pro} % or any other font
\setmonofont[Scale=MatchLowercase]{Menlo}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{sidecap}
\usepackage[dvipsnames]{xcolor}
\usepackage{polyglossia}
\setmainlanguage{brazil}
\usepackage[bookmarks]{hyperref}
%\usepackage[font=sf, labelfont={sf}, margin=1cm]{caption}
\newfontfamily{\A}{Al Bayan}

\begin{document}

\begin{figure*}
\centering
\includegraphics[width=.9\textwidth]{./camp-scene}
\caption{Cena de Acampamento. Mir Sayyid Ali, séc. XVII. 28,4 x 20 cm. Harvard University Art Museums, 1958.75. Os tecidos preenchiam a vida tanto dos nômades quanto dos habitantes das cidades, cobrindo o chão e definindo o espaço. O papel onipresente dos tecidos é visto numa pintura de um acampamento nômade, atribuído ao pintor persa do século XVI Mir Sayyid Ali.}
\label{fig:camp-scene}
\end{figure*}

\end{document}

enter image description here

Best Answer

This is difficult, as tufte-book works really hard to shove your caption in the margin and does not provide any easy way to do proper full page figures with nice full page captions.

What you really need is for the tufte-book people to add this functionality to the class. You could try asking in the tufte-book group on Google groups. But a quick search shows that the same question was asked there in 2010 and no-one has yet answered it.

In the meantime here is my simple hack to work round the problem

replace your \caption tag with this

\stepcounter{figure}
\smallskip\noindent\small Figure \thefigure:
Cena de Acampamento.....

being sure to leave a blank line before the \stepcounter line to force a paragraph break, and not forgetting to remove the } a the end of the caption.

This works by manually updating the counter that \caption uses inside a figure environment. You could make it even more polished by manually writing to the list of figures as well, but if you are that serious about it, you really should think about getting a "full page figure" environment added to tufte-book.

HTH Toby

Related Question