[Tex/LaTex] How to use todonotes with beamer

beamertodonotes

I'm creating a presentation using beamer and I would like to denote bits that need to be done later using the todonotes package. But there appears to be some conflict between the two packages. I get errors of the form

! LaTeX Error: Float(s) lost.

I'm guessing this is because the slides don't have a margin in which to place the todo bubbles. What's the best way to get around this? I'm looking for something easier than manually adding the inline option to every use of \todo.

Best Answer

You can change the presets of the package so that it creates inline todonotes by default. In order to do this, just add the line \presetkeys{todonotes}{inline}{} after you have loaded todonotes (you may also need to add xkeyval to make the \presetkeys macro available):

\documentclass{beamer}

\usepackage{xkeyval}
\usepackage{todonotes}
\presetkeys{todonotes}{inline}{}

\begin{document}
\begin{frame}
    \todo{Notes are inline by default now.}
\end{frame}
\end{document} 
Related Question