[Tex/LaTex] Sidenotes and footnotes not working in tufte class

footnotestufte

I am using the tufte-book class, and the \footnote and \sidenote commands do not seem to be working properly, while marginnotes work.

When I use either \footnote{} or \sidenote{} (no number, but this is, according to the manual, not required), I get two errors: missing number, treated as zero and illegal unit of meassure (pt inserted).

Code example:

\documentclass[justified]{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % lettertype met alle karakters
\usepackage[dutch]{babel}
\usepackage{natbib}
\usepackage{eurosym}
\usepackage[stable]{footmisc}
\title{Footnotes and sidenotes}
\author{Ben}
\date{} 
\begin{document}


\maketitle

\section*{Footnotes and sidenotes}
Main text \footnote{Footnote text}

More main text \sidenote{Sidenote text}
\end{document}

How do I resolve this issue?

Best Answer

I found out what was wrong through experimentation.

My original code looked like this:

\documentclass[justified]{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % lettertype met alle karakters
\usepackage[dutch]{babel}
\usepackage{natbib}
\usepackage{eurosym}
\usepackage[stable]{footmisc}
\title{Footnotes and sidenotes}
\author{Ben}
\date{} 
\begin{document}


\maketitle

\section*{Footnotes and sidenotes}
Main text \footnote{Footnote text}

More main text \sidenote{Sidenote text}
\end{document}

When I was asked by @lockstep to provide an example, I removed what I thought to be irrelevant packages, but then it suddenly worked. It was soon clear that the package footmisc seems to be incomatible with tufte-book. Removing this package (and resorting to the manual option of \section[Sectiontitle without footnotes]{Sectiontitle \footnote{Footnote}} works.

Related Question