# Horizontal margins for margin notes in the tufte classes

From the picture underneath you can see that the tufte class does not provide horizontal margins for the margin notes. Thus the margin notes can go beyond the \textheigth. Is that normal or is it a bug? How can I fix that?

\documentclass{tufte-book}

\begin{document}

TEST\footnote{Test note}

\end{document}

-
+1. I experienced this circumstance to lead to margin figures flowing below the page area (e.g. if you add a margin figure right before the last sentence on a page). –  Henri Menke Jun 18 '13 at 11:51
@HenriMenke thanks to add your experience –  FormlessCloud Jun 18 '13 at 14:16
Must I provide other information? –  FormlessCloud Jun 21 '13 at 12:02

Probably this problem could be regarded as a bug, but in the other side, a side note (if you'll excuse the repetition) jumping to the next page or making a page break of the main text do not have sense at all. It would make more sense adjust the side note manually in these cases.

For notes occupying the bottom margin, instead of \foonote you can use \marginnote or \sidenote than have an optional offset argument, so you can control the vertical position as in the example:

\documentclass{tufte-book}
\usepackage{lipsum}
\begin{document}
\footnote{\lipsum[1]}
\lipsum[1]
\lipsum[1]
\marginnote[-3cm]{\lipsum[2]}
\lipsum[1]
\sidenote[][-3.5cm]{\lipsum[2]}
\lipsum[1]
\end{document}

-