# Tufte marginfigure caption is outside the page

Figure 3.2's caption is showing outside the page and cannot be read. How do I prevent this.

here is the code:

\documentclass[marginals=raggedouter,notoc]{tufte-book}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}

\fancypagestyle{plain}{}

\begin{document}

\maketitle

\tableofcontents

For each angle $n \theta_k$ to be admissible for a lossless rotation, the region must have a radial symmetry in $\theta_k$. This eliminate most shapes from consideration. In fact, only circles (and perhaps circular saws) remains. For simplicity, we will assume that only circles are permissible.

Let us look at potential candidates.

\begin{marginfigure}
\caption{A circle that is radially subdivided. Notice how the area of the subdivisions are not equal. Per area, more data can be encoded in the center rings of the circle than on the edge rings.}
\end{marginfigure}

Figure \ref{fig:circle-radially-subdivided} presents a circle with a discrete radial symmetry on angle $\theta_k$. This circle can be rotated without loss of information, but the sub-divisions are not of equal area. This would mean that more bits of data per area can be store around the origin than at the edge. This is not acceptable because we must be able to translate the origins of the axis in space and the initial choice of the origin is arbitrary. Status : rejected.

\begin{marginfigure}
\includegraphics[width=\textwidth]{fig-circle-square-subdivisions}
\caption{A circle that is radially subdivided. Notice how the area of the subdivisions are not equal. Per area, more data can be encoded in the center rings of the circle than on the edge rings.}
\label{fig:circle-sub-divided-wth-squares}
\end{marginfigure}

Figure \ref{fig:circle-sub-divided-wth-squares} presents a circle which is sub-divided according to a square lattice structure. For this

\end{document}

• The image of the question is not the result of your MWE. And this code fit perfectly two square images of witdh =\textwidth and captions in the same page. Said that, some like \begin{marginfigure}[-2em] in one or the two figures should be enough so solve this problem. Otherwise reduce the height of the images. – Fran Feb 18 '17 at 18:21

tufte-book uses \marginpar for those types of figures, and there is a package called marginfix that attempts to improve the positioning of \marginpars. But while it does the job in the example below, take care, as it can apparently misbehave in some cases when used with tufte-book, see Package marginfix swallows some margin notes .

As Fran mentions though, there is an optional argument for the marginfigure (and margintable) environment for adjusting the vertical position. In the example below I used \begin{marginfigure}[-5cm] for the first marginfigure, but adjust the distance to your preferences.

\documentclass[marginals=raggedouter,notoc]{tufte-book}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\usepackage[demo]{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
% \usepackage{marginfix} % might work, but be careful

\fancypagestyle{plain}{}

\begin{document}

\maketitle

\tableofcontents

For each angle $n \theta_k$ to be admissible for a lossless rotation, the region must have a radial symmetry in $\theta_k$. This eliminate most shapes from consideration. In fact, only circles (and perhaps circular saws) remains. For simplicity, we will assume that only circles are permissible.

\vspace{28em}

Let us look at potential candidates.

\begin{marginfigure}[-5cm]
\caption{A circle that is radially subdivided. Notice how the area of the subdivisions are not equal. Per area, more data can be encoded in the center rings of the circle than on the edge rings.}
\end{marginfigure}

Figure \ref{fig:circle-radially-subdivided} presents a circle with a discrete radial symmetry on angle $\theta_k$. This circle can be rotated without loss of information, but the sub-divisions are not of equal area. This would mean that more bits of data per area can be store around the origin than at the edge. This is not acceptable because we must be able to translate the origins of the axis in space and the initial choice of the origin is arbitrary. Status : rejected.

\begin{marginfigure}
\includegraphics[width=\textwidth]{fig-circle-square-subdivisions}
\caption{A circle that is radially subdivided. Notice how the area of the subdivisions are not equal. Per area, more data can be encoded in the center rings of the circle than on the edge rings.}
\label{fig:circle-sub-divided-wth-squares}
\end{marginfigure}

Figure \ref{fig:circle-sub-divided-wth-squares} presents a circle which is sub-divided according to a square lattice structure. For this

\end{document}

• But see here. – Frunobulax Mar 5 '17 at 1:00
• @Frunobulax Ah, wasn't aware of that. Thanks. I'll edit my answer. – Torbjørn T. Mar 5 '17 at 7:51