Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
What do you mean with to be like more common Latex classes –  Marco Daniel May 26 '12 at 11:20
    
I want the caption to start at the left, below the figure, just like a normal paragraph, so that it fits on the page. –  Joseph May 26 '12 at 15:42
    
Did you try caption* –  Marco Daniel May 26 '12 at 15:52
    
caption* does not work, messes things up, and besides it's intended to take away figure numbers, which I don't want. –  Joseph May 26 '12 at 16:03

1 Answer 1

up vote 9 down vote accepted

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

share|improve this answer
    
Thanks, it worked! –  Joseph May 28 '12 at 21:20
    
You should rather use \refstepcounter{figure}, which would allow for using \label as well. –  Werner May 31 '12 at 5:56
    
\refstepcounter doesn't seem to work as normal in tufte-book figures. The \label references back to the last counter update before the figure. –  Rob Hyndman Jan 29 at 0:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.