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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get problems when I try to use sidenotes in an mdframed environment:

\documentclass{tufte-book}
\usepackage{xcolor}
\usepackage{mdframed}
\newtheorem{mdtheorem}{Theorem}
\newenvironment{theorem}%
{\begin{mdframed}[backgroundcolor=lightgray]\begin{mdtheorem}}%
{\end{mdtheorem}\end{mdframed}}

\begin{document}

\begin{theorem}
test \sidenote{side note}
\end{theorem}

\end{document}

Any ideas how to get around this issue?

share|improve this question

The command \sidenote is equal to \marginpar or \marginnote which are not allowed in tables or boxes. So you can't use them.

The UK FAQ describes this error: ! LaTeX Error: Float(s) lost.

share|improve this answer

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.